File tree Expand file tree Collapse file tree
opentelemetry-sdk/src/opentelemetry/sdk/_configuration Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -523,11 +523,12 @@ def _import_id_generator(id_generator_name: str) -> IdGenerator:
523523 raise RuntimeError (f"{ id_generator_name } is not an IdGenerator" )
524524
525525
526- def _import_opamp () -> Callable [[... ], None ]:
526+ def _import_opamp () -> Callable [[Resource ], None ] | None :
527527 # this in development, at the moment we are looking for a callable that takes
528528 # the resource and instantiate an OpAMP agent.
529529 # Since configuration is not specified every implementors may have its own.
530530 # Refer to opentelemetry-opamp-client package on how to setup the OpAMP agent.
531+ entry_point = None
531532 try :
532533 entry_point = next (
533534 iter (
@@ -614,7 +615,7 @@ def _initialize_components(
614615 # up the rest of the SDK.
615616 _init_opamp = _import_opamp ()
616617 if _init_opamp is not None :
617- _init_opamp (resource = resource )
618+ _init_opamp (resource )
618619
619620 _init_tracing (
620621 exporters = span_exporters ,
You can’t perform that action at this time.
0 commit comments