{"id":16876757,"url":"https://github.com/cyx1231st/distributed-tracing-example","last_synced_at":"2026-02-27T13:32:19.391Z","repository":{"id":100854111,"uuid":"129019842","full_name":"cyx1231st/distributed-tracing-example","owner":"cyx1231st","description":"OpenTracing demo in cpp and with Jaeger","archived":false,"fork":false,"pushed_at":"2018-04-13T07:48:22.000Z","size":14,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T12:26:47.851Z","etag":null,"topics":["ceph","jaeger","opentracing"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cyx1231st.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-11T02:05:15.000Z","updated_at":"2021-11-05T02:49:16.000Z","dependencies_parsed_at":"2023-06-02T04:00:26.590Z","dependency_job_id":null,"html_url":"https://github.com/cyx1231st/distributed-tracing-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cyx1231st/distributed-tracing-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyx1231st%2Fdistributed-tracing-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyx1231st%2Fdistributed-tracing-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyx1231st%2Fdistributed-tracing-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyx1231st%2Fdistributed-tracing-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cyx1231st","download_url":"https://codeload.github.com/cyx1231st/distributed-tracing-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyx1231st%2Fdistributed-tracing-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266048703,"owners_count":23868744,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ceph","jaeger","opentracing"],"created_at":"2024-10-13T15:40:24.247Z","updated_at":"2026-02-27T13:32:14.358Z","avatar_url":"https://github.com/cyx1231st.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Distributed tracing example\nThis repo is based on OpenTracing with the following features:\n* A demo to simulate writes across Ceph cluster (From clients to OSDs with replications).\n* The usage of pure OpenTracing API and illustration of OpenTracing trace model.\n* Illustration of trace features:\n  - \"All or nothing\" tracing: there will be no traces if SpanContext is not propagated at request start.\n  - Trace metadata propagation across queues/threads/processes.\n  - OpenTracing logging and tagging.\n  - Trace sampling.\n  - Browse tracings with Jaeger.\n* Tracer plugins are switchable (JaegerTracer and MockTracer)\n\n# Steps\n\n## Build the source code\n```bash\n./build.sh\n```\n\n## Prepare Jaeger environment\n* All-in-one Jaeger environment:\n```bash\ndocker run -d -e \\\n  COLLECTOR_ZIPKIN_HTTP_PORT=9411 \\\n  -p 5775:5775/udp \\\n  -p 6831:6831/udp \\\n  -p 6832:6832/udp \\\n  -p 5778:5778 \\\n  -p 16686:16686 \\\n  -p 14268:14268 \\\n  -p 9411:9411 \\\n  jaegertracing/all-in-one:latest\n```\n* Web UI will available at 127.0.0.1:16686 immediately\n* Tracer clients (i.e. this demo) should report to 127.0.0.1:6831\n\n## Run the demo\n```bash\ncd build\nLD_LIBRARY_PATH=./lib ./bin/run \u003coptions\u003e\n```\noptions:\n* help: -h\n* jaeger-reporter url: -url=\u003curl\u003e, default to 127.0.0.1:6831\n* switch from jaeger-tracer to mock-tracer plugin: -local\n* the simplest demo: -e\n* Ceph simulator demo settings\n  - -osd=\u003cnum_osds\u003e, default to 10\n  - -client=\u003cnum_clients\u003e, default to 1\n  - -msg=\u003cnum_msgs_per_client\u003e, default to 1\n  - -replica=\u003cnum_replicas\u003e, default to 3\n\n## Browse tracings\n* Access 127.0.0.1:16686 after running the demo.\n* Or, if \"-local\" option is used, the tracings will be available in `mock_traces.log`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyx1231st%2Fdistributed-tracing-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyx1231st%2Fdistributed-tracing-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyx1231st%2Fdistributed-tracing-example/lists"}