# Capture errors with useful context
URL: https://wwadd.dev/moves/testing-shipping/error-reporting-context

Record the failure, request or correlation ID, release identifier, and operation so you can connect a report to the deployed code. Keep stack traces on the server and show a recoverable message to the user. Exclude secrets and sensitive payloads from logs, and check that alerts reach someone who can act. Use structured fields rather than concatenating untrusted text.

Verified: 2026-09-30

Source: [Official guidance](https://opentelemetry.io/docs/concepts/signals/logs/)

