Skip to content

Otelmux: span status are marked as an error; Invalid HTTP status code 0 #1387

@floyola

Description

@floyola

Hi 👋

I'm using the otelmux library to instrument my incoming HTTP requests but for some reason 70% of them are marked as an error since its HTTP status code is 0.

After some research I found that the library set the default code as 0, but I don't understand why that code doesn't change.

Span #1
--
Trace ID       : #####
Parent ID      :
ID                 : #####
Name           :  my/route/
Kind             : SPAN_KIND_SERVER
Start time    : 2021-11-03 18:28:27.074053815 +0000 UTC
End time      : 2021-11-03 18:28:27.075496864 +0000 UTC
Status code : STATUS_CODE_ERROR
Status message : Invalid HTTP status code 0

Otelmux version: v0.25.0
Otel version: v1.1.0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions