schickling / opentelemetry

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

opentelemetry Gitpod Ready-to-Code

  • OTLP endpoints via HTTP 4318 and gRPC 4317

Spin up infra

cd .infra
docker compose up -d

Examples

Notes

  • You can use the OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4317" env var to configure the collector endpoint (see here for details).

Spanmetrics on Prometheus

traces_spanmetrics_calls_total
traces_spanmetrics_latency_bucket
traces_spanmetrics_latency_count
traces_spanmetrics_latency_sum

Snippet to clone .infra folder to a local project

mkdir .infra
cd .infra
curl https://codeload.github.com/schickling/opentelemetry/tar.gz/main | \
  tar -xz --strip=2 opentelemetry-main/.infra

TODO

  • Go from metrics to traces
  • Go from traces to metrics
  • Add grafana dashboard to project for some Otel metrics (see docs)
  • Add effect example

About