{"id":43753720,"url":"https://github.com/charithe/otgrpc","last_synced_at":"2026-02-05T14:16:38.626Z","repository":{"id":57499680,"uuid":"85500499","full_name":"charithe/otgrpc","owner":"charithe","description":"Opentracing instrumentation for gRPC","archived":false,"fork":false,"pushed_at":"2017-05-14T18:12:50.000Z","size":14,"stargazers_count":9,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T06:33:09.177Z","etag":null,"topics":["go","golang","grpc","opentracing"],"latest_commit_sha":null,"homepage":"","language":"Go","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/charithe.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}},"created_at":"2017-03-19T18:53:22.000Z","updated_at":"2020-06-19T11:22:54.000Z","dependencies_parsed_at":"2022-08-28T20:00:27.757Z","dependency_job_id":null,"html_url":"https://github.com/charithe/otgrpc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/charithe/otgrpc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charithe%2Fotgrpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charithe%2Fotgrpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charithe%2Fotgrpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charithe%2Fotgrpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charithe","download_url":"https://codeload.github.com/charithe/otgrpc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charithe%2Fotgrpc/sbom","scorecard":{"id":274160,"data":{"date":"2025-08-11","repo":{"name":"github.com/charithe/otgrpc","commit":"1f3477f51fafc8ffd89833b1eb6ffefab998c283"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/5 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENCE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENCE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-17T14:03:28.048Z","repository_id":57499680,"created_at":"2025-08-17T14:03:28.048Z","updated_at":"2025-08-17T14:03:28.048Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29123675,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T14:05:12.718Z","status":"ssl_error","status_checked_at":"2026-02-05T14:03:53.078Z","response_time":65,"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":["go","golang","grpc","opentracing"],"created_at":"2026-02-05T14:16:37.766Z","updated_at":"2026-02-05T14:16:38.620Z","avatar_url":"https://github.com/charithe.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Go gRPC Opentracing Instrumentation\n===================================\n\n[![GoDoc](https://godoc.org/github.com/charithe/otgrpc?status.svg)](https://godoc.org/github.com/charithe/otgrpc)\n\nAn attempt to use [Opentracing](http://opentracing.io/) with [gRPC](http://grpc.io) services. The official\n[grpc-opentracing](https://github.com/grpc-ecosystem/grpc-opentracing) library currently only supports tracing\nunary calls. This library makes use of gRPC `stats.Handler` interface to add tracing to gRPC streams as well.\n\n\nThe obvious approach to add tracing would be to make use of gRPC interceptors. However, the current interceptor \ninterfaces lack the fuctionality to effectively add tracing information to the calls. Go gRPC has a built-in tracing \nmechanism that hooks into `x/net/trace`, but, the captured data is not accessible from external code. This leads us to\nthe `stats.Handler` interface which is primarily designed for stats gathering but, in the process, gives us access to \nall interesting events that happen during a RPC -- which can be used to gather the tracing information we need. \n\n\nUsage\n-----\n\nGrab the library:\n\n```\ngo get github.com/charithe/otgrpc\n```\n\n\nClient side:\n\n```go\ntracer := // Tracer implementation\n\nth := otgrpc.NewTraceHandler(tracer)\nconn, err := grpc.Dial(address, grpc.WithStatsHandler(th))\n...\n```\n\nServer side:\n\n```go\ntracer := // Tracer implementation\n\nth := otgrpc.NewTraceHandler(tracer)\nserver := grpc.NewServer(grpc.StatsHandler(th))\n...\n```\n\n### Options\n\nLimit tracing to methods of your choosing\n\n```go\ntf := func(method string) bool {\n    return method == \"/my.svc/my.method\"\n}\n\nth := otgrpc.NewTraceHandler(tracer, orgrpc.WithTraceEnabledFunc(tf))\n```\n\nAttach payloads as Span log events\n\n```go\nth := otgrpc.NewTraceHandler(tracer, otgrpc.WithPayloadLogging())\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharithe%2Fotgrpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharithe%2Fotgrpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharithe%2Fotgrpc/lists"}