Sending errors
Place an OpenTelemetry export that keeps onlyerror lines:
bijection/app.ts
bijection secret set otlpToken.
What an error carries
Eachconsole.error line is one OpenTelemetry log record with
severityNumber 17 (ERROR). It carries the message as its body, the
function’s tree path as code.function.name, and the run as
bijection.execution. When the run was refused, the record also carries the
refusal’s code as bijection.refusal.code and its reason as
bijection.refusal.reason. Group or alert on those attributes in your error
tracker. The full mapping is in
OpenTelemetry records.
A refused run that logged nothing has no line to export. Log the error you
handle (console.error(error)) where you want it reported.