-
Notifications
You must be signed in to change notification settings - Fork 998
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
Update ServerRequest to accept server name #3619
Merged
Merged
Conversation
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
MrAlias
requested review from
jmacd,
Aneurysm9,
evantorrie,
XSAM,
dashpole,
MadVikingGod,
pellared,
hanyuancheung and
dmathieu
as code owners
January 25, 2023 19:48
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3619 +/- ##
=====================================
Coverage 79.4% 79.4%
=====================================
Files 170 170
Lines 12645 12654 +9
=====================================
+ Hits 10043 10052 +9
Misses 2392 2392
Partials 210 210
|
Isn't this a breaking change for the |
The code this changes hasn't been released yet. |
Aneurysm9
approved these changes
Jan 26, 2023
dashpole
approved these changes
Jan 26, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
net.host.name
andnet.host.port
need to be set to the primary server name if it is known1. Currently, theServerRequest
function provided by thehttpconv
packages do not include this in the processing of relevant attributes. This means for a user of these packages that know the primary server name, they need to manually added the attribute after a call toServerRequest
. This relies on the last-one-wins semantics of a spanSetAttributes
method which is not common knowledge, nor should it be needed for a user to correctly have their attributes defined.Instead, update the
ServerRequest
method accept theserver
and use it to decide on how to construct the appropriate attributes.Footnotes
https://github.com/open-telemetry/opentelemetry-specification/blob/v1.17.0/specification/trace/semantic_conventions/http.md#http-server-semantic-conventions ↩