Skip to content

SpanProducer / SpanReader? #4029

Answered by jack-berg
hdost asked this question in Q&A
Dec 27, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

No, I don't think that's likely.

Metrics are aggregations of recorded measurements. The idea of a metric reader is that upon some signal, you read all the aggregated measurements in the form of metrics. If you have a pull based exporter, the signal is some consumer (such as a scraper) polling for metrics. If you have a push based exporter, the signal is a schedule which dictates periodic exports.

Tracing doesn't involve aggregation. Also, there aren't any pull based mechanisms for exporting traces that I'm aware of.

You could implement your own SpanProcessor that acted like a metric reader. It could accumulate spans in memory until some signal indicates that they should be exported in som…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hdost
Comment options

Answer selected by hdost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants