Reputation: 31
I have an otel-collector deployed that works perfectly accepting OTLP traces. Now, I want configure Tekton to add traces of the executed Pipelines. Currently, it only provides traces in HTTP Thrift format.
Therefore, I added the Jaeger receiver and configured it in the receivers section:
receivers:
# Enable Thrift receiver for Tekton traces
jaeger:
protocols:
# grpc:
# endpoint: 0.0.0.0:14250
# thrift_binary:
# endpoint: 0.0.0.0:6832
# thrift_compact:
# endpoint: 0.0.0.0:6831
thrift_http:
endpoint: 0.0.0.0:14268
However, on the Tekton side, I get the following error:
2025/01/28 12:34:18 traces export: failed to send to http://app-to-kafka-collector.otel.svc.cluster.local:14268/api/traces: 400 Bad Request
On the collector logs I cannot see any extra error. How can I debug this? Is it possible that the thrift http protocol has been updated and it might not be compatible? Maybe Tekton might use an old version of Thrift?
Upvotes: 0
Views: 29
Reputation: 31
I come back just to share the actual asnwer. According to the Tekton documentation and this issue (https://github.com/tektoncd/pipeline/issues/7175) I thought that the traces where exported in thrift_http, but it is actually OTLP http. So I just changed the url to http://app-to-kafka-collector.otel.svc.cluster.local:4318 and it started to work :) If someone uses this in the future, please share it here! :)
Upvotes: 0