{"id":19312099,"url":"https://github.com/bigcommerce/gruf-zipkin","last_synced_at":"2025-06-30T13:32:43.870Z","repository":{"id":56875427,"uuid":"90288969","full_name":"bigcommerce/gruf-zipkin","owner":"bigcommerce","description":"Zipkin tracing plugin for Gruf","archived":false,"fork":false,"pushed_at":"2020-09-17T18:09:01.000Z","size":39,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":15,"default_branch":"main","last_synced_at":"2025-05-23T04:26:37.522Z","etag":null,"topics":["grpc","gruf","ruby","zipkin"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/bigcommerce.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-04T17:08:16.000Z","updated_at":"2021-02-24T01:31:11.000Z","dependencies_parsed_at":"2022-08-20T22:00:43.553Z","dependency_job_id":null,"html_url":"https://github.com/bigcommerce/gruf-zipkin","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/bigcommerce/gruf-zipkin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigcommerce%2Fgruf-zipkin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigcommerce%2Fgruf-zipkin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigcommerce%2Fgruf-zipkin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigcommerce%2Fgruf-zipkin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bigcommerce","download_url":"https://codeload.github.com/bigcommerce/gruf-zipkin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigcommerce%2Fgruf-zipkin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261473890,"owners_count":23163990,"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":["grpc","gruf","ruby","zipkin"],"created_at":"2024-11-10T00:32:48.866Z","updated_at":"2025-06-30T13:32:43.783Z","avatar_url":"https://github.com/bigcommerce.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gruf-zipkin - Zipkin tracing for gruf\n\n[![Build Status](https://travis-ci.org/bigcommerce/gruf-zipkin.svg?branch=main)](https://travis-ci.org/bigcommerce/gruf-zipkin) [![Gem Version](https://badge.fury.io/rb/gruf-zipkin.svg)](https://badge.fury.io/rb/gruf-zipkin) [![Inline docs](http://inch-ci.org/github/bigcommerce/gruf-zipkin.svg?branch=main)](http://inch-ci.org/github/bigcommerce/gruf-zipkin)\n\nAdds Zipkin tracing support for [gruf](https://github.com/bigcommerce/gruf) 2.0.0+.\n\n## Installation\n\n```ruby\ngem 'gruf-zipkin'\n```\n\nThen in an initializer or before use, after loading gruf:\n\n```ruby\nrequire 'zipkin-tracer'\nrequire 'gruf/zipkin'\n\n# Set it in the Rails config, or alternatively make this just a hash if not using Rails\nRails.application.config.zipkin_tracer = {\n  service_name: 'my-service',\n  service_port: 1234,\n  json_api_host: 'zipkin.mydomain.com',\n  sampled_as_boolean: false,\n  sample_rate: 0.1 # 0.0 to 1.0, where 1.0 =\u003e 100% of requests \n}\nGruf.configure do |c|\n  c.interceptors.use(Gruf::Zipkin::Interceptor, Rails.application.config.zipkin_tracer)\nend\n```\n\nThis assumes you have Zipkin already setup in your Ruby/Rails app via the installation \ninstructions in the [zipkin-tracer](https://github.com/openzipkin/zipkin-ruby) gem.\n\n### Rails/Rack Tracing\n\nAdd this to config.ru, if using above configuration:\n \n```ruby\nuse ZipkinTracer::RackHandler, Rails.application.config.zipkin_tracer\n```\n\n## Configuration\n\nYou can further customize the tracing of gruf services via the configuration:\n\n```ruby\nGruf.configure do |c|\n  c.interceptors.use(\n    Gruf::Zipkin::Interceptor,\n    span_prefix: 'myapp'\n  )\nend\n```\n\n## License\n\nCopyright (c) 2017-present, BigCommerce Pty. Ltd. All rights reserved \n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated \ndocumentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the \nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit \npersons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the \nSoftware.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE \nWARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR \nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR \nOTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigcommerce%2Fgruf-zipkin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbigcommerce%2Fgruf-zipkin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigcommerce%2Fgruf-zipkin/lists"}