Skip to content

Instantly share code, notes, and snippets.

@yuvalif
Last active July 31, 2023 15:13
Show Gist options
  • Save yuvalif/fbf0b8128145c01861bf3e406b93bca7 to your computer and use it in GitHub Desktop.
Save yuvalif/fbf0b8128145c01861bf3e406b93bca7 to your computer and use it in GitHub Desktop.
  • start multisite wirh 2 clusters and tracing enabled:
MON=1 OSD=1 MDS=0 MGR=0 ../src/test/rgw/test-rgw-multisite.sh 2 \
  --jaeger_tracing_enable=true --jaeger_agent_port=6831 --debug-trace=20
  • start the "all in one" container of jaeger, this will run: the agent, the collector the backend and the UI:
$ podman run \
  -e COLLECTOR_OTLP_ENABLED=true \
  -p 6831:6831/udp \
  -p 16686:16686 \
  jaegertracing/all-in-one:1.42
  • export credetials:
export AWS_ACCESS_KEY_ID=1234567890                                 
export AWS_SECRET_ACCESS_KEY=pencil
  • create a bucket:
aws --region=zg1 --endpoint-url http://localhost:8101 s3 mb s3://fish
  • upload a file:
head -c 512 </dev/urandom > myfile
aws --region=zg1 --endpoint-url http://localhost:8101 s3 cp myfile s3://fish
  • fetch the traces:
curl "http://localhost:16686/api/traces?service=rgw"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment