-
Notifications
You must be signed in to change notification settings - Fork 29
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
Excessive span.AddEvent for request/response size #92
Comments
Including the request and response sizes is part of the OTel RPC conventions. There's no particular reason we need to send any of that data using We'll take a look at this for unary RPCs, but it'll take us a little while to get to it. We're happy to take a PR if you're on a tighter schedule, though :) |
Nice, I’ll see about getting something together soon. |
The default implementation only optionally enables these events |
@akshayjshah can you please have a peek at marius' PR (https://github.com/bufbuild/connect-opentelemetry-go/pull/118) it seems to solve the problem nicely. |
So looking into this a but more it seems like the solution i'm leaning towards is https://github.com/bufbuild/connect-opentelemetry-go/pull/98 The fact that the gRPC implementation doesn't really mean much apart from the fact that it's not adhering strictly to its own standard:
This notably doesn't mention anything about adding the events as attributes on the main span, and if that is the desired behaviour then it should be raised as an issue on the opentelemetry specification. With that being said https://github.com/bufbuild/connect-opentelemetry-go/pull/98 is approved |
Addresses https://github.com/bufbuild/connect-opentelemetry-go/issues/92 with a new interceptor option to omit the sent/received events.
- Changes name of option from `OmitRPCEvents` to `OmitTraceEvents` to be more clear - Omits trace events for streaming too - Adds tests Closes: #92 --------- Co-authored-by: Akshay Shah <[email protected]>
- Changes name of option from `OmitRPCEvents` to `OmitTraceEvents` to be more clear - Omits trace events for streaming too - Adds tests Closes: #92 --------- Co-authored-by: Akshay Shah <[email protected]>
We just switched to using the module and have been very pleased with the auto-instrumented requests but have also seen the number of events we send to our provider (honeycomb) increase quite a bit. Because their usage is based on number of events, when calling
span.AddEvent
to attach the request and response, a single request between two services is now sending 5 events instead of 2.Is there a specific otel convention for using
AddEvent
to include the request/response sizes? Could we have an option to include them as attributes on the main request span?The text was updated successfully, but these errors were encountered: