6.0.5 • Published 5 years ago

hemera-zipkin v6.0.5

Weekly downloads
33
License
MIT
Repository
github
Last release
5 years ago

Hemera-zipkin package

npm styled with prettier

This is a plugin to use Zipkin with Hemera.

Tracking level

  1. Per subscription: Each topic represents a subscription in NATS and therefore handled as own service. The hemera tag indentifiy the server instance.
  2. Per hemera instance: Each hemera instance represents the whole service. The service name can be configured by the tag option.

Install

npm i hemera-zipkin --save

Getting started

Run zipkin in docker

$ docker-compose up

You can then navigate to http://localhost:9411 to access the Zipkin UI.

Usage

const hemera = new Hemera(nats, {
  logLevel: 'debug',
  childLogger: true,
  tag: 'user-service'
})

hemera.use(hemeraZipkin, {
  debug: false,
  host: '127.0.0.1',
  port: '9411',
  path: '/api/v1/spans',
  subscriptionBased: true, // when false the hemera tag represents the service otherwise the NATS topic name
  sampling: 1
})

Add contextual data

Look in the documentation to learn more about delegate in hemera.

hemera.add(
  {
    topic: 'profile',
    cmd: 'get'
  },
  function(req, cb) {
    this.delegate$.query = 'SELECT FROM User;'
    cb(null, true)
  }
)

Advanced example

here

6.0.5

5 years ago

6.0.4

6 years ago

6.0.3

6 years ago

6.0.2

6 years ago

6.0.1

6 years ago

6.0.0

6 years ago

5.0.2

6 years ago

5.0.1

6 years ago

5.0.0

6 years ago

4.0.0

6 years ago

3.1.0

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.0.5

6 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.21

7 years ago

1.0.20

7 years ago

1.0.19

7 years ago

1.0.18

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.0

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.72

7 years ago

0.1.71

7 years ago

0.1.70

7 years ago

0.1.69

7 years ago

0.1.68

7 years ago

0.1.67

7 years ago

0.1.66

7 years ago

0.1.65

7 years ago

0.1.64

7 years ago

0.1.63

7 years ago

0.1.62

7 years ago

0.1.61

7 years ago

0.1.60

7 years ago

0.1.59

7 years ago

0.1.58

7 years ago