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

Add slim Go module without gRPC dependencies #155

Merged
merged 11 commits into from
Mar 11, 2024

Conversation

pellared
Copy link
Member

@pellared pellared commented Feb 22, 2024

Fixes #100

Towards open-telemetry/opentelemetry-go#2579

Add go.opentelemetry.io/proto/slim/otlp Go module that does not generate gRPC code.

Thanks to it codebase which only sends protobuf over HTTP can import go.opentelemetry.io/proto/slim/otlp that will not depend on google.golang.org/grpc.

The plan is to publish a v1.2.0-rc.1 release once this PR is merged. We prefer to release v1.2.0 when v1.2.0 of https://github.com/open-telemetry/opentelemetry-proto is released (to have version parity).

Tested with open-telemetry/opentelemetry-go#5031

@pellared pellared changed the title Add light/otlp and light/otlp/collector Go modules Add light Go modules Feb 22, 2024
@pellared pellared marked this pull request as ready for review February 22, 2024 16:31
@pellared pellared requested a review from a team February 22, 2024 16:31
@pellared

This comment was marked as outdated.

@pellared pellared marked this pull request as draft February 22, 2024 19:09
@pellared pellared changed the title Add light Go modules Add light Go module without gRPC services Feb 28, 2024
@pellared pellared changed the title Add light Go module without gRPC services Add light Go module without gRPC dependencies Feb 28, 2024
@pellared pellared marked this pull request as ready for review February 28, 2024 16:52
@pellared
Copy link
Member Author

PTAL @open-telemetry/go-approvers

@MrAlias
Copy link
Contributor

MrAlias commented Feb 29, 2024

Would go.opentelemetry.io/proto/slim/otlp better communicate the smaller dependency nature of the package?

@pellared
Copy link
Member Author

pellared commented Feb 29, 2024

Would go.opentelemetry.io/proto/slim/otlp better communicate the smaller dependency nature of the package?

I like the name as it shows that it has also has "less things" (offers a smaller amount of types, functionality, dependencies). I will update the PR.

@pellared pellared marked this pull request as draft February 29, 2024 18:26
@pellared pellared changed the title Add light Go module without gRPC dependencies Add slim Go module without gRPC dependencies Feb 29, 2024
@pellared pellared marked this pull request as ready for review February 29, 2024 19:53
@pellared pellared requested a review from MrAlias February 29, 2024 19:53
@pellared
Copy link
Member Author

pellared commented Feb 29, 2024

This codebase is not used by OTel Collector. Collector is generating the code from proto files on its own in https://github.com/open-telemetry/opentelemetry-collector/blob/main/Makefile.

@pellared
Copy link
Member Author

pellared commented Mar 6, 2024

@open-telemetry/go-approvers PTAL.

I also tested the changes done in this PR here: open-telemetry/opentelemetry-go#5031

@pellared pellared merged commit 843429e into open-telemetry:main Mar 11, 2024
3 checks passed
@pellared pellared deleted the light-mod branch March 11, 2024 07:21
@pellared pellared mentioned this pull request Nov 28, 2024
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.

Split go.opentelemetry.io/proto module to exclude grpc dependencies
3 participants