Skip to content
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

otelhttp: Allow setting start time using context #6137

Merged
merged 8 commits into from
Oct 21, 2024

Conversation

dashpole
Copy link
Contributor

Fixes #5318

This allows overriding the start time for http server metrics and traces. See the linked issue for the motivation.

Copy link

codecov bot commented Sep 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.6%. Comparing base (1c56a7c) to head (0f43e7a).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #6137   +/-   ##
=====================================
  Coverage   66.6%   66.6%           
=====================================
  Files        191     192    +1     
  Lines      15516   15525    +9     
=====================================
+ Hits       10345   10351    +6     
- Misses      4881    4883    +2     
- Partials     290     291    +1     
Files with missing lines Coverage Δ
instrumentation/net/http/otelhttp/handler.go 92.4% <100.0%> (+0.2%) ⬆️
...umentation/net/http/otelhttp/start_time_context.go 100.0% <100.0%> (ø)

... and 1 file with indirect coverage changes

@dashpole
Copy link
Contributor Author

dashpole commented Oct 3, 2024

@open-telemetry/opamp-go-approvers this needs one more review if anyone has time

@pellared pellared changed the title Allow setting start time using go context for otelhttp otelhttp: Allow setting start time using context Oct 16, 2024
Copy link
Member

@pellared pellared left a comment

Choose a reason for hiding this comment

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

minor nit comments only

@pellared pellared added this to the v1.32.0 milestone Oct 16, 2024
@dashpole dashpole merged commit b011c6d into open-telemetry:main Oct 21, 2024
25 checks passed
@dashpole dashpole deleted the otelhttp_start branch October 21, 2024 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

otelhttp: allow setting the start timestamp using go Context
3 participants