Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add otelhttp.Middleware for better compatiblity with third-party HTTP…
… routers and middleware chainers The key difference between the existing otelhttp.Handler and the new otelhttp.Middleware is that `Middleware` takes the `next` handler as an argument after construction, wheres the existing `Handler` works by wrapping one specific http.Handler at construction time.
- Loading branch information
Showing
2 changed files
with
24 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