{"id":21152978,"url":"https://github.com/opentracing-contrib/go-grpc","last_synced_at":"2025-05-15T05:06:20.317Z","repository":{"id":46856626,"uuid":"132518310","full_name":"opentracing-contrib/go-grpc","owner":"opentracing-contrib","description":"Package otgrpc provides OpenTracing support for any gRPC client or server.","archived":false,"fork":false,"pushed_at":"2025-05-14T19:39:17.000Z","size":70,"stargazers_count":75,"open_issues_count":9,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-14T20:43:41.172Z","etag":null,"topics":["go","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/opentracing-contrib.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,"zenodo":null}},"created_at":"2018-05-07T21:27:58.000Z","updated_at":"2025-04-04T02:17:38.000Z","dependencies_parsed_at":"2024-06-18T13:54:21.341Z","dependency_job_id":"0ef42414-0213-433b-96d4-16940cb9f5ba","html_url":"https://github.com/opentracing-contrib/go-grpc","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentracing-contrib%2Fgo-grpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentracing-contrib%2Fgo-grpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentracing-contrib%2Fgo-grpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentracing-contrib%2Fgo-grpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opentracing-contrib","download_url":"https://codeload.github.com/opentracing-contrib/go-grpc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254276447,"owners_count":22043867,"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":["go","grpc","opentracing"],"created_at":"2024-11-20T10:47:56.498Z","updated_at":"2025-05-15T05:06:16.756Z","avatar_url":"https://github.com/opentracing-contrib.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenTracing support for gRPC in Go\n\n[![CI](https://github.com/opentracing-contrib/go-grpc/actions/workflows/ci.yml/badge.svg)](https://github.com/opentracing-contrib/go-grpc/actions/workflows/ci.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/opentracing-contrib/go-grpc)](https://goreportcard.com/report/github.com/opentracing-contrib/go-grpc)\n![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/opentracing-contrib/go-grpc)\n[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/opentracing-contrib/go-grpc?logo=github\u0026sort=semver)](https://github.com/opentracing-contrib/go-grpc/releases/latest)\n\nThe `otgrpc` package makes it easy to add OpenTracing support to gRPC-based\nsystems in Go.\n\n## Installation\n\n```shell\ngo get github.com/opentracing-contrib/go-grpc\n```\n\n## Documentation\n\nSee the basic usage examples below and the [package documentation on\ngodoc.org](https://godoc.org/github.com/opentracing-contrib/go-grpc).\n\n## Client-side usage example\n\nWherever you call `grpc.Dial`:\n\n```go\n// You must have some sort of OpenTracing Tracer instance on hand.\nvar tracer opentracing.Tracer = ...\n...\n\n// Set up a connection to the server peer.\nconn, err := grpc.Dial(\n    address,\n    ... // other options\n    grpc.WithUnaryInterceptor(\n        otgrpc.OpenTracingClientInterceptor(tracer)),\n    grpc.WithStreamInterceptor(\n        otgrpc.OpenTracingStreamClientInterceptor(tracer)))\n\n// All future RPC activity involving `conn` will be automatically traced.\n```\n\n## Server-side usage example\n\nWherever you call `grpc.NewServer`:\n\n```go\n// You must have some sort of OpenTracing Tracer instance on hand.\nvar tracer opentracing.Tracer = ...\n...\n\n// Initialize the gRPC server.\ns := grpc.NewServer(\n    ... // other options\n    grpc.UnaryInterceptor(\n        otgrpc.OpenTracingServerInterceptor(tracer)),\n    grpc.StreamInterceptor(\n        otgrpc.OpenTracingStreamServerInterceptor(tracer)))\n\n// All future RPC activity involving `s` will be automatically traced.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopentracing-contrib%2Fgo-grpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopentracing-contrib%2Fgo-grpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopentracing-contrib%2Fgo-grpc/lists"}