mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-30 13:43:03 +08:00
Remove support for 3.6 (#853)
This commit is contained in:
@ -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:
|
||||
|
@ -16,13 +16,13 @@ import collections
|
||||
import logging
|
||||
import threading
|
||||
import typing
|
||||
from time import time_ns
|
||||
|
||||
from opentelemetry.context import Context, attach, detach, set_value
|
||||
from opentelemetry.instrumentation.utils import _SUPPRESS_INSTRUMENTATION_KEY
|
||||
from opentelemetry.sdk.trace import Span, SpanProcessor
|
||||
from opentelemetry.sdk.trace.export import SpanExporter
|
||||
from opentelemetry.trace import INVALID_TRACE_ID
|
||||
from opentelemetry.util._time import _time_ns
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@ -128,9 +128,9 @@ class DatadogExportSpanProcessor(SpanProcessor):
|
||||
break
|
||||
|
||||
# substract the duration of this export call to the next timeout
|
||||
start = _time_ns()
|
||||
start = time_ns()
|
||||
self.export()
|
||||
end = _time_ns()
|
||||
end = time_ns()
|
||||
duration = (end - start) / 1e9
|
||||
timeout = self.schedule_delay_millis / 1e3 - duration
|
||||
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user