Skip to content

Commit

Permalink
appsec: appsec event tag is named 'appsec' instead of _dd.appsec.json…
Browse files Browse the repository at this point in the history
… in meta_struct

Signed-off-by: Eliott Bouhana <eliott.bouhana@datadoghq.com>
  • Loading branch information
eliottness committed Feb 23, 2024
1 parent b10eaa4 commit 147955e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/appsec/trace/trace.go
Expand Up @@ -42,7 +42,7 @@ func SetEventSpanTags(span TagSetter, events []any) error {
}

// Set the appsec event span tag
span.SetTag("_dd.appsec.json", map[string]any{"triggers": events})
span.SetTag("appsec", map[string]any{"triggers": events})
// Keep this span due to the security event
//
// This is a workaround to tell the tracer that the trace was kept by AppSec.
Expand Down

0 comments on commit 147955e

Please sign in to comment.