Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(config: BasicTracerConfig = DEFAULT_CONFIG) {
const localConfig = mergeConfig(config);
this._binaryFormat = localConfig.binaryFormat;
this._defaultAttributes = localConfig.defaultAttributes;
this._httpTextFormat = localConfig.httpTextFormat;
this._sampler = localConfig.sampler;
this._scopeManager = localConfig.scopeManager;
this._traceParams = localConfig.traceParams;
this.logger = config.logger || new ConsoleLogger(config.logLevel);
}
constructor(config: MeterConfig = DEFAULT_CONFIG) {
this._logger = config.logger || new ConsoleLogger(config.logLevel);
}