@mw-components/jaeger
TypeScript icon, indicating that this package has built-in type declarations

13.1.7 • Public • Published

@mw-components/jaeger

Jaeger opentracing client component for midway.js

Version License Conventional Commits

Install

npm i @mw-components/jaeger

Usage

Update project src/configuration.ts

import * as jaeger from '@mw-components/jaeger'

@Configuration({
  imports: [
    jaeger,
  ],
  importConfigs: [join(__dirname, 'config')],
})
export class ContainerConfiguration implements ILifeCycle {
}

Update project src/config/config.prod.ts

import { TracerConfig } from '@mw-components/jaeger'

export const tracer: TracerConfig = {
  tracingConfig: {
    reporter: {
      agentHost: '127.0.0.1',
    },
  },
}

Update project src/config/config.(local | unittest).ts

import { TracerConfig, initLoggingReqHeaders } from '@mw-components/jaeger'

export const tracer: TracerConfig = {
  reqThrottleMsForPriority: 100,
  tracingConfig: {
    reporter: {
      agentHost: '127.0.0.1',
    },
  },
  loggingReqHeaders: [
    ...initLoggingReqHeaders,
    'header-foo',
    'header-bar',
  ],
}

License

MIT

/@mw-components/jaeger/

    Package Sidebar

    Install

    npm i @mw-components/jaeger

    Weekly Downloads

    3

    Version

    13.1.7

    License

    MIT

    Unpacked Size

    103 kB

    Total Files

    71

    Last publish

    Collaborators

    • waiting