Skip to content

Commit

Permalink
chore: use ptrace.StatusCodeError
Browse files Browse the repository at this point in the history
  • Loading branch information
makeavish committed Nov 23, 2023
1 parent f1c8fab commit 58dc8cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporter/clickhousetracesexporter/clickhouse_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ func newStructuredSpan(otelSpan ptrace.Span, ServiceName string, resource pcommo
Tenant: &tenant,
}

if span.StatusCode == 2 {
if otelSpan.Status().Code() == ptrace.StatusCodeError {
span.HasError = true
}
populateOtherDimensions(attributes, span)
Expand Down

0 comments on commit 58dc8cf

Please sign in to comment.