Skip to content

Commit

Permalink
Merge pull request #782 from tsloughter/metrics-skip-empty
Browse files Browse the repository at this point in the history
metric exporter: nothing to do for an empty list of metrics
  • Loading branch information
tsloughter authored Oct 3, 2024
2 parents 4bf0c43 + b314453 commit 1487af0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/opentelemetry_experimental/src/otel_exporter_metrics.erl
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ init(Opts) ->

export(undefined, _Metrics, _Resource) ->
ok;
export(_, [], _Resource) ->
ok;
export({ExporterModule, Config}, Metrics, Resource) ->
ExporterModule:export(Metrics, Resource, Config).

Expand Down

0 comments on commit 1487af0

Please sign in to comment.