Closed gauravsaralMs closed 3 years ago
my bad looks like status: { code: 1 },
is actually successful.
Just in case some one is running into similar issue with lightstep then try changing lightstep collection url from https://ingest.lightstep.com:443/api/v2/otel/trace to https://ingest.lightstep.com:443/traces/otlp/v0.6
Ref: https://docs.lightstep.com/docs/satellite-release-notes#2021-01-26_23-02-36z
New versioned endpoint for OTLP/HTTP v0.6 at /traces/otlp/v0.6. This endpoint properly handles status code changes introduced in OTLP v0.6.
Please answer these questions before submitting a bug report.
What version of OpenTelemetry are you using?
"@opentelemetry/instrumentation-http": "^0.24.0"
What version of Node are you using?
12
Please provide the code you used to setup the OpenTelemetry SDK
N/A
What did you do?
normal web app which makes http request to other services
What did you expect to see?
no error in Span if the response from partner services are in 2xx range
What did you see instead?
error attribute getting set as true even if response from partner service is in 2xx range
Additional context
Sample Span where no error but status code is set as 1