You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use opentelemetry-collector-contrib on backend. It was working before update (old version 0.28.0) well. But after update -> 0.34.0 -> this collector answers with http-code "404 Not Found". I found out the problem is in content-type. If I request collectors endpoint with content-type: application/json I get "400 Bad Request", what is ok because my request body is empty.
opentelemetry-js sends content-type: plain/text only.
I request default http receiver on this collector.
What did you expect to see?
http-code 200 OK
What did you see instead?
http-code 404 Not Found
Additional context
Is it possible to add content-type setter for: new SimpleSpanProcessor(new CollectorTraceExporter(COLLECTOR_OPTIONS));
or to fix content-type in opentelemetry-js ?
The text was updated successfully, but these errors were encountered:
What version of OpenTelemetry are you using?
"@opentelemetry/api": "^1.0.0",
"@opentelemetry/context-zone": "^0.24.0",
"@opentelemetry/exporter-collector": "^0.24.0",
"@opentelemetry/instrumentation": "^0.24.0",
"@opentelemetry/instrumentation-document-load": "^0.24.0",
"@opentelemetry/instrumentation-fetch": "^0.24.0",
"@opentelemetry/instrumentation-user-interaction": "^0.24.0",
"@opentelemetry/instrumentation-xml-http-request": "^0.24.0",
"@opentelemetry/metrics": "^0.24.0",
"@opentelemetry/propagator-b3": "^0.24.0",
"@opentelemetry/tracing": "^0.24.0",
"@opentelemetry/web": "^0.24.0",
What did you do?
We use opentelemetry-collector-contrib on backend. It was working before update (old version 0.28.0) well. But after update -> 0.34.0 -> this collector answers with http-code "404 Not Found". I found out the problem is in content-type. If I request collectors endpoint with content-type: application/json I get "400 Bad Request", what is ok because my request body is empty.
opentelemetry-js sends content-type: plain/text only.
I request default http receiver on this collector.
What did you expect to see?
http-code 200 OK
What did you see instead?
http-code 404 Not Found
Additional context
Is it possible to add content-type setter for:
new SimpleSpanProcessor(new CollectorTraceExporter(COLLECTOR_OPTIONS));
or to fix content-type in opentelemetry-js ?
The text was updated successfully, but these errors were encountered: