Skip to content

fix(azure-monitor-opentelemetry): Resolve pylint errors (#48011)#1

Closed
JacksonWeber wants to merge 1 commit into
mainfrom
jacksonweber/fix-pylint-monitor-opentelemetry-48011
Closed

fix(azure-monitor-opentelemetry): Resolve pylint errors (#48011)#1
JacksonWeber wants to merge 1 commit into
mainfrom
jacksonweber/fix-pylint-monitor-opentelemetry-48011

Conversation

@JacksonWeber

@JacksonWeber JacksonWeber commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Addresses #48011 — resolves the outstanding next-pylint (4.0.6) failure for azure-monitor-opentelemetry.

Change

  • Samples — Add an inline disable for C4749 (networking-import-outside-azure-core-transport) on the import httpx statement in samples/tracing/http_httpx.py, matching the existing convention already used for import requests in http_requests.py.

Note

This branch was rebased onto the latest main. The other errors originally reported in Azure#48011C4766 (do-not-log-exceptions-if-not-debug) in the main package and lint issues in the browserSdkLoader tests — have since been resolved upstream, so the httpx sample is the only remaining next-pylint failure.

Verification

  • next-pylint (pylint 4.0.6 + azure-pylint-guidelines-checker 0.5.7) on main package, tests, and samples → all 10.00/10, exit 0.
  • black --check passes.

…zure#48011)

Add inline disable for C4749 (networking-import-outside-azure-core-transport)
on the `import httpx` statement in the http_httpx tracing sample, matching the
existing convention used for `import requests` in http_requests.py.

The remaining next-pylint errors originally reported in Azure#48011 (C4766 in the
main package and lint issues in the browserSdkLoader tests) have since been
resolved upstream; this rebased change addresses the only outstanding
next-pylint failure for the package.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 219ddb2e-a7c0-4d3c-9be9-0f098587dc09
@JacksonWeber
JacksonWeber force-pushed the jacksonweber/fix-pylint-monitor-opentelemetry-48011 branch from dfa3774 to 02bf2a4 Compare July 13, 2026 18:25
@JacksonWeber
JacksonWeber requested a review from Copilot July 13, 2026 18:30

Copilot AI left a comment

Copy link
Copy Markdown

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 resolves the remaining next-pylint failure for azure-monitor-opentelemetry by aligning the httpx tracing sample with the existing samples’ linting convention for third-party HTTP client imports.

Changes:

  • Adds an inline pylint disable for networking-import-outside-azure-core-transport on the httpx import in the http_httpx.py sample.
  • Matches the established pattern already used in the http_requests.py sample for requests.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@JacksonWeber

Copy link
Copy Markdown
Owner Author

Closing — this was mistakenly opened against the fork's own main. Reopened against upstream: Azure#48034

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants