https://github.com/byteshiva/zipkin-transport-http
es5 version for zipkin transport http
https://github.com/byteshiva/zipkin-transport-http
Last synced: 10 months ago
JSON representation
es5 version for zipkin transport http
- Host: GitHub
- URL: https://github.com/byteshiva/zipkin-transport-http
- Owner: byteshiva
- License: mit
- Created: 2016-09-29T11:03:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:51:21.000Z (about 2 years ago)
- Last Synced: 2025-01-22T12:12:48.409Z (12 months ago)
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Zipkin-transport-http
This is a module that sends Zipkin trace data to a configurable HTTP endpoint.
## Usage:
`npm install zipkin-transport-http --save`
```javascript
const {Tracer, BatchRecorder} = require('zipkin');
const {HttpLogger} = require('zipkin-transport-http');
const recorder = new BatchRecorder({
logger: new HttpLogger({
endpoint: 'http://localhost:9411/api/v1/spans'
})
});
const tracer = new Tracer({
recorder,
ctxImpl // this would typically be a CLSContext or ExplicitContext
});
```
reference:
https://github.com/openzipkin/zipkin-js