Skip to content

davidB/tracing-opentelemetry-instrumentation-sdk

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

64d7664 · Feb 24, 2025
Nov 5, 2024
Jun 28, 2023
Feb 24, 2025
Feb 16, 2025
Feb 24, 2025
Feb 24, 2025
Feb 24, 2025
Feb 24, 2025
Feb 16, 2025
Dec 30, 2023
Jun 30, 2024
Nov 5, 2024
Jan 9, 2025
Jun 11, 2022
Aug 18, 2024
Feb 24, 2025
Jun 11, 2022
Dec 10, 2024
Nov 25, 2023
Feb 16, 2025
Feb 16, 2025
Nov 5, 2024
Nov 5, 2024
Aug 31, 2024

Repository files navigation

tracing-opentelemetry-instrumentation-sdk

A set of rust crates to help working with tracing + opentelemetry

  • init-tracing-opentelemetry: A set of helpers to initialize (and more) tracing + opentelemetry (compose your own or use opinionated preset)
  • axum-tracing-opentelemetry: Middlewares and tools to integrate axum + tracing + opentelemetry.
  • fake-opentelemetry-collector: A Fake (basic) opentelemetry collector, useful to test what is collected opentelemetry

For local dev / demo

To collect and visualize trace on local, some ofthe simplest solutions:

Otel Desktop Viewer

CtrlSpice/otel-desktop-viewer: desktop-collector

Jaeger all-in-one

# launch Jaeger with OpenTelemetry, Jaeger, Zipking,... mode.
# see https://www.jaegertracing.io/docs/1.49/getting-started/#all-in-one

# nerdctl or docker or any container runner
nerdctl run --rm --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.49

open http://localhost:16686

Then :

  • setup env variable (or not), (eg see .envrc)
  • launch your server
  • send the request
  • copy trace_id from log (or response header)
  • paste into Jaeger web UI

To release

Use the github workflow release-plz.