Skip to content

Commit bbfae71

Browse files
committed
fix imports
1 parent 7f9fe27 commit bbfae71

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

opentelemetry-sdk/benchmarks/metrics/test_benchmark_metrics.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ def benchmark_counter_add():
9999
counter_cumulative.add(1, {})
100100

101101
if num_meter_configurator_rules is None:
102-
# None case: meter is disabled, measuring the short-circuit path
103102
provider_reader_cumulative._set_meter_configurator(
104103
meter_configurator=_disable_meter_configurator
105104
)

opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@
6363
SdkConfiguration,
6464
)
6565
from opentelemetry.sdk.resources import Resource
66-
from opentelemetry.sdk.util.instrumentation import InstrumentationScope
66+
from opentelemetry.sdk.util.instrumentation import (
67+
InstrumentationScope,
68+
_InstrumentationScopePredicateT,
69+
)
6770
from opentelemetry.util._once import Once
6871
from opentelemetry.util.types import (
6972
Attributes,
@@ -411,7 +414,6 @@ def _get_exemplar_filter(exemplar_filter: str) -> ExemplarFilter:
411414

412415

413416
_MeterConfiguratorT = Callable[[InstrumentationScope], _MeterConfig]
414-
_InstrumentationScopePredicateT = Callable[[InstrumentationScope], bool]
415417
_MeterConfiguratorRulesT = Sequence[
416418
tuple[_InstrumentationScopePredicateT, _MeterConfig]
417419
]

opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
from opentelemetry.sdk.util.instrumentation import (
7070
InstrumentationInfo,
7171
InstrumentationScope,
72+
_InstrumentationScopePredicateT,
7273
)
7374
from opentelemetry.semconv.attributes.exception_attributes import (
7475
EXCEPTION_ESCAPED,
@@ -1261,7 +1262,6 @@ def start_span( # pylint: disable=too-many-locals
12611262

12621263

12631264
_TracerConfiguratorT = Callable[[InstrumentationScope], _TracerConfig]
1264-
_InstrumentationScopePredicateT = Callable[[InstrumentationScope], bool]
12651265
_TracerConfiguratorRulesT = Sequence[
12661266
tuple[_InstrumentationScopePredicateT, _TracerConfig]
12671267
]

0 commit comments

Comments
 (0)