Skip to content

Align runtime metrics conventions - #1235

Merged
solnic merged 1 commit into
masterfrom
feat/align-runtime-metrics-conventions
Nov 13, 2026
Merged

solnic merged 1 commit into
masterfrom
feat/align-runtime-metrics-conventions

Conversation

@solnic

@solnic solnic commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

Tweak runtime metrics to match expectations of the new upcoming metric model.

Refs getsentry/sentry-conventions#649

Example

Here's what Sentry generated when I asked for a Dashboard with runtime metrics:

image

@solnic
solnic force-pushed the feat/align-runtime-metrics-conventions branch from d55cf84 to 6a2a126 Compare September 30, 2026 13:48
@solnic
solnic force-pushed the feat/align-runtime-metrics-conventions branch 2 times, most recently from 5f33f8d to be8620d Compare November 4, 2026 15:39
@solnic
solnic marked this pull request as ready for review November 4, 2026 15:42
Report runtime metrics under process.runtime.elixir.* as defined in
sentry-conventions (getsentry/sentry-conventions#768):

- process.runtime.elixir.memory.used, one gauge per
  process.runtime.elixir.memory.type (processes, atom, binary, code,
  ets, other), replacing the elixir.runtime.mem.* gauges
- process.runtime.elixir.run_queue.length, one gauge per
  process.runtime.elixir.run_queue.type (cpu, io), replacing the
  elixir.runtime.run_queue.* gauges
- process.runtime.elixir.{process,atom,port}.{count,limit,utilization}
  and process.runtime.elixir.scheduler.utilization
- unit "none" for counts, and the OTel process.runtime.* attributes
  in place of elixir_version and otp_release when version_attributes
  is enabled

Document the units Sentry recognizes in Sentry.Metrics.

Add `mix test.conventions` and a workflow that check the emitted
metrics against the definitions in a sentry-conventions checkout.
@solnic
solnic force-pushed the feat/align-runtime-metrics-conventions branch from 3670d91 to 93149a9 Compare November 11, 2026 14:30
@solnic
solnic merged commit 2c27995 into master Nov 13, 2026
15 of 17 checks passed
@solnic
solnic deleted the feat/align-runtime-metrics-conventions branch November 13, 2026 08:48
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