Skip to content
New issue

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

Exporting to Zipkin doesn't work #441

Closed
DanBoSlice opened this issue Dec 4, 2019 · 10 comments
Closed

Exporting to Zipkin doesn't work #441

DanBoSlice opened this issue Dec 4, 2019 · 10 comments
Labels
question Further information is requested

Comments

@DanBoSlice
Copy link

I started the collector with Zipkin configured as an exporter (Zipkin is already running):

  zipkin:
    url: "http://localhost:9411/api/v2/spans"

The log shows:
{"level":"info","ts":1575044337.1697915,"caller":"builder/exporters_builder.go:79","msg":"Exporter is starting...","exporter":"zipkin"}
{"level":"info","ts":1575044337.169811,"caller":"builder/exporters_builder.go:84","msg":"Exporter started.","exporter":"zipkin"}

Now I use Postman (for testing purposes) to send a trace to the OT Collector (Endpoint http://localhost:55678/v1/trace). The log shows:
{"level":"info","ts":1575044727.188551,"caller":"loggingexporter/logging_exporter.go:36","msg":"TraceExporter","type":"logging","name":"logging","#spans":1}

If Zipkin isn't running when I am sending traces to the collector the log correctly reports that as well:
{"level":"info","ts":1575044662.5672855,"caller":"loggingexporter/logging_exporter.go:36","msg":"TraceExporter","type":"logging","name":"logging","#spans":1}
2019/11/29 17:24:23 failed to send the request: Post http://localhost:9411/api/v2/spans: dial tcp 127.0.0.1:9411: connect: connection refused

However, even with Zipkin running and no error being logged in the OT collector I don't see any traces in the Zipkin UI, even after waiting for 30 minutes.

Am I missing something?

@huikang
Copy link
Member

huikang commented Dec 4, 2019

Hi, @DanBoSlice , did you add zipkin to the exporters in the pipeline section?

exporters: [logging, zipkin, jaeger_grpc]

@DanBoSlice
Copy link
Author

@huikang Thanks for the response.

I just checked and Zipkin is included in the pipeline exporters. In fact, I used this demo config file and only adjusted the Zipkin URL and set logging to debug.

@pjanotti
Copy link
Contributor

pjanotti commented Dec 6, 2019

Hi @DanBoSlice could you please share the config file that you are using? There was a bug (fixed yesterday) that was preventing the queued_retry processor of logging error messages, but I'm not sure if you were using it in your config (we recommend to use it as your retry mechanism).

@DanBoSlice
Copy link
Author

Hi @pjanotti,

I attached my config file (as a txt because Github does not allow yaml files as attachments):

otel-conf.txt

@huikang
Copy link
Member

huikang commented Dec 10, 2019

Your file seems copied from the collector's config under example folder. One notice I noticed is that you did not specify format: proto.

@DanBoSlice
Copy link
Author

@huikang thanks, you're right. I just added it back into my config file. However the traces still don't show up in Zipkin.

Strangely enough, it seems like the trace is being exported:

{"level":"info","ts":1576075019.1968594,"caller":"loggingexporter/logging_exporter.go:36","msg":"TraceExporter","type":"logging","name":"logging","#spans":1}

@flands flands added the question Further information is requested label Feb 18, 2020
@flands
Copy link
Contributor

flands commented Feb 18, 2020

@DanBoSlice were you able to get this working?

@DanBoSlice
Copy link
Author

Hi, I actually haven't put any work into the project for the last few weeks.
I noticed one bug I had. I send the trace and span ids as strings to the collector. In some configuration I was able to get a warning from the collector that apparently the need to be arrays of numbers (/bytes). Is there a documentation somewhere including an example request? I just tried it again with strings and didn't get the warning anymore. Also the requests returns a 200 OK, so that is a little confusing.

In my old configuration I was able to fix the request so that there were no warnings shown. Still I got no result in zipkin (despite the log message telling that the spans were exported).

So unfortunately I still have the problem. Hopefully this input helps.

@flands
Copy link
Contributor

flands commented Feb 24, 2020

It should be based on the data model here (also includes an example): https://zipkin.io/pages/data_model.html. Beyond that, translation information can be found here: https://github.com/open-telemetry/opentelemetry-collector/tree/master/translator/trace/zipkin

@tigrannajaryan
Copy link
Member

Closing as there is no further information. Feel free to reopen if the bug still exists.

MovieStoreGuy pushed a commit to atlassian-forks/opentelemetry-collector that referenced this issue Nov 11, 2021
hughesjj pushed a commit to hughesjj/opentelemetry-collector that referenced this issue Apr 27, 2023
…y#441)

Bumps [boto3](https://github.com/boto/boto3) from 1.17.84 to 1.17.85.
- [Release notes](https://github.com/boto/boto3/releases)
- [Changelog](https://github.com/boto/boto3/blob/develop/CHANGELOG.rst)
- [Commits](boto/boto3@1.17.84...1.17.85)

---
updated-dependencies:
- dependency-name: boto3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
swiatekm pushed a commit to swiatekm/opentelemetry-collector that referenced this issue Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants