Skip to content

Commit

Permalink
Merge branch 'main' into traceprovider-shutdown-release-resource
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias authored Jan 3, 2023
2 parents 900d5e6 + ad4d54e commit 0b0e823
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sdk/metric/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ type Exporter interface {
// implement any retry logic. All errors returned by this function are
// considered unrecoverable and will be reported to a configured error
// Handler.
//
// The passed ResourceMetrics may be reused when the call completes. If an
// exporter needs to hold this data after it returns, it needs to make a
// copy.
Export(context.Context, metricdata.ResourceMetrics) error

// ForceFlush flushes any metric data held by an exporter.
Expand Down

0 comments on commit 0b0e823

Please sign in to comment.