Skip to content

Commit

Permalink
Update datadog.go
Browse files Browse the repository at this point in the history
Address feedback to have labels override resource attributes.
  • Loading branch information
MrAlias committed Jun 23, 2020
1 parent 5159c59 commit 7228d88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporters/metric/datadog/datadog.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (e *Exporter) Export(ctx context.Context, cs export.CheckpointSet) error {
// TODO: Use the Resource() method
agg := r.Aggregator()
name := e.sanitizeMetricName(r.Descriptor().LibraryName(), r.Descriptor().Name())
itr := label.NewMergeIterator(r.Resource().LabelSet(), r.Labels())
itr := label.NewMergeIterator(r.Labels(), r.Resource().LabelSet())
tags := append([]string{}, e.opts.Tags...)
for itr.Next() {
label := itr.Label()
Expand Down

0 comments on commit 7228d88

Please sign in to comment.