Skip to content

Commit

Permalink
output/cloud: Atlas migration
Browse files Browse the repository at this point in the history
  • Loading branch information
codebien committed Jul 26, 2022
1 parent 5592675 commit 41823e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions output/cloud/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,12 +333,12 @@ func useCloudTags(source *httpext.Trail) *httpext.Trail {
return source
}

newTags := source.Tags.CloneTags()
newTags["url"] = name
newTags := metrics.TagMapFromSampleTags(source.Tags)
newTags.AddTag("url", name)

dest := new(httpext.Trail)
*dest = *source
dest.Tags = metrics.IntoSampleTags(&newTags)
dest.Tags = newTags.SampleTags()
dest.Samples = nil

return dest
Expand Down

0 comments on commit 41823e4

Please sign in to comment.