Skip to content
You're viewing documentation for v0.3.0. It may be out of date.Go to latest
Email SDK
Esc
↑↓navigate↵open⌘Jpreview
On this page

Observability plugin

Emit redacted log, metric, and trace events.

Use the observability plugin when you want to see email behavior without logging recipients or message bodies.

Events

Event Fires when
email.sent A provider returns a normalized response.
email.retry Email SDK schedules another retry attempt.
email.error A provider attempt fails.

Each event includes provider name, attempt number, metadata, and a redacted message summary.

Redacted message shape

By default, the plugin does not include recipient addresses, HTML, text, attachment content, or metadata values.

Custom redaction

Keep secrets, raw tokens, recipient lists, and body content out of logs unless your app explicitly needs and protects that data.

Failure behavior

Observability callbacks are non-blocking. If log, metric, or trace throws, Email SDK swallows that error so logging failures do not hide provider failures.

Use a custom beforeSend middleware plugin when a rule should block a send.

Last updated on