Skip to content

Commit 3c1eb2e

Browse files
committed
OpAMP is optional
1 parent a74d746 commit 3c1eb2e

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

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

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,8 +580,11 @@ def _initialize_components(
580580
# config so we can track the difference between current config and a newly provided remote
581581
# config. The goal is to have configuration updated dynamically while our SDK config is
582582
# currently static.
583-
_init_opamp = _import_opamp()
584-
_init_opamp(resource=resource)
583+
try:
584+
_init_opamp = _import_opamp()
585+
_init_opamp(resource=resource)
586+
except RuntimeError:
587+
_logger.debug("No OpAMP init function found")
585588

586589
_init_tracing(
587590
exporters=span_exporters,

0 commit comments

Comments
 (0)