-
Notifications
You must be signed in to change notification settings - Fork 894
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
Remove BinaryFormat and HttpTextFormat from Tracer #214
Conversation
Fixes open-telemetry#112. Those formats are moved into [Propagators](https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/api-propagators.md).
I think we still need this. We need a Binary/Http formats for SpanContext and for DistributedContext. Do you take a dependency on trace/distributedCtxt there? |
The propagators define a format that will be a template because they do not depend on SpanContext or DistributedContext. I am not sure how do I get an instance of the BinaryFormat that knows to serialize a SpanContext vs one that knows to serialize a DistributedContext. |
@@ -16,8 +16,6 @@ Table of Content | |||
* [WithSpan](#withspan) | |||
* [SpanBuilder](#spanbuilder) | |||
* [RecordSpanData](#recordspandata) | |||
* [GetBinaryFormat](#getbinaryformat) |
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.
The propagators define a format that will be a template because they do not depend on SpanContext or DistributedContext. I am not sure how do I get an instance of the BinaryFormat that knows to serialize a SpanContext vs one that knows to serialize a DistributedContext.
@bogdandrutu From my understanding the
The point here is we should have a different entry that holds the formats rather than OpenTelemetry.getPropagator().getTracingBinaryFormat(); rather than OpenTelemetry.getTracer().getBinaryFormat(); Which is closer to what we had in OpenCensus ( |
Ok so you need to propose the entire change not just removing the once in the tracer, currently I don't see anywhere documented the API you suggested. |
Added a note in 4aa2b6c. I think this matched what Go (open-telemetry/opentelemetry-go#85) and Python (open-telemetry/opentelemetry-python#78) did. |
Agree with this (unless that other changes happens to be too big). |
@songy23 is it fair to say that we have an agreement on principle but requires additional changes in this PR before it can be merged? |
Looks this is addressed in #209 (https://github.com/open-telemetry/opentelemetry-specification/pull/209/files#diff-ea4f4a46fe8755cf03f9fb3a6434cb0cR130):
Since it says "SHOULD" rather than "MUST" I would assume having |
Superseded by #209. |
And
It is not clear. First paragraph says that Tracer SHOULD but DOESN'T HAVE TO allow end user.. |
Fixes #112. Those formats are moved into Propagators.