Skip to content

Add a first gRPC implementation choice#140

Open
agagniere wants to merge 6 commits intozig-o11y:mainfrom
agagniere:grpc
Open

Add a first gRPC implementation choice#140
agagniere wants to merge 6 commits intozig-o11y:mainfrom
agagniere:grpc

Conversation

@agagniere
Copy link
Copy Markdown
Contributor

Closes #102

Stacked on top of #139

@agagniere agagniere marked this pull request as draft March 29, 2026 23:51
@agagniere agagniere marked this pull request as ready for review March 30, 2026 09:30
@agagniere agagniere marked this pull request as draft April 1, 2026 16:48
@inge4pres
Copy link
Copy Markdown
Collaborator

Time to rebase here :)

@agagniere agagniere marked this pull request as ready for review April 2, 2026 00:16

fn grpcPath(self: Self) []const u8 {
switch (self) {
.metrics => return "/opentelemetry.proto.collector.metrics.v1.MetricsService/Export",
Copy link
Copy Markdown
Contributor Author

@agagniere agagniere Apr 2, 2026

Choose a reason for hiding this comment

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

With zig-protobuf's service generation we will be able to generate this at comptime if desired
EDIT: when we will target Zig 0.16

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Have you tried incorporating Arwalk/zig-protobuf to generate structs for Services?
Not saying we should do it in this PR, also because the service generation code is not yet released, it is only found in zig-master branch, targeting 0.16.0.
Just curious if we are referring to the same thing or not.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes I did it in my master branch targeting 0.16.
Here I'm using my zig-0.15 branch

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

great thanks 🙏🏼

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.

Support gRPC transport in OTLP

2 participants