Skip to content

Expose Core console log format - #538

Draft
Sushisource wants to merge 1 commit into
mainfrom
core-json-logging
Draft

Expose Core console log format#538
Sushisource wants to merge 1 commit into
mainfrom
core-json-logging

Conversation

@Sushisource

Copy link
Copy Markdown
Member

What was changed

Added LoggingOptions#log_format and ConsoleLogFormat values so applications can select compact, pretty, or newline-delimited JSON output for Core logs written to the console. The option is represented in RBS/RBI and passed through the native bridge to Core.

Why?

Applications that ingest logs as structured data need Core to emit JSON directly instead of human-oriented text with ANSI formatting.

Checklist

  1. Closes [ruby] Allow configuring core tracing format #523
  2. How was this tested:
    • bundle exec rake rubocop yard steep
    • bundle exec rake compile
    • bundle exec rake rust_lint
    • TEMPORAL_SORBET_RUNTIME_CHECK=1 bundle exec rake test TESTOPTS="--name=test_runtime_console_log_format"
  3. Any docs updates needed? YARD documentation, RBS/RBI signatures, and the changelog are updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ruby] Allow configuring core tracing format

1 participant