Skip to content

Commit

Permalink
fixup! Support non-indexable high-cardinality metric tags/metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
codebien committed Oct 17, 2022
1 parent da4669c commit 0b07133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/netext/httpext/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,12 @@ func MakeRequest(ctx context.Context, state *lib.State, preq *ParsedHTTPRequest)
if state.Options.HTTPDebug.String != "" {
// Combine tags with common log fields
combinedLogFields := map[string]interface{}{"source": "http-debug", "vu": state.VUID, "iter": state.Iteration}
for k, v := range preq.TagsAndMeta.Tags.Map() {
for k, v := range preq.TagsAndMeta.Metadata {
if _, present := combinedLogFields[k]; !present {
combinedLogFields[k] = v
}
}
for k, v := range preq.TagsAndMeta.Metadata {
for k, v := range preq.TagsAndMeta.Tags.Map() {
if _, present := combinedLogFields[k]; !present {
combinedLogFields[k] = v
}
Expand Down

0 comments on commit 0b07133

Please sign in to comment.