Skip to content

Configure AI Gateway native OpenTelemetry monitoring - #26

Merged
Paul Yuknewicz (paulyuk) merged 5 commits into
mainfrom
copilot/update-ai-gateway-monitoring
Nov 1, 2026
Merged

Paul Yuknewicz (paulyuk) merged 5 commits into
mainfrom
copilot/update-ai-gateway-monitoring

Conversation

Copilot AI commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

The legacy Application Insights exporter is not reliably recognized by the AI Gateway monitoring experience. This change configures the native OTLP exporter after Application Insights provisions its managed endpoints and DCR.

  • Bicep: Enable AzureMonitorWorkspaceIngestionMode, remove the legacy inline exporter, and expose the Application Insights, Log Analytics workspace, and Gateway principal IDs.
  • Postprovision hooks: Register Microsoft.Monitor, wait for the managed DCR and ingestion endpoints, and assign Monitoring Metrics Publisher at the DCR scope using a direct ARM PUT. Configure the OpenTelemetry exporter with the resource ID, signal endpoints, and managed identity audience:
    {
      "kind": "OpenTelemetry",
      "openTelemetry": {
        "metricsEndpoint": "<metrics endpoint>",
        "logsEndpoint": "<logs endpoint>",
        "tracesEndpoint": "<traces endpoint>",
        "managedIdentity": { "resource": "https://monitor.azure.com" }
      }
    }
  • Migration and docs: Delete an existing exporter before recreating it when its immutable kind is not OpenTelemetry. Document the managed-resource-group deny-assignment constraint and preview behavior where exporter GET responses may omit tracesEndpoint.
  • Coverage: Extend the AI Gateway model-registration test with assertions for ingestion mode, outputs, and hook configuration.

Copilot AI linked an issue Oct 25, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Update AI Gateway monitoring to use OpenTelemetry configuration Configure AI Gateway native OpenTelemetry monitoring Oct 25, 2026
Copilot AI and others added 4 commits November 1, 2026 10:41
Co-authored-by: paulyuk <1968137+paulyuk@users.noreply.github.com>
Co-authored-by: paulyuk <1968137+paulyuk@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 4448b1aa-1ea5-4c5f-af63-7ec98b7acb9e
… contract

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 4448b1aa-1ea5-4c5f-af63-7ec98b7acb9e
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 4448b1aa-1ea5-4c5f-af63-7ec98b7acb9e
@paulyuk
Paul Yuknewicz (paulyuk) merged commit 908186c into main Nov 1, 2026
1 check passed
@paulyuk
Paul Yuknewicz (paulyuk) deleted the copilot/update-ai-gateway-monitoring branch November 1, 2026 21:31
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.

Update AI Gateway monitoring to use the current OpenTelemetry configuration

2 participants