Skip to content

Clarify that multiple calls to UseAzureMonitor is not allowed#56235

Merged
mattsains-msft merged 2 commits intoAzure:mainfrom
mattsains-msft:54616
Feb 13, 2026
Merged

Clarify that multiple calls to UseAzureMonitor is not allowed#56235
mattsains-msft merged 2 commits intoAzure:mainfrom
mattsains-msft:54616

Conversation

@mattsains-msft
Copy link
Member

Addresses #54616 . Calling UseAzureMonitor twice isn't allowed, so I've updated the docs to make it clearer because saying it does not result in two exporters might mislead users into thinking that it can still be called.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Azure.Monitor.OpenTelemetry.AspNetCore package README to more clearly communicate that calling AddOpenTelemetry().UseAzureMonitor() multiple times is not supported, addressing confusion reported in #54616.

Changes:

  • Clarifies the README note about multiple calls to AddOpenTelemetry.UseAzureMonitor().
  • Emphasizes that multiple calls are not allowed (instead of implying they harmlessly coalesce).

@mattsains-msft mattsains-msft merged commit 5fef03a into Azure:main Feb 13, 2026
23 checks passed
@mattsains-msft mattsains-msft deleted the 54616 branch February 13, 2026 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Monitor - Distro Monitor OpenTelemetry Distro

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants