Skip to content

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

Merged
bogdandrutu merged 14 commits intoopen-telemetry:mainfrom
jmacd:jmacd/configmiddle_3_http
Apr 18, 2025
Merged

Middleware: HTTP support (part 3/4)#12845
bogdandrutu merged 14 commits intoopen-telemetry:mainfrom
jmacd:jmacd/configmiddle_3_http

Conversation

@jmacd
Copy link
Copy Markdown
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
Comment thread config/confighttp/client_middleware_test.go Outdated
Comment thread config/confighttp/client_middleware_test.go Outdated
Comment thread config/confighttp/client_middleware_test.go Outdated
Comment thread config/confighttp/server_middleware_test.go Outdated
@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
@codecov
Copy link
Copy Markdown

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
Copy Markdown
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