Skip to content

Commit

Permalink
lint:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
trentm committed May 30, 2024
1 parent 899f153 commit 77b1877
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ export class PinoInstrumentation extends InstrumentationBase {

// Setup "log sending" -- sending log records to the Logs API.
// This depends on `pino.multistream`, which was added in v7.0.0.
if (isEnabled && !config.disableLogSending && typeof moduleExports.multistream === 'function') {
if (
isEnabled &&
!config.disableLogSending &&
typeof moduleExports.multistream === 'function'
) {
const otelTimestampFromTime = getTimeConverter(
logger,
moduleExports
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ describe('PinoInstrumentation', () => {
if (typeof pino.multistream !== 'function') {
this.skip();
}
})
});

beforeEach(() => {
instrumentation.setConfig({}); // reset to defaults
Expand Down

0 comments on commit 77b1877

Please sign in to comment.