From 991d71245635d85acfd3764ff870774b32cf93fc Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Sun, 3 Jul 2022 12:10:04 +0200 Subject: [PATCH] fix marshalling of allowlisted scopes --- trace.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trace.go b/trace.go index 886f89f..396b8f9 100644 --- a/trace.go +++ b/trace.go @@ -83,7 +83,7 @@ func (s scopeClass) MarshalJSON() ([]byte, error) { span = name[idx+5:] } // System and Transient scope - if name == "system" || name == "transient" { + if name == "system" || name == "transient" || name == "allowlistedSystem" || name == "allowlistedTransient" { return json.Marshal(struct { Class string Span string `json:",omitempty"`