Add Shutdown() to Metric Exporter interface #1348
Labels
area:sdk
Related to the SDK
priority:p1
Highest priority level
release:required-for-ga
Must be resolved before GA release, or nice to have before GA
spec:metrics
Related to the specification/metrics directory
Milestone
What are you trying to achieve?
I propose adding a
Shutdown()
orStop()
method to the Metric Exporter SDK interface.Currently, the
Exporter
for metrics in the SDK does not have aShutdown
method, whereas the traceSpanExporter
does require itAdditional context.
We have an in-house push-based metrics exporter which queues checkpointed records to an asynchronous batched sender.
In the
go
implementation, the pusher implementation has aStop()
method, which sends one final checkpoint of records to the metric exporter. However, it has no way to notify the exporter that it is stopping - i.e. that the exporter should also at least flush/shut down itself as well.It seems somewhat inconsistent that
SpanExporter
s have aShutdown()
method but metricsExporter
s do not.The text was updated successfully, but these errors were encountered: