Skip to content

Commit

Permalink
[datadogexporter] Fix missing resource attributes default mapping whe…
Browse files Browse the repository at this point in the history
…n resource_attributes_as_tags: false
  • Loading branch information
KSerrania committed Nov 17, 2021
1 parent e522448 commit 27e92a5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,8 @@ func (t *Translator) MapMetrics(ctx context.Context, md pdata.Metrics, consumer
var additionalTags []string
if t.cfg.InstrumentationLibraryMetadataAsTags {
additionalTags = append(attributeTags, instrumentationlibrary.TagsFromInstrumentationLibraryMetadata(ilm.InstrumentationLibrary())...)
} else {
additionalTags = attributeTags
}

for k := 0; k < metricsArray.Len(); k++ {
Expand Down

0 comments on commit 27e92a5

Please sign in to comment.