Skip to content

[v3-4-test] Honor Airflow logging levels in TypeScript SDK (#76005) - #76030

Merged
vatsrahul1001 merged 1 commit into
v3-4-testfrom
backport-5cc2413-v3-4-test
Oct 30, 2026
Merged

vatsrahul1001 merged 1 commit into
v3-4-testfrom
backport-5cc2413-v3-4-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor
  • Honor Airflow logging levels in TypeScript SDK

  • Harden TS SDK log level filtering

  • Keep the helper method's level when args carry a level field, so a
    non-string value can no longer crash send().
  • Filter levels outside LogLevel as INFO instead of letting them bypass
    the threshold.
  • Filter by the channel's own name, matching the [name] event prefix,
    rather than a caller-supplied logger field.
  • Report an invalid logging_level instead of silently using INFO.
  • Drop FATAL so accepted names match structlog's NAME_TO_LEVEL.
  • Extract namespace_levels parsing and resolve each channel's threshold
    once at construction.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

  • Restore FATAL log level alias in TS SDK

Airflow's configure_logging adds a fatal alias to NAME_TO_LEVEL before
parsing logging_level and namespace_levels, so Python accepts FATAL.
Removing it made the TS SDK reject a setting the Python side honors.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

  • Address review: rename threshold to logLevel and trim comments

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com


(cherry picked from commit 5cc2413)

Co-authored-by: Shivam Rastogi 6463385+shivaam@users.noreply.github.com
Co-authored-by: Claude Opus 5.5 noreply@anthropic.com

@vatsrahul1001 vatsrahul1001 added this to the Airflow 3.4.0 milestone Oct 30, 2026
@vatsrahul1001
vatsrahul1001 marked this pull request as ready for review October 30, 2026 14:19
* Honor Airflow logging levels in TypeScript SDK

* Harden TS SDK log level filtering

- Keep the helper method's level when args carry a `level` field, so a
  non-string value can no longer crash `send()`.
- Filter levels outside LogLevel as INFO instead of letting them bypass
  the threshold.
- Filter by the channel's own name, matching the `[name]` event prefix,
  rather than a caller-supplied `logger` field.
- Report an invalid `logging_level` instead of silently using INFO.
- Drop FATAL so accepted names match structlog's NAME_TO_LEVEL.
- Extract namespace_levels parsing and resolve each channel's threshold
  once at construction.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Restore FATAL log level alias in TS SDK

Airflow's configure_logging adds a `fatal` alias to NAME_TO_LEVEL before
parsing logging_level and namespace_levels, so Python accepts FATAL.
Removing it made the TS SDK reject a setting the Python side honors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Address review: rename threshold to logLevel and trim comments

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------
(cherry picked from commit 5cc2413)

Co-authored-by: Shivam Rastogi <6463385+shivaam@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@vatsrahul1001
vatsrahul1001 force-pushed the backport-5cc2413-v3-4-test branch from 7207ccc to ba75344 Compare October 30, 2026 15:54
@vatsrahul1001
vatsrahul1001 merged commit 9c13378 into v3-4-test Oct 30, 2026
46 checks passed
@vatsrahul1001
vatsrahul1001 deleted the backport-5cc2413-v3-4-test branch October 30, 2026 15:57
vatsrahul1001 pushed a commit that referenced this pull request Oct 30, 2026
…76030)

* Honor Airflow logging levels in TypeScript SDK

* Harden TS SDK log level filtering

- Keep the helper method's level when args carry a `level` field, so a
  non-string value can no longer crash `send()`.
- Filter levels outside LogLevel as INFO instead of letting them bypass
  the threshold.
- Filter by the channel's own name, matching the `[name]` event prefix,
  rather than a caller-supplied `logger` field.
- Report an invalid `logging_level` instead of silently using INFO.
- Drop FATAL so accepted names match structlog's NAME_TO_LEVEL.
- Extract namespace_levels parsing and resolve each channel's threshold
  once at construction.



* Restore FATAL log level alias in TS SDK

Airflow's configure_logging adds a `fatal` alias to NAME_TO_LEVEL before
parsing logging_level and namespace_levels, so Python accepts FATAL.
Removing it made the TS SDK reject a setting the Python side honors.



* Address review: rename threshold to logLevel and trim comments



---------
(cherry picked from commit 5cc2413)

Co-authored-by: Shivam Rastogi <6463385+shivaam@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants