Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add otelhttp.NewMiddleware for better compatiblity with third-party H…
…TTP routers and middleware chainers The key difference between the existing otelhttp.NewHandler and otelhttp.NewMiddleware is that the middleware takes the `next` handler as an argument after construction, wheres NewHandler works by wrapping one specific http.Handler at construction time.
- Loading branch information
Showing
2 changed files
with
28 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters