I am trying to send traces to tempo in multitenant mode by using Zipkin exporter and otel collector.
I am able to do that successfully but the problem is each time I am not able to pass x-scope-orgId dynamically . To make it more clear I am enclosing my configs.
This is my otel-collector-config.yaml file →
receivers:
zipkin:
processors:
batch:
exporters:
otlp:
endpoint: tempo:4317
tls:
insecure: true
headers:
x-scope-orgid: 123 || Here I want to pass orgId dynamically
service:
pipelines:
traces:
receivers: [zipkin]
processors: [batch]
exporters: [otlp]
@mariorodriguez@joeelliott Thanks for answering @mariorodriguez I have tried with this but whenever I am using this extension the docker file for otel collector getting stopped.
This is otel-collector-config.yml that i am using now
@joeelliott It is just exiting . I am enclosing image for better understanding. tried with the docker image you have suggested.
after adding headers_setter , the docker image just gets exited.
@mariorodriguez@joeelliott
1- Is there any other way to pass X-Scope-OrgId dynamically ?
2- How can we solve that otel collector gets exited while using header_setter extension.
3- Can someone directly send traces to tempo using a grpc request without using otel collector to use in a multitenant setup?
@mariorodriguez Thanks for answering but even after using the v0.59.0 , the otelcollector getting exited after adding headers_extension … if using extension like zpages and health_check then otel collector is not exiting. Do I have to change something in configs?
@mariorodriguez@joeelliott I have created tls certificates and they are perfectly fine.
In recievers section of otel collector when I am using lnclude metadata true like this.
receivers:
zipkin: protocols: http: include_metadata: true
then this error is coming
Basically when I am generating traces using otlp Trace Exporter and using otlp as a reciever and passing in config like this
receivers:
otlp: protocols: http: include_metadata: true
headers_setters extension is perfectly working fine and data is getting pushed in tempo in multitenant mode . but when I am using zipkin exporter for creating traces and zipkin as a reciever then traces are not pushing in tempo in multitenant mode through headers_setter_extension . I guess metadata is not passing.
For zipkin,
receivers:
zipkin:
I am using like this.
What change should I do so that it will work fine with zipkin too?