c1e5f5b260
Co-authored-by: Jiachi Liu <inbox@huozhi.im>
15 lines
356 B
TypeScript
15 lines
356 B
TypeScript
// eslint typescript has a bug with TS enums
|
|
/* eslint-disable no-shadow */
|
|
export enum TARGET {
|
|
CONSOLE = 'CONSOLE',
|
|
ZIPKIN = 'ZIPKIN',
|
|
JAEGER = 'JAEGER',
|
|
TELEMETRY = 'TELEMETRY',
|
|
}
|
|
|
|
export type SpanId = string
|
|
|
|
export const traceGlobals: Map<any, any> = new Map()
|
|
export const setGlobal = (key: any, val: any) => {
|
|
traceGlobals.set(key, val)
|
|
}
|