{"id":19004013,"url":"https://github.com/dealerdotcom/sleuth-opentracing","last_synced_at":"2026-05-14T22:32:04.733Z","repository":{"id":142792572,"uuid":"78758635","full_name":"DealerDotCom/sleuth-opentracing","owner":"DealerDotCom","description":null,"archived":false,"fork":false,"pushed_at":"2017-02-10T15:25:40.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":31,"default_branch":"master","last_synced_at":"2025-02-21T13:45:42.008Z","etag":null,"topics":["opentracing","spring-boot","spring-cloud-sleuth","zipkin"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DealerDotCom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-01-12T15:24:24.000Z","updated_at":"2018-03-17T10:22:06.000Z","dependencies_parsed_at":"2023-06-03T14:45:21.402Z","dependency_job_id":null,"html_url":"https://github.com/DealerDotCom/sleuth-opentracing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DealerDotCom/sleuth-opentracing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DealerDotCom%2Fsleuth-opentracing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DealerDotCom%2Fsleuth-opentracing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DealerDotCom%2Fsleuth-opentracing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DealerDotCom%2Fsleuth-opentracing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DealerDotCom","download_url":"https://codeload.github.com/DealerDotCom/sleuth-opentracing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DealerDotCom%2Fsleuth-opentracing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33045570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["opentracing","spring-boot","spring-cloud-sleuth","zipkin"],"created_at":"2024-11-08T18:21:17.141Z","updated_at":"2026-05-14T22:32:04.714Z","avatar_url":"https://github.com/DealerDotCom.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sleuth-opentracing\n\nThis project aims to provide a bridge to allow OpenTracing native instrumentation to\nwork nicely in apps using the `spring-cloud-sleuth` tracer. It provides implementations\nof OpenTracings interfaces that create and modify sleuth Spans.\n\n### Caveats\n\nWhile `sleuth-opentracing`'s implementation works on sleuth spans, the following caveats exist:\n\n1. it does not do the work to associate new spans with sleuths tracer. To associate the span\nwith sleuth, a developer must call `continue` on the sleuth tracer with their new sleuth span.\n\n2. it does not make the current sleuth span a parent of the new spans it creates. This must be\ndone by wrapping the current sleuth span in a `SleuthSpan` and pass it into the `asChildOf(Span)`\n`SpanBuilder` method.\n\n3. it does not do the work to have sleuth report those spans. This must be done after you\nfinish the OpenTracing span by closing the sleuth span with the sleuth tracer.\n\n4. it does not reattach the old sleuth span upon completion of the span you created. This\nmust be done by passing the old span into the `continue` method on the sleuth tracer.\n\n#### Caveat Example\n\n```java\nSleuthTracer otTracer = ....;\nTracer sleuthTracer = ...;\n\npublic Object around(ProceedingJoinPoint jp) {\n    org.springframework.cloud.sleuth.Span parent = sleuthTracer.getCurrentSpan();\n    Span span = otTracer.buildSpan(\"my-operation\").asChildOf(Span.wrap(parent)).start();\n    sleuthTracer.continue(span.unwrap());\n    \n    Object result = jp.proceed();\n    \n    span.finish();\n    sleuthTracer.detach(span.unwrap());\n    sleuthTracer.continue(parent);\n    \n    return result;\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdealerdotcom%2Fsleuth-opentracing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdealerdotcom%2Fsleuth-opentracing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdealerdotcom%2Fsleuth-opentracing/lists"}