Skip to content

Middleware: HTTP support (part 3/4) #12845

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Apr 18, 2025

Conversation

jmacd
Copy link
Contributor

@jmacd jmacd commented Apr 15, 2025

Description

Adds the HTTP middleware support from #12842.

Link to tracking issue

Part of #12603.

Testing

Yes.

Documentation

Added.

@jmacd jmacd requested a review from a team as a code owner April 15, 2025 01:00
@jmacd jmacd requested a review from songy23 April 15, 2025 01:00
@songy23 songy23 requested a review from bogdandrutu April 15, 2025 13:46
@github-actions github-actions bot requested a review from bogdandrutu April 18, 2025 17:17
@jmacd jmacd assigned jmacd and unassigned jmacd Apr 18, 2025
@jmacd jmacd added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Apr 18, 2025
@open-telemetry open-telemetry deleted a comment from codecov bot Apr 18, 2025
Copy link

codecov bot commented Apr 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.54%. Comparing base (9a54388) to head (abc302d).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #12845   +/-   ##
=======================================
  Coverage   91.54%   91.54%           
=======================================
  Files         499      499           
  Lines       27052    27076   +24     
=======================================
+ Hits        24764    24788   +24     
  Misses       1809     1809           
  Partials      479      479           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jmacd jmacd removed the Skip Changelog PRs that do not require a CHANGELOG.md entry label Apr 18, 2025
// HTTPClientFunc implements an HTTP client middleware function. This
// is the equivalent of net/http.HandlerFunc for creating a
// net/http.RoundTripper from a function.
type HTTPClientFunc func(*http.Request) (*http.Response, error)
Copy link
Member

Choose a reason for hiding this comment

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

RoundTripperFunc to be consistent with http.HandlerFunc?

@bogdandrutu bogdandrutu added this pull request to the merge queue Apr 18, 2025
Merged via the queue into open-telemetry:main with commit 6993fa1 Apr 18, 2025
75 checks passed
github-merge-queue bot pushed a commit that referenced this pull request Apr 19, 2025
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.

2 participants