Coder Social home page Coder Social logo

vend / opendog Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 0.0 303 KB

A hacky translation layer that converts Datadog traces into OpenTelemetry Protobufs for use with Jaeger All In One

License: MIT License

Go 100.00%
datadog datadog-apm jaeger jaegertracing opentelemetry opentelemetry-collector

opendog's Introduction

Opendog

A hacky translation layer that converts Datadog traces into OpenTelemetry Protobufs for use with Jaegar

It's not perfect and there is a bunch of stuff to be implemented and tidied up but it's good enough to pipe Datadog traces locally into Jaegar All In One

Usage

$ go run .
2022/12/10 23:01:45 Opendog is listening on 127.0.0.1:8126
2022/12/10 23:01:46 Succesfully converted and forwarded 2 spans
2022/12/10 23:01:46 Succesfully converted and forwarded 2 spans

Your Datadog APM client will automatically connect if it is running on localhost.

If you'd like to point a container at it using Docker, you can set the following environment variable against your container:

  • Windows/macOS: DD_AGENT_HOST=host.docker.internal
  • Linux: DD_AGENT_HOST=172.17.0.1

Eventually it'll be packaged up properly, provide a docker container etc etc

Variables

There are two environment variables that can be used for configuring Opendog

Name Default Value Notes
COLLECTOR_ADDRESS http://localhost:4318/v1/traces The address to send gRPC payloads to. In this case, 4318 is the OTel endpoint used by Jaeger.
PORT 8126 The address to receive traces on. In this case, 8126 is the default traces port for the Datadog agent (aka statsd)

Example of Datadog traces piped into Jaegar

Running Jaegar All In One

A reminder to myself because I'm going to forget

$ docker run -d --name jaeger \
  -e COLLECTOR_ZIPKIN_HOST_PORT=:9411 \
  -e COLLECTOR_OTLP_ENABLED=true \
  -p 6831:6831/udp \
  -p 6832:6832/udp \
  -p 5778:5778 \
  -p 16686:16686 \
  -p 4317:4317 \
  -p 4318:4318 \
  -p 14250:14250 \
  -p 14268:14268 \
  -p 14269:14269 \
  -p 9411:9411 \
  jaegertracing/all-in-one:1.39

opendog's People

Contributors

ls-valentinas-bakaitis avatar marcus-crane avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

opendog's Issues

Handle W3C TraceContext

Now that Datadog's APM client libraries are starting to support W3C TraceContext as the new default, Opendog should add support for handling this.

Ideally, it would also support B3 as well, since that's a valid format (both normal and single header)

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.