{"id":37213051,"url":"https://github.com/zevst/pbot","last_synced_at":"2026-01-15T00:32:46.757Z","repository":{"id":57519922,"uuid":"250107797","full_name":"zevst/pbot","owner":"zevst","description":"The wrapper for the distributed trace","archived":true,"fork":false,"pushed_at":"2020-03-29T00:48:25.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-15T14:23:48.642Z","etag":null,"topics":["golang","jaeger","kafka","nats","nats-streaming","opentracing","proto","protobuf","tracing"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zevst.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}},"created_at":"2020-03-25T22:40:42.000Z","updated_at":"2024-01-17T15:13:16.000Z","dependencies_parsed_at":"2022-09-05T11:51:46.834Z","dependency_job_id":null,"html_url":"https://github.com/zevst/pbot","commit_stats":null,"previous_names":["zevst/protobuf_span"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zevst/pbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zevst%2Fpbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zevst%2Fpbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zevst%2Fpbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zevst%2Fpbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zevst","download_url":"https://codeload.github.com/zevst/pbot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zevst%2Fpbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28439730,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["golang","jaeger","kafka","nats","nats-streaming","opentracing","proto","protobuf","tracing"],"created_at":"2026-01-15T00:32:46.081Z","updated_at":"2026-01-15T00:32:46.748Z","avatar_url":"https://github.com/zevst.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Protobuf Span for Jaeger\n\n###### Example. Add injector/extractor format\n```go\npackage main\n\nimport (\n\tot \"github.com/opentracing/opentracing-go\"\n\tjcc \"github.com/uber/jaeger-client-go/config\"\n\t\"github.com/zevst/pbot\"\n)\n\nfunc main() {\n\tcfg := jcc.Configuration{\n\t\t// ...\n\t}\n\tpropagator := pbot.NewPropagator() // You can add BaggagePrefix as an option.\n\n\t// Create Jaeger tracer from Configuration\n\t// be sure to handle the error\n\ttracer, closer, _ := cfg.NewTracer(pbot.Injector(propagator), pbot.Extractor(propagator))\n\tot.SetGlobalTracer(tracer)\n\tdefer func() {\n\t\t// be sure to handle the error\n\t\t_ = closer.Close()\n\t}()\n\t// continue main()\n}\n```\n\n###### Example. Inject\n```go\n// do not forget to handle errors.\nspan := opentracing.SpanFromContext(ctx)\nif span == nil {\n    span = opentracing.GlobalTracer().StartSpan(\"Operation\", ext.SpanKindProducer)\n}\nctx = opentracing.ContextWithSpan(ctx, span)\nwrapper := pbot.NewWrapper()\n_ = opentracing.GlobalTracer().Inject(span.Context(), pbot.Format, wrapper)\n_ = wrapper.AddPayload(req.GetData())\nvalue, _ := wrapper.Marshal()\n// send value\n```\n\n###### Example. Extract\n```go\n// do not forget to handle errors.\nwrapper := pbot.NewWrapper()\n_ = wrapper.Unmarshal(msg.Data)\nsc, _ := tracer.Extract(pbot.Format, wrapper)\nopts := []opentracing.StartSpanOption{\n    ext.SpanKindConsumer,\n    opentracing.ChildOf(sc),\n}\nspan := tracer.StartSpan(\"Operation\", opts...)\ndefer span.Finish()\nctx = opentracing.ContextWithSpan(ctx, span)\n// read wrapper.GetPayload()\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzevst%2Fpbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzevst%2Fpbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzevst%2Fpbot/lists"}