Skip to content

Commit 1257265

Browse files
committed
Add a whitespace-only LOGFIRE_DISTRIBUTED_TRACING regression test
1 parent 2172eff commit 1257265

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/logfire-node/src/__test__/logfireConfig.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,12 @@ describe('logfire config', () => {
549549
configure({ sendToLogfire: false })
550550
expect(logfireConfig.distributedTracing).toBe(true)
551551
})
552+
553+
it('a whitespace-only LOGFIRE_DISTRIBUTED_TRACING is treated as unset', () => {
554+
process.env['LOGFIRE_DISTRIBUTED_TRACING'] = ' '
555+
configure({ sendToLogfire: false })
556+
expect(logfireConfig.distributedTracing).toBe(true)
557+
})
552558
})
553559

554560
function makeCredentialsDir(credentials: { logfire_api_url: string; project_name: string; project_url: string; token: string }): string {

0 commit comments

Comments
 (0)