Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update deps matching "@opentelemetry/" #2408

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class BunyanInstrumentation extends InstrumentationBase<BunyanInstrumenta
}

override setConfig(config: BunyanInstrumentationConfig = {}) {
this._config = { ...DEFAULT_CONFIG, ...config };
Copy link
Member Author

@pichlermarc pichlermarc Aug 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewer note: this did override the enabled config and actually disabled the instrumentation, this went unnoticed until the change from open-telemetry/opentelemetry-js@0ee398d which now uses this method instead of setting it directly.

super.setConfig({ ...DEFAULT_CONFIG, ...config });
}

private _getPatchedEmit() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ loggerProvider.addLogRecordProcessor(new SimpleLogRecordProcessor(memExporter));
logs.setGlobalLoggerProvider(loggerProvider);

const instrumentation = new BunyanInstrumentation();
instrumentation.enable();
const Logger = require('bunyan');

describe('BunyanInstrumentation', () => {
Expand Down
Loading