open-telemetry / opentelemetry-collector-contrib

Contrib repository for the OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
3.02k stars 2.33k forks source link

An exception occurs (tracing: skywalking-receiver to zipkin-exporter ) #9786

Closed forest003 closed 1 year ago

forest003 commented 2 years ago

Describe the bug I want to convert skywalking format of tracing to zipkin format, but something is wrong.

What did you expect to see? I want to convert skywalking format of tracing to zipkin format.

What did you see instead? 2022-05-07T10:17:51.697+0800 error exporterhelper/queued_retry.go:183 Exporting failed. The error is not retryable. Dropping data. {"kind": "exporter", "name": "zipkin", "error": "Permanent error: failed to push trace data via Zipkin exporter: SpanID is invalid", "dropped_items": 1}

What version did you use? Version: 0.50.0

What config did you use? Config: extensions: health_check: pprof: endpoint: 0.0.0.0:1777 zpages: endpoint: 0.0.0.0:55679

receivers: otlp: protocols: grpc: http:

opencensus:

Collect own metrics

prometheus: config: scrape_configs:

processors: batch:

exporters: logging: logLevel: debug

zipkin: endpoint: "http://host:9411/api/v2/spans" compression: gzip tls: insecure: true

otlp: endpoint: host:4317 tls: insecure: true

service:

pipelines:

traces:
  receivers: [skywalking]
  processors: [batch]
  exporters: [logging, zipkin ]

Environment OS: Linux version 3.10.0-862.14.4.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) ) #1 SMP Wed Sep 26 15:12:11 UTC 2018

JaredTan95 commented 2 years ago

thx, I will check it soon or later.

forest003 commented 2 years ago

Did you reproduce the problem?

thx, I will check it soon or later.

JaredTan95 commented 2 years ago

@forest003 This is caused by skywalking traceid convert to otlp trace id bug. with https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/11562 fixed. You can try it again.

As latest result as follows:

exporters: jaeger: endpoint: localhost:14250 tls: insecure: true zipkin: endpoint: "http://localhost:9411/api/v2/spans"

processors: batch: {}

service: pipelines: traces: receivers: [skywalking] processors: [batch] exporters: [jaeger,zipkin]



- jaeger ui shows:
<img width="1425" alt="image" src="https://user-images.githubusercontent.com/12468337/176981206-03c4f235-5d72-4dcb-bd4a-699e6ad33aa6.png">

- zipkin ui shows and no exceptions in otelcol:
<img width="1096" alt="image" src="https://user-images.githubusercontent.com/12468337/176981213-eee9205c-8191-40a0-b55e-601591851f73.png">
github-actions[bot] commented 1 year ago

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

github-actions[bot] commented 1 year ago

This issue has been closed as inactive because it has been stale for 120 days with no activity.