-
Notifications
You must be signed in to change notification settings - Fork 118
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
refact: uuid func, new otelgrpc #638
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't comment on OTEL but the UUID change looks good to me. It makes me wonder why we have a function for creating UUIDs here in the first place though 🤔 Why not use the one from OPA (and who would also benefit from this fix)?
Yeah I was surprised, too -- why do we not use one of the common 3rd party deps here? It's not like there weren't at least two in the dependency tree anyways. 😉 |
Signed-off-by: Anthony Regeda <[email protected]>
I've imported 3rd party library for uuid purposes. |
@@ -159,8 +159,7 @@ func New(m *plugins.Manager, cfg *Config) plugins.Plugin { | |||
otelhttp.WithPropagators(propagation.NewCompositeTextMapPropagator(propagation.TraceContext{}, propagation.Baggage{}, b3.New(b3.WithInjectEncoding(b3.B3MultipleHeader|b3.B3SingleHeader)))), | |||
) | |||
grpcOpts = append(grpcOpts, | |||
grpc.UnaryInterceptor(otelgrpc.UnaryServerInterceptor(grpcTracingOption...)), | |||
grpc.StreamInterceptor(otelgrpc.StreamServerInterceptor(grpcTracingOption...)), | |||
grpc.StatsHandler(otelgrpc.NewServerHandler(grpcTracingOption...)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please explain this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both otelgrpc.UnaryServerInterceptor
and otelgrpc.StreamServerInterceptor
are deprecated.
Use NewServerHandler instead.
util.UUID4
function bygoogle/uuid
package.Benchmark results
Before:
After: