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

Update grpctrace instrumentation span names #922

Merged
merged 14 commits into from
Jul 9, 2020

Conversation

MrAlias
Copy link
Contributor

@MrAlias MrAlias commented Jul 8, 2020

Span names MUST not contain the leading slash (/) that the grpc package prepends to all FullMethod values. This replaces the serviceFromFullMethod function with a parsing function. This parsing function returns an span name adhering to the OpenTelemetry semantic conventions as well as formatted span attributes.

Additionally, the service name needs to include the package if one exists. This updates that attribute accordingly.

Resolves #916

Span names MUST not contain the leading slash (`/`) that the grpc
package prepends to all `FullMethod` values. This replaces the
`serviceFromFullMethod` function with a parsing function. This parsing
function returns an span name adhering to the OpenTelemetry semantic
conventions as well as formatted span attributes.

Additionally, the service name needs to include the package if one
exists. This updates that attribute accordingly.

Once #900 is merged the method attributes can be added by uncommenting.

Resolves #916
Co-authored-by: ET <evantorrie@users.noreply.github.com>
@MrAlias MrAlias merged commit 54fffd6 into open-telemetry:master Jul 9, 2020
@MrAlias MrAlias deleted the grpctrace branch July 9, 2020 20:12
@MrAlias MrAlias mentioned this pull request Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Leading slash on gRPC spans
3 participants