{"id":18767790,"url":"https://github.com/lightstep/lightstep-tracer-objc","last_synced_at":"2025-04-13T06:32:32.466Z","repository":{"id":4222987,"uuid":"52403627","full_name":"lightstep/lightstep-tracer-objc","owner":"lightstep","description":"The Lightstep distributed tracing library for Objective-C and Swift","archived":false,"fork":false,"pushed_at":"2023-09-15T21:03:10.000Z","size":5667,"stargazers_count":11,"open_issues_count":4,"forks_count":9,"subscribers_count":72,"default_branch":"master","last_synced_at":"2024-04-24T14:30:00.098Z","etag":null,"topics":["opentracing"],"latest_commit_sha":null,"homepage":"https://lightstep.com","language":"Objective-C","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/lightstep.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2016-02-24T01:05:56.000Z","updated_at":"2023-03-22T09:11:41.000Z","dependencies_parsed_at":"2024-11-07T19:08:40.241Z","dependency_job_id":"a6bd1151-59f0-4dba-b3b4-e0c6922fff15","html_url":"https://github.com/lightstep/lightstep-tracer-objc","commit_stats":{"total_commits":255,"total_committers":16,"mean_commits":15.9375,"dds":0.615686274509804,"last_synced_commit":"c16287ad85abe6f478bc1f6756921e95b985b82b"},"previous_names":[],"tags_count":101,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightstep%2Flightstep-tracer-objc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightstep%2Flightstep-tracer-objc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightstep%2Flightstep-tracer-objc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightstep%2Flightstep-tracer-objc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lightstep","download_url":"https://codeload.github.com/lightstep/lightstep-tracer-objc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248674678,"owners_count":21143760,"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":["opentracing"],"created_at":"2024-11-07T19:08:35.332Z","updated_at":"2025-04-13T06:32:28.648Z","avatar_url":"https://github.com/lightstep.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lightstep-tracer-objc\n\n\u003e ❗ **This legacy instrumentation is no longer recommended**. Please review [documentation on setting up and configuring OpenTelemetry Swift](https://github.com/open-telemetry/opentelemetry-swift).\n\n\n[![Version](https://img.shields.io/cocoapods/v/lightstep.svg?style=flat)](http://cocoapods.org/pods/lightstep)\n[![License](https://img.shields.io/cocoapods/l/lightstep.svg?style=flat)](http://cocoapods.org/pods/lightstep)\n[![Platform](https://img.shields.io/cocoapods/p/lightstep.svg?style=flat)](http://cocoapods.org/pods/lightstep)\n\nThe LightStep distributed tracing library for Objective-C and Swift.\n\n## Installation (CocoaPods)\n\n1. Ensure you have [CocoaPods installed](https://guides.cocoapods.org/using/getting-started.html) (TL;DR: `sudo gem install cocoapods`)\n2. Create a `Podfile` in your Xcode project and add the following line:\n\n```ruby\npod 'lightstep', '~\u003e3.2'\n```\n\n3. Run `pod install` in your project directory. Open the newly created workspace file in Xcode.\n\n## Installation (Carthage)\n\nAdd following line to your `Cartfile`:\n\n```\ngithub \"lightstep/lightstep-tracer-objc\" ~\u003e 3.0\n```\n\n## Getting started\n\n```objectivec\n#import \"LSTracer.h\"\n#import \"OTGlobal.h\"\n\n- (BOOL)application:(UIApplication *)application\n    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {\n\n    // Initialize the LightStep tracer implementation\n    LSTracer* tracer = [[LSTracer alloc] initWithToken:@\"{your_access_token}\"];\n    [OTGlobal initSharedTracer:tracer];\n\n    // \u003cYour normal initialization code here\u003e\n\n    return YES;\n}\n\n// Elsewhere:\n- (void)someFunction:... {\n\n    id\u003cOTSpan\u003e span = [[OTGlobal sharedTracer] startSpan:@\"someFunction:\"];\n\n    ...\n\n    [span finish];\n}\n```\n\n* For more info on OpenTracing, see [opentracing.io](http://opentracing.io).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightstep%2Flightstep-tracer-objc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightstep%2Flightstep-tracer-objc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightstep%2Flightstep-tracer-objc/lists"}