Skip to content

Expose Core console log format - #2314

Draft
Sushisource wants to merge 2 commits into
mainfrom
core-json-logging
Draft

Expose Core console log format#2314
Sushisource wants to merge 2 commits into
mainfrom
core-json-logging

Conversation

@Sushisource

Copy link
Copy Markdown
Member

What was changed

Added telemetryOptions.logging.console.format so applications can select compact, pretty, or newline-delimited JSON output for Core logs written to the console. The native bridge validates and maps the value to Core. The Core bump also updates bridge construction for newly non-exhaustive Core option types.

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 [typescript] Allow configuring core tracing format #2301
  2. How was this tested:
    • Prettier and ESLint checks for changed TypeScript files
    • pnpm --filter @temporalio/core-bridge lint:check
    • pnpm --filter @temporalio/test build
    • pnpm --filter @temporalio/test exec ava ./lib/test-bridge.js --match='Missing/invalid properties in config throws appropriately'
  3. Any docs updates needed? The public TypeScript API documentation and 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.

[typescript] Allow configuring core tracing format

1 participant