Skip to content

Instantly share code, notes, and snippets.

@yuvalif
Created September 21, 2023 10:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuvalif/1c7f1e80126bed5fa79345efb27fe1b1 to your computer and use it in GitHub Desktop.
Save yuvalif/1c7f1e80126bed5fa79345efb27fe1b1 to your computer and use it in GitHub Desktop.
  • start a vstart cluster with tracing enabled:
MON=1 OSD=1 MDS=0 MGR=0 RGW=1 ../src/vstart.sh -n -d \
  -o "jaeger_tracing_enable=true" -o "jaeger_agent_port=6831" -o "debug-trace=20"
  • start jaeger in its own terminal:
podman run \
  -e COLLECTOR_OTLP_ENABLED=true \
  -p 6831:6831/udp \
  -p 16686:16686 \
  jaegertracing/all-in-one:1.42
  • create a bucket:
aws --endpoint-url http://localhost:8000 s3 mb s3://fish/
  • upload an object:
head -c 512 </dev/urandom > myfile
aws --endpoint-url http://localhost:8000 s3 cp myfile s3://fish
  • upload a multipart object:
head -c 128M </dev/urandom > mybigfile
aws --endpoint-url http://localhost:8000 s3 cp mybigfile s3://fish
  • fetch the traces:
curl "http://localhost:16686/api/traces?service=rgw" | jq .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment