Skip to content

Commit f2f49fd

Browse files
committed
OpAMP is optional
1 parent a83ab37 commit f2f49fd

File tree

1 file changed

+5
-2
lines changed
  • opentelemetry-sdk/src/opentelemetry/sdk/_configuration

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,11 @@ def _initialize_components(
457457
# config so we can track the difference between current config and a newly provided remote
458458
# config. The goal is to have configuration updated dynamically while our SDK config is
459459
# currently static.
460-
_init_opamp = _import_opamp()
461-
_init_opamp(resource=resource)
460+
try:
461+
_init_opamp = _import_opamp()
462+
_init_opamp(resource=resource)
463+
except RuntimeError:
464+
_logger.debug("No OpAMP init function found")
462465

463466
_init_tracing(
464467
exporters=span_exporters,

0 commit comments

Comments
 (0)