Skip to content

Commit

Permalink
[pkg/telemetryquerylanguage] Use correct status code (open-telemetry#…
Browse files Browse the repository at this point in the history
…12894)

Use correct status code
  • Loading branch information
TylerHelmuth committed Aug 2, 2022
1 parent fd6b703 commit 70986e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/telemetryquerylanguage/contexts/tqltraces/traces.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ var symbolTable = map[tql.EnumSymbol]tql.Enum{
"SPAN_KIND_PRODUCER": tql.Enum(tracesproto.Span_SPAN_KIND_PRODUCER),
"SPAN_KIND_CONSUMER": tql.Enum(tracesproto.Span_SPAN_KIND_CONSUMER),
"STATUS_CODE_UNSET": tql.Enum(tracesproto.Status_STATUS_CODE_UNSET),
"STATUS_CODE_OK": tql.Enum(tracesproto.Status_DEPRECATED_STATUS_CODE_OK),
"STATUS_CODE_OK": tql.Enum(tracesproto.Status_STATUS_CODE_OK),
"STATUS_CODE_ERROR": tql.Enum(tracesproto.Status_STATUS_CODE_ERROR),
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ func Test_ParseEnum(t *testing.T) {
},
{
name: "STATUS_CODE_OK",
want: tql.Enum(tracesproto.Status_DEPRECATED_STATUS_CODE_OK),
want: tql.Enum(tracesproto.Status_STATUS_CODE_OK),
},
{
name: "STATUS_CODE_ERROR",
Expand Down

0 comments on commit 70986e7

Please sign in to comment.