JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q42549F
  • License MIT

midway component for jaeger

Package Exports

  • @mwcp/jaeger
  • @mwcp/jaeger/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@mwcp/jaeger) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@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