{"id":15048399,"url":"https://github.com/github/lightstep-tracer-ruby","last_synced_at":"2025-10-04T08:31:41.227Z","repository":{"id":51485177,"uuid":"126048136","full_name":"github/lightstep-tracer-ruby","owner":"github","description":"The LightStep distributed tracing library for Ruby","archived":true,"fork":true,"pushed_at":"2021-05-11T16:57:26.000Z","size":512,"stargazers_count":8,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-29T00:21:35.540Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://lightstep.com","language":"Ruby","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"lightstep/lightstep-tracer-ruby","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/github.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-20T16:27:45.000Z","updated_at":"2024-07-31T03:16:37.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/github/lightstep-tracer-ruby","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Flightstep-tracer-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Flightstep-tracer-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Flightstep-tracer-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Flightstep-tracer-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/github","download_url":"https://codeload.github.com/github/lightstep-tracer-ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235232688,"owners_count":18957057,"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":[],"created_at":"2024-09-24T21:11:25.606Z","updated_at":"2025-10-04T08:31:35.894Z","avatar_url":"https://github.com/github.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lightstep-tracer-ruby\n\n[![Gem Version](https://badge.fury.io/rb/lightstep.svg)](https://badge.fury.io/rb/lightstep) [![Circle CI](https://circleci.com/gh/lightstep/lightstep-tracer-ruby.svg?style=shield)](https://circleci.com/gh/lightstep/lightstep-tracer-ruby) [![MIT license](http://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT) [![Code Climate](https://codeclimate.com/github/lightstep/lightstep-tracer-ruby/badges/gpa.svg)](https://codeclimate.com/github/lightstep/lightstep-tracer-ruby)\n\nThe LightStep distributed tracing library for Ruby.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'lightstep'\n\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install lightstep\n\n\n## Getting started\n\n    require 'lightstep'\n\n    # Initialize the singleton tracer\n    LightStep.configure(component_name: 'lightstep/ruby/example', access_token: 'your_access_token')\n\n    # Specify a propagation format (options are :lightstep (default) and :b3)\n    LightStep.configure(component_name: 'lightstep/ruby/example', access_token: 'your_access_token', propagator: :b3)\n\n    # Create a basic span and attach a log to the span\n    span = LightStep.start_span('my_span')\n    span.log(event: 'hello world', count: 42)\n\n    # Create a child span (and add some artificial delays to illustrate the timing)\n    sleep(0.1)\n    child = LightStep.start_span('my_child', child_of: span.span_context)\n    sleep(0.2)\n    child.finish\n    sleep(0.1)\n    span.finish\n\n## Thread Safety\n\nThe LightStep Tracer is threadsafe. For increased performance, you can add the\n`concurrent-ruby-ext` gem to your Gemfile. This will enable C extensions for\nconcurrent operations.\n\nThe LightStep Tracer is also Fork-safe. When forking, the child process will\nnot inherit the unflushed spans of the parent, so they will only be flushed\nonce.\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `make test` to run the tests.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Flightstep-tracer-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub%2Flightstep-tracer-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Flightstep-tracer-ruby/lists"}