Skip to content

[Bug] Workflow logs not propagated unless telemetryOptions.logging.filter is DEBUG or TRACE #1750

@antlai-temporal

Description

@antlai-temporal

Describe the bug

Using sample https://github.com/temporalio/samples-typescript/tree/main/custom-logger unless the worker
configures core logging filter to DEBUG or TRACE, workflow application logging, i.e., using log.info in workflow code, will not show up in the logs.

This is confusing because it would be expected if telemetryOptions.logging.filter is set to INFO, a log.info in workflow code will be reflected in the logs

Minimal Reproduction

Change line https://github.com/temporalio/samples-typescript/blob/main/custom-logger/src/worker.ts#L33 to

filter: makeTelemetryFilterString({ core: 'INFO' }),

and the log.info in
https://github.com/temporalio/samples-typescript/blob/main/custom-logger/src/workflows/index.ts#L10

does not show up in the logs

Environment/Versions

Latest TS SDK 1.12.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions