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

Remove tags added by gRPC library in favor of OpenTelemetry tags #1260

Conversation

alanwest
Copy link
Member

Fixes #1021.

  • CHANGELOG.md updated for non-trivial changes
  • Design discussion issue #
  • Changes in public API reviewed

@alanwest alanwest requested a review from a team as a code owner September 10, 2020 23:40
Comment on lines -255 to -258
// TODO: Should the leading slash be trimmed? Spec seems to suggest no leading slash: https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/trace/semantic_conventions/rpc.md#span-name
// Client instrumentation is trimming the leading slash. Whatever we decide here, should we apply the same to the client side?
// activity.DisplayName = grpcMethod?.Trim('/');
Copy link
Member Author

@alanwest alanwest Sep 10, 2020

Choose a reason for hiding this comment

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

I'd forgotten to resolve this when I originally did the work on this. The spec seems to indicate that the name not lead with a /, but the ASP.NET Core instrumentation sets the name appropriately already, though has a leading /. My take is that we just leave it this way. Unless others feel the spec clearly indicates that this / should not be in the name. https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/trace/semantic_conventions/rpc.md#span-name

@codecov
Copy link

codecov bot commented Sep 10, 2020

Codecov Report

Merging #1260 into master will increase coverage by 0.06%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1260      +/-   ##
==========================================
+ Coverage   79.07%   79.13%   +0.06%     
==========================================
  Files         215      215              
  Lines        6170     6174       +4     
==========================================
+ Hits         4879     4886       +7     
+ Misses       1291     1288       -3     
Impacted Files Coverage Δ
...tation.AspNetCore/Implementation/HttpInListener.cs 90.90% <100.00%> (+0.18%) ⬆️
...ent/Implementation/GrpcClientDiagnosticListener.cs 90.90% <100.00%> (+0.58%) ⬆️
...emetry.Api/Internal/OpenTelemetryApiEventSource.cs 64.70% <0.00%> (+2.94%) ⬆️
...nTelemetry/Internal/OpenTelemetrySdkEventSource.cs 80.95% <0.00%> (+3.17%) ⬆️

@cijothomas cijothomas merged commit a5a2eb0 into open-telemetry:master Sep 15, 2020
@alanwest alanwest deleted the alanwest/grpc-remove-tags-from-library branch September 22, 2020 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove tags added by gRPC library in favor of OpenTelemetry tags
2 participants