Skip to content

opentelemetry-instrumentation-requests: remove multiple calls to sanitize_method#4719

Open
codeboten wants to merge 3 commits into
open-telemetry:mainfrom
codeboten:codeboten/update-requests-instrumentation
Open

opentelemetry-instrumentation-requests: remove multiple calls to sanitize_method#4719
codeboten wants to merge 3 commits into
open-telemetry:mainfrom
codeboten:codeboten/update-requests-instrumentation

Conversation

@codeboten

@codeboten codeboten commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Description

Instead call the method once and pass the results in where needed

Type of change

Please delete options that are not relevant.

  • Small improvement

How Has This Been Tested?

Benchmarks with similar results to #4718

Does This PR Require a Core Repo Change?

  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added

…tize_method

Instead call the method once and pass the results in where needed

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
@codeboten codeboten requested a review from a team as a code owner June 18, 2026 22:09
Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>

@emdneto emdneto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the benchmark. Tested it and it's working fine, but I don't think the results are being published/tracked anywhere. I'll open an issue for that.

@github-project-automation github-project-automation Bot moved this to Approved PRs in Python PR digest Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Approved PRs

Development

Successfully merging this pull request may close these issues.

2 participants