{"id":18767811,"url":"https://github.com/lightstep/otel-workshop-nodejs","last_synced_at":"2025-06-15T01:38:02.629Z","repository":{"id":43289583,"uuid":"468084478","full_name":"lightstep/otel-workshop-nodeJS","owner":"lightstep","description":"Workshop to work through NodeJS manual instrumentation examples","archived":false,"fork":false,"pushed_at":"2022-03-11T19:38:56.000Z","size":2961,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-12-29T06:46:42.471Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/lightstep.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}},"created_at":"2022-03-09T20:36:27.000Z","updated_at":"2022-07-21T13:57:40.000Z","dependencies_parsed_at":"2022-09-23T12:01:32.743Z","dependency_job_id":null,"html_url":"https://github.com/lightstep/otel-workshop-nodeJS","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/lightstep%2Fotel-workshop-nodeJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightstep%2Fotel-workshop-nodeJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightstep%2Fotel-workshop-nodeJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightstep%2Fotel-workshop-nodeJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lightstep","download_url":"https://codeload.github.com/lightstep/otel-workshop-nodeJS/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239671422,"owners_count":19677873,"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-11-07T19:08:45.614Z","updated_at":"2025-02-19T14:11:58.269Z","avatar_url":"https://github.com/lightstep.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Overview\n\nThis example shows how to use [@opentelemetry/exporter-otlp-http](https://github.com/open-telemetry/opentelemetry-js/tree/v0.26.0/experimental/packages/opentelemetry-exporter-otlp-http) to instrument a simple Node.js application.\nThis example will export spans data simultaneously using [Exporter Collector](https://github.com/open-telemetry/opentelemetry-js/tree/v0.26.0/experimental/packages/opentelemetry-exporter-otlp-http) and grpc. It will use [proto format](https://github.com/open-telemetry/opentelemetry-proto). The goal is for us to be able to create spans and ultimately see them in the Lightstep UI. \n\n## Pre-Work\n\n* * *\n\n* You will need `npm` to be installed. To check and see if you have it installed run `npm -v` to see the version.\n* You will also need Docker to be installed. If you do not have Docker head over to [their website](https://www.docker.com/products/docker-desktop) and install Docker Desktop. Once installed, you'll need to make sure that it is running since the `docker:start` command depends on being able to connect to the Docker daemon. \n\n## Installation\n\n* * *\n\n```\n# from this directory\nnpm install\n```\n\n## Run the Application\n\n* * *\n\n1. **Run docker.** If you are having trouble make sure that Docker Desktop is running so we can connect to the Docker daemon. \n\n```\n# from this directory\nnpm run docker:start\n```\n\n1. **Run tracing app.** Once you run this part of the code, spans should show up in your console. To send traces to Lightstep, make sure that `accessToken` is set inside the `tracing.js` file.\n\n```\n# from this directory\nnpm run start:tracing\n```\n\nYou should see traces exported to your console and your instance of Lightstep if you appropriately configured your access token.\n\n## Useful Links\n\n* * *\n\n* For more information on OpenTelemetry, visit: https://opentelemetry.io/\n* For more information on JavaScript-specific implementation of OpenTelemetry, visit: https://opentelemetry.io/docs/instrumentation/js/\n* For more information on tracing, visit: https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-sdk-trace-base\n\n## License\n\n* * *\nApache License 2.0","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightstep%2Fotel-workshop-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightstep%2Fotel-workshop-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightstep%2Fotel-workshop-nodejs/lists"}