Skip to content

When would someone use a Manual Reader? #4311

Answered by pellared
iamkirkbater asked this question in Q&A
Discussion options

You must be logged in to vote

I have seen from my testing, though, that the Periodic Reader will push the metrics at the end of the command line invocation, provided that it has been shut down properly. Are there any exceptions to this? Would that be appropriate for all command-line invocation use-cases?

I think you should be fine using a Periodic Reader.

So, I guess my actual question is - what's the purpose of the Manual Reader and when would you use it, or - better yet - how would you use it?

  1. When writing your own custom exporter. E.g. "Pull based" exporters like Prometheus are implementing the metric.Reader interface and also use it under the hood. See https://github.com/open-telemetry/opentelemetry-go/blob/m…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@iamkirkbater
Comment options

@pellared
Comment options

@iamkirkbater
Comment options

@iamkirkbater
Comment options

Answer selected by iamkirkbater
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