{"id":19312199,"url":"https://github.com/bigcommerce/gruf-newrelic","last_synced_at":"2025-04-22T15:32:05.281Z","repository":{"id":33849902,"uuid":"151742892","full_name":"bigcommerce/gruf-newrelic","owner":"bigcommerce","description":"New Relic tracing for gruf services","archived":false,"fork":false,"pushed_at":"2022-05-11T22:35:53.000Z","size":35,"stargazers_count":7,"open_issues_count":2,"forks_count":6,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-04-02T00:51:22.572Z","etag":null,"topics":["grpc","gruf","newrelic","ruby"],"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":"2018-10-05T15:39:08.000Z","updated_at":"2021-06-14T14:48:17.000Z","dependencies_parsed_at":"2022-07-29T02:09:24.660Z","dependency_job_id":null,"html_url":"https://github.com/bigcommerce/gruf-newrelic","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigcommerce%2Fgruf-newrelic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigcommerce%2Fgruf-newrelic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigcommerce%2Fgruf-newrelic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigcommerce%2Fgruf-newrelic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bigcommerce","download_url":"https://codeload.github.com/bigcommerce/gruf-newrelic/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250267464,"owners_count":21402486,"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","newrelic","ruby"],"created_at":"2024-11-10T00:33:34.402Z","updated_at":"2025-04-22T15:32:05.022Z","avatar_url":"https://github.com/bigcommerce.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gruf-newrelic - New Relic support for gruf\n\n[![CircleCI](https://circleci.com/gh/bigcommerce/gruf-newrelic/tree/main.svg?style=svg)](https://circleci.com/gh/bigcommerce/gruf-newrelic/tree/main) [![Gem Version](https://badge.fury.io/rb/gruf-newrelic.svg)](https://badge.fury.io/rb/gruf-newrelic) [![Inline docs](http://inch-ci.org/github/bigcommerce/gruf-newrelic.svg?branch=main)](http://inch-ci.org/github/bigcommerce/gruf-newrelic)\n\nAdds New Relic support for [gruf](https://github.com/bigcommerce/gruf) 2.0.0+.\n\n## Installation\n\n```ruby\ngem 'gruf-newrelic'\n```\n\nIn your gruf initializer:\n\n```ruby\nGruf.configure do |c|\n  c.interceptors.use(Gruf::Newrelic::ServerInterceptor)\nend\n```\n\nThis will add New Relic tracing support to all gruf controllers.\n\n### Distributed Tracing\nWhen controller receives gRPC request, it will automatically apply NewRelic distributed tracing information to current\nrequest if it is present in `newrelic` header. Make sure request has `newrelic` header with tracing payload (see below)\nand that your account and application settings have distributed tracing enabled\n\nIf you are using `::Gruf::Client` to make gRPC request, you need to explicitly add NewRelic Client Interceptor\nin `client_options`:\n```ruby\nclient = ::Gruf::Client.new(\n  service: ::Demo::ThingService, \n  client_options: {\n    interceptors: [::Gruf::Newrelic::ClientInterceptor.new]\n  }\n)\n```\n\n## License\n\nCopyright (c) 2018-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-newrelic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbigcommerce%2Fgruf-newrelic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigcommerce%2Fgruf-newrelic/lists"}