Skip to content

Update grpctrace instrumentation span names#922

Merged
MrAlias merged 14 commits intoopen-telemetry:masterfrom
MrAlias:grpctrace
Jul 9, 2020
Merged

Update grpctrace instrumentation span names#922
MrAlias merged 14 commits intoopen-telemetry:masterfrom
MrAlias:grpctrace

Conversation

@MrAlias
Copy link
Copy Markdown
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
@MrAlias MrAlias self-assigned this Jul 8, 2020
@MrAlias MrAlias added area: instrumentation bug Something isn't working labels Jul 8, 2020
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
@pellared pellared added this to the untracked milestone Nov 8, 2024
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

4 participants