Skip to content

Conversation

@xiang17
Copy link
Member

@xiang17 xiang17 commented Jan 5, 2026

Fix # .

If APPLICATIONINSIGHTS_METRICS_TO_LOGANALYTICS_ENABLED is set to true, send OTel metrics to Breeze even if OTEL_METRICS_EXPORTER doesn't have azure_monitor.

For significant contributions please make sure you have completed the following items:

  • Design discussion issue #
  • Changes in public surface reviewed
  • CHANGELOG.md updated

properties.put("otel.metrics.exporter", "none");
String azureMonitorName = AzureMonitorExporterProviderKeys.EXPORTER_NAME;
boolean metricsToLogAnalyticsEnabled =
otelConfig.getBoolean("applicationinsights.metrics.to.loganalytics.enabled", false);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The specifications seem to indicate that the APPLICATIONINSIGHTS_METRICS_TO_LOGANALYTICS_ENABLED should only be used in case of AKS and Auto-Attach. AKS detection can be done in this way:

Auto-Attach detection requires the Java agent JAR path . See DiagnosticHelper.initRpIntegration.(Path agentPath) and DiagnosticsHelper.setRpAttachType(Path agentPath, String markerFile) .

AiConfigCustomizer is instanciated in the SecondEntry point:

The RP integration of DiagnosticsHelper is initiliazed in the first entry point:

I am not sure that the first entry point always finishes to execute before the second one. If the first entry point always finishes to execute before the second one, you could use the RP initialization done in the first entry point from the second one. Otherwise, you could reimplement the same kind of things in the second entry point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants