Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fastify/fastify-zipkin
Fastify plugin for Zipkin distributed tracing system.
https://github.com/fastify/fastify-zipkin
fastify fastify-plugin tracing zipkin
Last synced: 3 months ago
JSON representation
Fastify plugin for Zipkin distributed tracing system.
- Host: GitHub
- URL: https://github.com/fastify/fastify-zipkin
- Owner: fastify
- License: mit
- Created: 2018-01-23T18:44:28.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-09-25T05:39:00.000Z (3 months ago)
- Last Synced: 2024-09-28T11:21:35.712Z (3 months ago)
- Topics: fastify, fastify-plugin, tracing, zipkin
- Language: JavaScript
- Homepage:
- Size: 87.9 KB
- Stars: 9
- Watchers: 17
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @fastify/zipkin
![CI](https://github.com/fastify/fastify-zipkin/workflows/CI/badge.svg)
[![NPM version](https://img.shields.io/npm/v/@fastify/zipkin.svg?style=flat)](https://www.npmjs.com/package/@fastify/zipkin)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/)Fastify plugin for [Zipkin](https://zipkin.io/) distributed tracing system.
## Install
```
npm i @fastify/zipkin
```## Usage
Require the plugin and register it within Fastify, then pass the following options: `{ serviceName, httpReporterUrl [, servicePort , tracer, recorder ] }````js
const fastify = require('fastify')()fastify.register(require('@fastify/zipkin'), {
serviceName: 'my-service-name',
servicePort: 3000,
httpReporterUrl: 'http://localhost:9411/api/v2/spans'
})fastify.get('/', (req, reply) => {
reply.send({ hello: 'world' })
})fastify.listen({ port: 3000 }, err => {
if (err) throw err
console.log('Server listenting on localhost:', fastify.server.address().port)
})
```## License
Licensed under [MIT](./LICENSE).