-
Notifications
You must be signed in to change notification settings - Fork 779
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 Semantic Conventions: grpc attributes in aspnetcore #4660
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #4660 +/- ##
==========================================
+ Coverage 85.01% 85.02% +0.01%
==========================================
Files 314 314
Lines 12723 12725 +2
==========================================
+ Hits 10817 10820 +3
+ Misses 1906 1905 -1
|
This comment was marked as resolved.
This comment was marked as resolved.
// https://github.com/open-telemetry/semantic-conventions/blob/v1.21.0/docs/http/http-spans.md | ||
// https://github.com/open-telemetry/semantic-conventions/blob/v1.21.0/docs/database/database-spans.md | ||
// https://github.com/open-telemetry/semantic-conventions/blob/v1.21.0/docs/rpc/rpc-spans.md | ||
public const string AttributeClientAddress = "client.address"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good to add a comment saying this replaces net.peer.ip
in specific cases.
public void GrpcAspNetCoreInstrumentationAddsCorrectAttributes_New(bool? enableGrpcAspNetCoreSupport) | ||
{ | ||
var configuration = new ConfigurationBuilder() | ||
.AddInMemoryCollection(new Dictionary<string, string> { [SemanticConventionOptInKeyName] = "http" }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need not be done in this PR but the tests shouldn't be using the const string
variable SemanticConventionOptInKeyName
directly from src
file. Our tests. would not complain about it when someone accidentally changes the value for it in the src
file.
Design discussion issue #4484
Changes
Merge requirement checklist
CHANGELOG.md
files updated for non-trivial changes