|
| 1 | +/** |
| 2 | + * Pinpoint Node.js Agent |
| 3 | + * Copyright 2020-present NAVER Corp. |
| 4 | + * Apache License v2.0 |
| 5 | + */ |
| 6 | + |
| 7 | +export interface LoggerLevels { |
| 8 | + [loggerName: string]: string; |
| 9 | +} |
| 10 | + |
| 11 | +export interface PinpointConfig { |
| 12 | + enable: boolean; |
| 13 | + agentId: string; |
| 14 | + agentName?: string; |
| 15 | + applicationName: string; |
| 16 | + serviceType: number; |
| 17 | + container: boolean; |
| 18 | + collectorIp: string; |
| 19 | + collectorTcpPort: number; |
| 20 | + collectorStatPort: number; |
| 21 | + collectorSpanPort: number; |
| 22 | + sampling: boolean; |
| 23 | + sampleRate: number; |
| 24 | + logLevel: string; |
| 25 | + loggerLevels?: LoggerLevels; |
| 26 | + enabledDataSending?: boolean; |
| 27 | + enabledStatsMonitor: boolean; |
| 28 | + enabledActiveThreadCount?: boolean; |
| 29 | + express?: boolean; |
| 30 | + koa?: boolean; |
| 31 | + mongo?: boolean; |
| 32 | + redis?: boolean; |
| 33 | + traceExclusionUrlPatterns?: string[]; |
| 34 | + traceExclusionUrlCacheSize?: number; |
| 35 | + streamDeadlineMinutesClientSide?: number; |
| 36 | + traceLocationAndFileNameOfCallSite?: boolean; |
| 37 | + profilerSqlStat?: boolean; |
| 38 | + httpStatusCodeErrors?: string; |
| 39 | + grpcServiceConfig?: { [key: string]: any }; |
| 40 | + [key: string]: any; |
| 41 | +} |
| 42 | + |
| 43 | +export declare function getConfig(initOptions?: { [key: string]: any }): PinpointConfig; |
| 44 | +export declare function clear(): void; |
| 45 | +export declare function readConfigJson(formattedConfig: any): Partial<PinpointConfig>; |
| 46 | +export declare function readRootConfigFile(): { [key: string]: any }; |
| 47 | +export declare function getMainModulePath(requireFunction: NodeRequire): string | undefined; |
| 48 | +export declare function isContainerEnvironment(): boolean; |
| 49 | +export declare function initializeConfig(initOptions?: { [key: string]: any }): void; |
| 50 | +export declare function registerLoadedConfig(propertyName: string, callback: (value: any) => void): void; |
0 commit comments