6.0.5 • Published 8 years ago

hemera-zipkin v6.0.5

Weekly downloads
33
License
MIT
Repository
github
Last release
8 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

8 years ago

6.0.4

8 years ago

6.0.3

8 years ago

6.0.2

8 years ago

6.0.1

8 years ago

6.0.0

8 years ago

5.0.2

8 years ago

5.0.1

8 years ago

5.0.0

8 years ago

4.0.0

8 years ago

3.1.0

8 years ago

3.0.1

8 years ago

3.0.0

8 years ago

2.0.5

9 years ago

2.0.4

9 years ago

2.0.3

9 years ago

2.0.2

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.21

9 years ago

1.0.20

9 years ago

1.0.19

9 years ago

1.0.18

9 years ago

1.0.17

9 years ago

1.0.16

9 years ago

1.0.15

9 years ago

1.0.14

9 years ago

1.0.13

9 years ago

1.0.12

9 years ago

1.0.11

9 years ago

1.0.10

9 years ago

1.0.9

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.0

9 years ago

0.3.2

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.72

9 years ago

0.1.71

9 years ago

0.1.70

9 years ago

0.1.69

9 years ago

0.1.68

9 years ago

0.1.67

9 years ago

0.1.66

9 years ago

0.1.65

10 years ago

0.1.64

10 years ago

0.1.63

10 years ago

0.1.62

10 years ago

0.1.61

10 years ago

0.1.60

10 years ago

0.1.59

10 years ago

0.1.58

10 years ago