From a5c20d6aa7194b986314bb4826d9c776b9b84508 Mon Sep 17 00:00:00 2001 From: Lucas Fontes Date: Thu, 21 Nov 2024 17:13:13 -0500 Subject: [PATCH] chore: adding metric tags Signed-off-by: Lucas Fontes --- blaster.go | 2 +- wasihttp.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/blaster.go b/blaster.go index cc6d638..93cd318 100644 --- a/blaster.go +++ b/blaster.go @@ -61,7 +61,7 @@ func (w *wasiBlaster) doBlast(options sobek.Value) error { if state := w.vu.State(); state == nil { return fmt.Errorf("missing state blaster") } else { - tagSet = state.Tags.GetCurrentValues().Tags + tagSet = state.Tags.GetCurrentValues().Tags.WithTagsFromMap(w.tags) } timeout := DefaultBlasterTimeout diff --git a/wasihttp.go b/wasihttp.go index 64128e6..89a95d9 100644 --- a/wasihttp.go +++ b/wasihttp.go @@ -140,7 +140,7 @@ func (w *wasiHTTP) request(method string, url sobek.Value, args ...sobek.Value) if state := w.vu.State(); state == nil { return nil, fmt.Errorf("missing state wasihttp") } else { - tagSet = state.Tags.GetCurrentValues().Tags + tagSet = state.Tags.GetCurrentValues().Tags.WithTagsFromMap(w.tags) } timeout := DefaultHTTPTimeout consumeBody := false