Giter Club home page Giter Club logo

dd-zipkin-proxy's People

Contributors

aantono avatar matlockx avatar oliverbestmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dd-zipkin-proxy's Issues

Errors parsing zipkin spans

Hello.
I am trying out the dd-zipkin-proxy and running into problems with the zipkin spans not parsing.

I am sending some of my development zipkin traffic at the dd-zipkin-proxy and every span posted get's an http 400 back from dd-zipkin-proxy.

Here is an example on how to reproduce the problem.

Run the following in a container/node where dd-zipkin-proxy is listening on http 9411.

curl -H 'Content-Type: application/json' -H 'User-Agent: Java/1.8.0_92' -H 'Host: localhost:9411' -H 'Accept: text/html, image/gif, image/jpeg, *; q=.2, /; q=.2' --data-binary '[{"traceId":"068ccc7871f4ea41","id":"062c89c733c96011","name":"service__get__/monitor/check","timestamp":1478299155500000,"duration":18663,"annotations":[{"timestamp":1478299155500000,"value":"sr","endpoint":{"serviceName":"hello-world-one","ipv4":"10.0.2.181","port":9000}},{"timestamp":1478299155518663,"value":"ss","endpoint":{"serviceName":"hello-world-one","ipv4":"10.0.2.181","port":9000}}]}]' 'http://localhost:9411/api/v1/spans'

This will return the following

json: cannot unmarshal string into Go value of type int64

I think the error is coming from one of the zipkin libraries. When I look at https://github.com/openzipkin/zipkin-go-opentracing/blob/master/_thrift/gen-go/zipkincore/ttypes.go#L788-#L791 it looks like some fields in the struct are expected to be int64 where as our spans use strings for Id and TraceID.

When I look at zipkin spans in the zipkin repo I see that they use strings for ID and TraceID.
https://github.com/openzipkin/zipkin/blob/1d0e657e6f89b929a0be27db843a848611242b92/benchmarks/src/main/resources/span-client.json

Wondering if you have any ideas of what I'm doing wrong.

Support for the `Sampled` flag in Zipkin b3-propagation?

Hi, thanks for sharing the great project ๐Ÿ‘

After hanging around in code and docs, I've noticed that there is the Sampled flag in Zipkin b3-propagation format which tells services(including downstream ones) to whether sample spans or not, while dd-tracer-go/tracer.Span seems to expose Sample field which seems to be the equivalent of the flag in b3.

The "example" app in dd-zipkin-proxy, on the other hand, seems to always set true to the Sample field regardless of what was provided from incoming zipkin spans.

Would it make sense to inherit the value from the zipkin span to the dd span?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.