https://github.com/zalando-zmon/opentracing-javascript-utils
Utilities to Instrument Web Applications with OpenTracing
https://github.com/zalando-zmon/opentracing-javascript-utils
distributed-tracing javascript library opentracing utilities
Last synced: 6 months ago
JSON representation
Utilities to Instrument Web Applications with OpenTracing
- Host: GitHub
- URL: https://github.com/zalando-zmon/opentracing-javascript-utils
- Owner: zalando-zmon
- License: apache-2.0
- Created: 2018-02-07T13:41:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-02-11T09:11:44.000Z (over 6 years ago)
- Last Synced: 2025-10-20T11:33:59.093Z (9 months ago)
- Topics: distributed-tracing, javascript, library, opentracing, utilities
- Language: JavaScript
- Homepage:
- Size: 133 KB
- Stars: 2
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenTracing JavaScript Utils
Utilities to Instrument JavaScript Web Applications with OpenTracing.
### Early stage
## Features
* Dynamically loads dependencies depending on chosen Tracing library
* Promises to return an OpenTracing globalTracer
* Defaults to no-op
* Currently supports: lightstep.
## Example
```html
opentracingJavascriptUtils.initOpenTracing({
name: 'lightstep',
config: {
xhr_instrumentation: true,
access_token: '123456',
component_name: 'myApp',
collector_host: 'localhost',
collector_port: 443,
collector_encryption: 'tls',
verbosity: 1,
}})
.then((globalTracer) => {
// bootstrap myApp
})
```