Skip to content

brave: allows AsyncZipkinSpanHandler to be built with custom formats#239

Merged
codefromthecrypt merged 2 commits intomasterfrom
custom-format
Jan 9, 2024
Merged

brave: allows AsyncZipkinSpanHandler to be built with custom formats#239
codefromthecrypt merged 2 commits intomasterfrom
custom-format

Conversation

@codefromthecrypt
Copy link
Copy Markdown
Member

This is needed for stackdriver and any future OTLP work, as well as developing a standard proto encoder.

* @since 3.1
*/
// AsyncZipkinSpanHandler not SpanHandler, so that Flushable and Closeable are accessible
public AsyncZipkinSpanHandler build(BytesEncoder<MutableSpan> encoder) {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I noticed that we can't really move off zipkin types without this, as this handler only worked with json! Will release 3.1.0 shortly afterwards.

@codefromthecrypt codefromthecrypt changed the title brave: allows AsyncZipkinSpanHandler to be build with custom formats brave: allows AsyncZipkinSpanHandler to be built with custom formats Jan 9, 2024
This is needed for stackdriver and any future OTLP work, as well as
developing a standard proto encoder.

Signed-off-by: Adrian Cole <[email protected]>
@codefromthecrypt
Copy link
Copy Markdown
Member Author

added tests and will merge on green. Thanks for the look @anuraaga!

Signed-off-by: Adrian Cole <[email protected]>
@codefromthecrypt
Copy link
Copy Markdown
Member Author

after this https://github.com/openzipkin-contrib/zipkin-otel can have a brave encoder and sender without dependencies on zipkin types.

@codefromthecrypt codefromthecrypt merged commit dea1650 into master Jan 9, 2024
@codefromthecrypt codefromthecrypt deleted the custom-format branch January 9, 2024 06:43
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.

2 participants