Sign inSign up

luisgabrielroldan/ddogzip

By luisgabrielroldan

•Updated 8 months ago

Proxy server that converts Datadog APM traces to Zipkin format for local development and debugging

Image
0

1.7K

luisgabrielroldan/ddogzip repository overview

⁠DDogZip

DDogZip is a lightweight proxy server that receives traces from Datadog-instrumented applications and forwards them to a Zipkin collector. This allows you to use Datadog's APM instrumentation while visualizing trace data in Zipkin.

Perfect for local development - Debug your distributed tracing without sending data to Datadog's infrastructure.

⁠Features

  • Receives traces via Datadog Agent protocol (v0.3, v0.4, v0.5)
  • Converts Datadog traces to Zipkin format
  • Supports both PUT and POST HTTP methods
  • Graceful shutdown with span flushing
  • Health check endpoint for container orchestration
  • Enhanced error capture (error.msg, error.type, error.stack)
  • Multi-architecture support (amd64, arm64)
  • Minimal footprint using distroless base image

⁠Quick Start

docker run -p 8126:8126 \
  -e ZIPKIN_HOST=zipkin \
  luisgabrielroldan/ddogzip

⁠Configuration

VariableDefaultDescription
LISTEN_ADDR:8126Address and port to listen on
ZIPKIN_PROTOCOLhttpProtocol for Zipkin endpoint
ZIPKIN_HOSTlocalhostZipkin collector hostname
ZIPKIN_PORT9411Zipkin collector port

⁠Docker Compose Example

services:
  zipkin:
    image: openzipkin/zipkin:latest
    ports:
      - "9411:9411"

  ddogzip:
    image: luisgabrielroldan/ddogzip:latest
    ports:
      - "8126:8126"
    environment:
      - ZIPKIN_HOST=zipkin
    depends_on:
      - zipkin

⁠API Endpoints

  • PUT/POST /{version}/traces - Receives Datadog trace data (v0.3, v0.4, v0.5)
  • GET /health - Health check endpoint

⁠How It Works

  1. Datadog-instrumented applications send traces to DDogZip on port 8126
  2. DDogZip decodes the msgpack-encoded Datadog trace data
  3. Traces are converted from Datadog format to Zipkin format
  4. Converted spans are forwarded to the Zipkin collector

⁠License

MIT License

Tag summary

Content type

Image

Digest

sha256:6162469ff…

Size

3.2 MB

Last updated

8 months ago

docker pull luisgabrielroldan/ddogzip