Skip to content

Suppress internal sdkstats HTTP pipeline logs from appearing in user's traces#45966

Open
rads-1996 wants to merge 4 commits intoAzure:mainfrom
rads-1996:silence-sdkstats-console-logs
Open

Suppress internal sdkstats HTTP pipeline logs from appearing in user's traces#45966
rads-1996 wants to merge 4 commits intoAzure:mainfrom
rads-1996:silence-sdkstats-console-logs

Conversation

@rads-1996
Copy link
Copy Markdown
Member

@rads-1996 rads-1996 commented Mar 27, 2026

Description

Fixes - #45910

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Copilot AI review requested due to automatic review settings March 27, 2026 16:47
@github-actions github-actions bot added the Monitor - Exporter Monitor OpenTelemetry Exporter label Mar 27, 2026
Copy link
Copy Markdown
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

This PR addresses noisy INFO-level HTTP pipeline logs emitted by the internal sdkstats/statsbeat exporter, preventing those internal requests from showing up in user console output (per issue #45910).

Changes:

  • Conditionally omits HttpLoggingPolicy when initializing the sdkstats/statsbeat exporter pipeline.
  • Adds a corresponding entry to the package changelog.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/export/_base.py Skips adding HttpLoggingPolicy for sdkstats exporters to suppress internal HTTP request/response logs.
sdk/monitor/azure-monitor-opentelemetry-exporter/CHANGELOG.md Documents the bug fix in the unreleased section.

@rads-1996
Copy link
Copy Markdown
Member Author

Before Change -
image

After Change -
image

@rads-1996 rads-1996 force-pushed the silence-sdkstats-console-logs branch 3 times, most recently from b99d10e to c56446a Compare March 27, 2026 20:12
@rads-1996 rads-1996 force-pushed the silence-sdkstats-console-logs branch from c56446a to 58045a2 Compare March 27, 2026 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Monitor - Exporter Monitor OpenTelemetry Exporter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants