Necesito Programar Más

    @fastify/zipkin

    3.0.0 • Public • Published

    fastify-zipkin

    CI NPM version Known Vulnerabilities js-standard-style

    Fastify plugin for Zipkin distributed tracing system.

    Install

    npm i fastify-zipkin --save
    

    Usage

    Require the plugin and register it within Fastify, then pass the following options: { tracer, serviceName [, servicePort] }

    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(3000, err => {
      if (err) throw err
      console.log('Server listenting on localhost:', fastify.server.address().port)
    })

    License

    Licensed under MIT.

    Install

    npm i @fastify/zipkin

    DownloadsWeekly Downloads

    17

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    13.1 kB

    Total Files

    10

    Last publish

    Collaborators

    • simenb
    • coopflow
    • simoneb
    • rafaelgss
    • starptech
    • delvedor
    • matteo.collina
    • allevo
    • jsumners
    • zekth
    • ethan_arrowood
    • eomm
    • fox1t
    • davidmarkclements
    • airhorns
    • kibertoad
    • climba03003
    • is2ei
    • fdawgs