Remove support for 3.6 (#853)

This commit is contained in:
Diego Hurtado
2022-08-25 20:02:04 +02:00
committed by GitHub
parent 85e532816c
commit 03d97ffaf9
58 changed files with 116 additions and 169 deletions

View File

@ -28,14 +28,13 @@ classifiers =
License :: OSI Approved :: Apache Software License
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
[options]
python_requires = >=3.6
python_requires = >=3.7
package_dir=
=src
packages=find_namespace:

View File

@ -141,6 +141,7 @@ API
"""
from logging import getLogger
from time import time_ns
from timeit import default_timer
from typing import Collection
@ -157,7 +158,6 @@ from opentelemetry.instrumentation.propagators import (
from opentelemetry.instrumentation.utils import _start_internal_or_server_span
from opentelemetry.metrics import get_meter
from opentelemetry.semconv.trace import SpanAttributes
from opentelemetry.util._time import _time_ns
from opentelemetry.util.http import get_excluded_urls, parse_excluded_urls
_logger = getLogger(__name__)
@ -191,7 +191,7 @@ def _rewrapped_app(
# In theory, we could start the span here and use
# update_name later but that API is "highly discouraged" so
# we better avoid it.
wrapped_app_environ[_ENVIRON_STARTTIME_KEY] = _time_ns()
wrapped_app_environ[_ENVIRON_STARTTIME_KEY] = time_ns()
start = default_timer()
attributes = otel_wsgi.collect_request_attributes(wrapped_app_environ)
active_requests_count_attrs = (