@mw-components/jaeger
v13.1.7
Published
midway component for jaeger
Downloads
26
Readme
@mw-components/jaeger
Jaeger opentracing client component for midway.js
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',
],
}