Skip to content

Commit 2298f14

Browse files
committed
Fix typecheck
1 parent 830fd1b commit 2298f14

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • opentelemetry-sdk/src/opentelemetry/sdk/_configuration

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)