Skip to content

Commit b317514

Browse files
committed
Add supportability metric
1 parent 4a44eac commit b317514

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

newrelic/core/application.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,13 @@ def connect_to_data_collector(self, activate_agent):
595595
# Note: This environment variable will be set by the Azure Functions runtime
596596
if os.environ.get("FUNCTIONS_WORKER_RUNTIME", None):
597597
internal_metric("Supportability/Python/AzureFunctionMode/enabled", 1)
598+
599+
# OpenTelemetry Bridge toggle metric
600+
opentelemetry_bridge = configuration.opentelemetry.enabled
601+
internal_metric(
602+
f"Supportability/Tracing/Python/OpenTelemetryBridge/{'enabled' if opentelemetry_bridge else 'disabled'}",
603+
1,
604+
)
598605

599606
self._stats_engine.merge_custom_metrics(internal_metrics.metrics())
600607

0 commit comments

Comments
 (0)