fix marshalling of allowlisted scopes

This commit is contained in:
Marten Seemann 2022-07-03 12:10:04 +02:00
parent df257cee0c
commit 991d712456

View File

@ -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"`