File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 3333 OTEL_EXPERIMENTAL_RESOURCE_DETECTORS ,
3434 OTEL_EXPORTER_OTLP_PROTOCOL ,
3535)
36- from pkg_resources import EntryPoint
36+ from opentelemetry . util . _importlib_metadata import EntryPoint
3737
3838from elasticotel .distro .environment_variables import ELASTIC_OTEL_SYSTEM_METRICS_ENABLED
3939
Original file line number Diff line number Diff line change 2424from typing import Callable , Mapping , Optional
2525
2626import leb128
27- import pkg_resources
27+ from opentelemetry . util . _importlib_metadata import version
2828from oteltest import private as ot
2929
30- OTEL_VERSION = pkg_resources . get_distribution ("opentelemetry-api" ). version
31- OTEL_INSTRUMENTATION_VERSION = pkg_resources . get_distribution ("opentelemetry-instrumentation" ). version
30+ OTEL_VERSION = version ("opentelemetry-api" )
31+ OTEL_INSTRUMENTATION_VERSION = version ("opentelemetry-instrumentation" )
3232
3333ROOT_DIR = os .path .abspath (os .path .dirname (os .path .dirname (os .path .dirname (__file__ ))))
3434
You can’t perform that action at this time.
0 commit comments