You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/monitor/azure-monitor-opentelemetry-autoconfigure/README.md
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -141,14 +141,19 @@ For more information on the OpenTelemetry project, please review the [OpenTeleme
141
141
142
142
### Enabling Logging
143
143
144
-
You can leverage [Azure SDK logging](logging].
144
+
You can leverage [Azure SDK logging][logging].
145
145
146
146
Examples:
147
147
*[Log4j][log4j]
148
148
*[Logback][logback]
149
149
150
150
Learn more about [OpenTelemetry SDK logging][logging_otel_sdk].
151
151
152
+
### Disable live metrics
153
+
154
+
You can disable the [live metrics][live_metrics] by setting the `APPLICATIONINSIGHTS_LIVE_METRICS_ENABLED` environment variable to false, the `applicationinsights.live.metrics.enabled` Java system property to false,
155
+
or programmatically with a properties supplier: `sdkBuilder.addPropertiesSupplier(() -> Collections.singletonMap("applicationinsights.live.metrics.enabled", "false"))`.
156
+
152
157
## Next steps
153
158
Learn more about [OpenTelemetry][opentelemetry_io]
154
159
@@ -182,6 +187,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
Copy file name to clipboardExpand all lines: sdk/monitor/azure-monitor-opentelemetry-autoconfigure/src/main/java/com/azure/monitor/opentelemetry/autoconfigure/AzureMonitorAutoConfigure.java
Copy file name to clipboardExpand all lines: sdk/monitor/azure-monitor-opentelemetry-autoconfigure/src/main/java/com/azure/monitor/opentelemetry/autoconfigure/AzureMonitorExporterBuilder.java
"Telemetry will not be stored to disk and retried on sporadic network failures");
84
96
// TODO (heya) change LocalStorageStats.noop() to statsbeatModule.getNonessentialStatsbeat() when we decide to collect non-essential Statsbeat by default.
startStatsbeatModule(statsbeatModule, configProperties, tempDir); // wait till TelemetryItemExporter has been initialized before starting StatsbeatModule
Copy file name to clipboardExpand all lines: sdk/monitor/azure-monitor-opentelemetry-autoconfigure/src/main/java/com/azure/monitor/opentelemetry/autoconfigure/AzureMonitorLogRecordExporter.java
Copy file name to clipboardExpand all lines: sdk/monitor/azure-monitor-opentelemetry-autoconfigure/src/main/java/com/azure/monitor/opentelemetry/autoconfigure/implementation/LiveMetricsSpanProcessor.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ public boolean isStartRequired() {
30
30
31
31
@Override
32
32
publicvoidonEnd(ReadableSpanreadableSpan) {
33
-
if (quickPulse.isEnabled()) {
33
+
if (quickPulse != null && quickPulse.isEnabled()) {
34
34
// TODO (trask) can we do anything better here in terms of double conversion?
0 commit comments