We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
traces single works fine.
otelgen --service-name=otelgen --log-level debug --duration=0 --otel-exporter-otlp-endpoint=<SERVER>:443 --protocol=http --header='Authorization=Bearer <TOKEN>' traces multi 2023-07-20T08:50:58.524+0200 INFO cli/traces.go:211 starting HTTP exporter 2023-07-20T08:50:58.524+0200 INFO traces/config.go:60 generation of traces is limited {"per-second": 5} 2023-07-20T08:50:58.525+0200 INFO traces/traces.go:43 starting traces {"worker": 0} 2023-07-20T08:50:58.525+0200 INFO traces/traces.go:79 Trace {"worker": 0, "traceId": "c409f642f09fa4242175c1773ec20d51"} 2023-07-20T08:50:58.525+0200 INFO traces/traces.go:80 Parent Span {"worker": 0, "spanId": "d4936ce79a0fc4e3"} 2023-07-20T08:50:58.525+0200 INFO traces/traces.go:81 Child Span {"worker": 0, "spanId": "42416bbf72da6e6e"} 2023-07-20T08:50:58.525+0200 INFO traces/traces.go:43 starting traces {"worker": 0} 2023-07-20T08:50:58.725+0200 INFO traces/traces.go:79 Trace {"worker": 0, "traceId": "54d18a997602badb674ccda382ac36a6"} 2023-07-20T08:50:58.725+0200 INFO traces/traces.go:80 Parent Span {"worker": 0, "spanId": "67e31ab05fc66805"} 2023-07-20T08:50:58.725+0200 INFO traces/traces.go:81 Child Span {"worker": 0, "spanId": "a0638afc2dc6579b"} 2023-07-20T08:50:58.725+0200 INFO traces/traces.go:43 starting traces {"worker": 0} 2023-07-20T08:50:58.925+0200 INFO traces/traces.go:79 Trace {"worker": 0, "traceId": "0ff4ef9013874ecd39387e0c64c3c104"} 2023-07-20T08:50:58.925+0200 INFO traces/traces.go:80 Parent Span {"worker": 0, "spanId": "2bef3836e5c54cc0"} 2023-07-20T08:50:58.925+0200 INFO traces/traces.go:81 Child Span {"worker": 0, "spanId": "cd4d8f9c1b3e864d"} 2023-07-20T08:50:58.925+0200 INFO traces/traces.go:92 traces generated {"worker": 0, "traces": 3} 2023-07-20T08:50:58.925+0200 INFO cli/traces.go:232 stop the batch span processor 2023/07/20 08:50:59 traces export: failed to send to https://<SERVER>:443/v1/traces: 401 Unauthorized 2023-07-20T08:50:59.180+0200 INFO cli/traces.go:223 stopping the exporter otelgen --service-name=otelgen --log-level debug --duration=0 --otel-exporter-otlp-endpoint=<SERVER>.net:443 --protocol=http --header='Authorization=Bearer <TOKEN>' traces single 2023-07-20T08:51:12.185+0200 DEBUG cli/traces.go:83 Header count {"headers": 1} 2023-07-20T08:51:12.186+0200 DEBUG cli/traces.go:89 key=value {"Authorization": "Bearer <TOKEN>"} 2023-07-20T08:51:12.186+0200 INFO cli/traces.go:99 starting HTTP exporter 2023-07-20T08:51:12.186+0200 INFO traces/config.go:58 generation of traces isn't being throttled 2023-07-20T08:51:12.186+0200 INFO traces/traces.go:43 starting traces {"worker": 0} 2023-07-20T08:51:12.186+0200 INFO traces/traces.go:79 Trace {"worker": 0, "traceId": "8ce494693a7a1ca333df0a7d675b6a86"} 2023-07-20T08:51:12.186+0200 INFO traces/traces.go:80 Parent Span {"worker": 0, "spanId": "5c6e53da6a67bff6"} 2023-07-20T08:51:12.186+0200 INFO traces/traces.go:81 Child Span {"worker": 0, "spanId": "03e98fddc245001d"} 2023-07-20T08:51:12.186+0200 INFO traces/traces.go:92 traces generated {"worker": 0, "traces": 1} 2023-07-20T08:51:12.186+0200 INFO cli/traces.go:120 stop the batch span processor 2023-07-20T08:51:12.409+0200 INFO cli/traces.go:111 stopping the exporter
The text was updated successfully, but these errors were encountered:
Fortunately standard OTEL_EXPORTER_OTLP_HEADERS variable works fine:
OTEL_EXPORTER_OTLP_HEADERS
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer $TOKEN"
Sorry, something went wrong.
No branches or pull requests
traces single works fine.
The text was updated successfully, but these errors were encountered: