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

Fill up C++ sections #2

Merged
merged 2 commits into from
Jan 18, 2024
Merged

Conversation

yashykt
Copy link

@yashykt yashykt commented Jan 17, 2024

No description provided.

}
// If `SetTracerProvider()` is not called, no traces are collected.
OpenTelemetryPluginBuilder& SetTracerProvider(
std::shared_ptr<opentelemetry::metrics::SetTracerProvider>
Copy link
Owner

Choose a reason for hiding this comment

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

is this opentelemetry::metrics::SetTracerProvider correct?

Copy link
Author

Choose a reason for hiding this comment

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

Thanks! fixed

std::shared_ptr<opentelemetry::metrics::SetTracerProvider>
tracer_provider);
// Set one or multiple text map propagators for span context propagation, e.g.
// GrpcTraceBinPropagator or community standard ones like W3C, etc.
Copy link
Owner

Choose a reason for hiding this comment

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

not your fault but the GrpcTraceBinPropagator should be GrpcTraceBinTextMapPropagator to match elsewhere

Copy link
Author

Choose a reason for hiding this comment

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

done

Copy link
Owner

@YifeiZhuang YifeiZhuang left a comment

Choose a reason for hiding this comment

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

LGTM! Only minor comments. Feel free to merge after you resolve them.
(I also verified that the binary to spanContext converter is correct.
This is what java is using in open census and otel will have similar, they are equivalent to your's.)

@YifeiZhuang YifeiZhuang merged commit cf24140 into YifeiZhuang:ot-tracing Jan 18, 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
2 participants