File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change 6363 SdkConfiguration ,
6464)
6565from 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+ )
6770from opentelemetry .util ._once import Once
6871from 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]
Original file line number Diff line number Diff line change 6969from opentelemetry .sdk .util .instrumentation import (
7070 InstrumentationInfo ,
7171 InstrumentationScope ,
72+ _InstrumentationScopePredicateT ,
7273)
7374from 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]
You can’t perform that action at this time.
0 commit comments