Skip to content

Commit 45f5cb3

Browse files
committed
Address feedback
1 parent cef919a commit 45f5cb3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/statsbeat

sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/statsbeat/_manager.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ def from_exporter(cls, exporter: Any) -> Optional["StatsbeatConfig"]:
8989
disable_offline_storage=exporter._disable_offline_storage,
9090
credential=exporter._credential,
9191
distro_version=exporter._distro_version,
92-
mot_distro_features=exporter._mot_distro_features,
93-
mot_distro_instrumentations=exporter._mot_distro_instrumentations,
92+
mot_distro_features=getattr(exporter, "_mot_distro_features", 0),
93+
mot_distro_instrumentations=getattr(exporter, "_mot_distro_instrumentations", 0),
9494
)
9595

9696
@classmethod
@@ -136,8 +136,8 @@ def from_config(cls, base_config: "StatsbeatConfig", config_dict: Dict[str, str]
136136
disable_offline_storage=disable_offline_storage_config, # TODO: Use config value once supported
137137
credential=base_config.credential,
138138
distro_version=base_config.distro_version,
139-
mot_distro_features=base_config.mot_distro_features,
140-
mot_distro_instrumentations=base_config.mot_distro_instrumentations,
139+
mot_distro_features=getattr(base_config, "mot_distro_features", 0),
140+
mot_distro_instrumentations=getattr(base_config, "mot_distro_instrumentations", 0),
141141
connection_string=connection_string,
142142
)
143143

0 commit comments

Comments
 (0)