Skip to content

otel_metrics: Don't report send duration for letters#4849

Merged
robinjam merged 3 commits into
mainfrom
jar-dont-report-send-duration-for-letters
May 19, 2026
Merged

otel_metrics: Don't report send duration for letters#4849
robinjam merged 3 commits into
mainfrom
jar-dont-report-send-duration-for-letters

Conversation

@robinjam
Copy link
Copy Markdown
Contributor

@robinjam robinjam commented May 12, 2026

https://trello.com/c/25A3gpXh/1358-replace-statsd-instrumentation-across-notify-with-otel

We send all letters at the same time in the evening, so "elapsed time between notification creation and sending" is meaningless for them.

Also includes a drive-by refactor of record_deliver_duration and the readme (see commit messages).

robinjam added 3 commits May 12, 2026 13:56
We send all letters at the same time in the evening, so "elapsed time
between notification creation and sending" is meaningless for them.
- Fix incorrect docstring
- Rename sms_international to notification_sms_international to match
  the name of the actual metric attribute

This change has no visible effect.
As we now aggregate away the service.instance.id label in the sidecar,
adding metrics or labels now needs a corresponding change in the sidecar
config.
@robinjam robinjam merged commit f7f4940 into main May 19, 2026
10 checks passed
@robinjam robinjam deleted the jar-dont-report-send-duration-for-letters branch May 19, 2026 08:22
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.

2 participants