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 google.golang.org/grpc/codes dependency from API by adding an equivalent codes package #1046

Merged
merged 10 commits into from
Aug 10, 2020

Conversation

MrAlias
Copy link
Contributor

@MrAlias MrAlias commented Aug 7, 2020

Having the API depend on google.golang.org/grpc is undesirerable as it imposes large dependency requirements for any system wanting to use the OpenTelemetry API to instrument their code. This is contrary to the project goals

The specification describes the canonical code to follow the standard gRPC codes. Building our own implementation of just the code portion of google.golang.org/grpc is what is done here.

This does not propagate the package all the way through the SDK and exporters. This is to minimize disruption for any existing exporters and given the same dependency concerns are not as stringent with the SDK (and the rest of the pipeline) this seems like the appropriate demarcation.

Part of #940

Resolves #973

@MrAlias MrAlias added pkg:API Related to an API package area:trace Part of OpenTelemetry tracing labels Aug 7, 2020
@MrAlias MrAlias self-assigned this Aug 7, 2020
codes/codes.go Outdated Show resolved Hide resolved
@MrAlias MrAlias merged commit efd4e3a into open-telemetry:master Aug 10, 2020
@MrAlias MrAlias deleted the codes branch August 10, 2020 16:17
@Aneurysm9 Aneurysm9 mentioned this pull request Aug 24, 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
area:trace Part of OpenTelemetry tracing pkg:API Related to an API package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace google.golang.org/grpc/codes based Span Status in API
5 participants