How do you use this with openobserve? #20
Unanswered
gurpal2000
asked this question in
Q&A
Replies: 1 comment
-
|
Hello @gurpal2000 for now, library do not allow exporter authentication, but you can add it here with something like this (I do not have check it): // lib/opentelemetry-node.js L489
const headers = {
Authorization: 'Basic cm9v****************************************Ng=='
}
if (protocol === 'proto') {
const { OTLPTraceExporter } = require('@opentelemetry/exporter-trace-otlp-proto')
spanProcessor = new BatchSpanProcessor(new OTLPTraceExporter({ url, headers }))
} else {
const { OTLPTraceExporter } = require('@opentelemetry/exporter-trace-otlp-http')
spanProcessor = new BatchSpanProcessor(new OTLPTraceExporter({ url, headers }))
}I am moving this question as issue #21 to handle it in a future version. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The openobserve otel ingestor (https://openobserve.ai/docs/ingestion/logs/otlp/) requires headers to be sent.
Where can i specificy headers and basic auth token?
Beta Was this translation helpful? Give feedback.
All reactions