Skip to content

feat: configurable log levels for pulse success and failure#68

Merged
jbiskur merged 1 commit intomainfrom
feat/pulse-logger-integration
Apr 8, 2026
Merged

feat: configurable log levels for pulse success and failure#68
jbiskur merged 1 commit intomainfrom
feat/pulse-logger-integration

Conversation

@jbiskur
Copy link
Copy Markdown
Contributor

@jbiskur jbiskur commented Apr 8, 2026

Summary

PulseEmitter now logs structured events on both success and failure paths with configurable log levels.

New options on PulseEmitterOptions:

  • successLogLevel?: "debug" | "info" | "warn" | "error" (default: debug)
  • failureLogLevel?: "debug" | "info" | "warn" | "error" (default: warn)

Structured context:

  • Success: { pathwayId, flowType, timeBucket, isLive, bufferDepth }
  • Failure: { error, url, pathwayId, flowType }

Also exposed via FlowcoreDataPumpOptions.pulse.successLogLevel / failureLogLevel for downstream consumers.

Test plan

  • deno check clean
  • deno lint + deno fmt clean
  • All 8 existing tests pass

🤖 Generated with Claude Code

PulseEmitter now accepts successLogLevel and failureLogLevel options
and logs structured events on both success and failure paths:
- success: logs { pathwayId, flowType, timeBucket, isLive, bufferDepth }
  (defaults to 'debug' level)
- failure: logs { error, url, pathwayId, flowType }
  (defaults to 'warn' level)

Plumbed through FlowcoreDataPumpOptions.pulse for downstream consumers.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jbiskur jbiskur merged commit 71fe82a into main Apr 8, 2026
2 checks passed
@jbiskur jbiskur deleted the feat/pulse-logger-integration branch April 8, 2026 10:16
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.

1 participant