Replies: 1 comment 2 replies
-
Hi @BlueskyFR - from my knowledge of the OpenTelemetry Specification I'd say that this use-case is not supported. We'd actually need a OpenTelemetry SDK Specification amendment that triggers an event of sorts, so that a metric reader could listen to whenever a metric was written. At this point it may be easier to use the logs API with a |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
By default, the only implementation of the abstract class
MetricReaderAbstract
isPeriodicExportingMetricReader
, meaning that metrics are exported every X seconds.I am retrieving metrics from somwhere at a non-fixed interval. It is around every 5 minutes but it sometimes takes less, sometimes more so I want to call the "push" event myself every time, to only push when my data is updated (all at once).
Seems to me that a different class would be required for that (like
EventBasedExportingMetricReader
).My use case seems pretty simple so I was wondering if maybe I just got it wrong?
A way would certainly be to set
PeriodicExportingMetricReader
to 999999 seconds and force_push I guess? But it's a bit uglyBeta Was this translation helpful? Give feedback.
All reactions