getsentry / getsentry/sentry

Create a metric from observed errors or tool calls

Open
#121,823 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature
Dominant language
Python
Stars
44.8k
Forks
4.9k
Avg merge
21h 23m
Merged PRs (30d)
607

Description

After noticing something worth tracking — an error spike, or slow/hot agent tool calls — users need a way to create a metric from that signal and keep monitoring it over time.

Current behavior

  • Error occurrence counts come from stored error events. Dropping or filtering events loses count fidelity (#116339).
  • Agent and tool activity is available as spans and product surfaces, but there is no path to pick a specific observed error or tool call and turn it into a metric for ongoing monitoring.
  • Existing "derived metrics" work is formula/equation composition over metrics already in the system (for example #106873, #112628), not creating a metric from something the user just observed.

Gap

  • Errors: after a spike or noisy issue, teams want to start tracking frequency as a metric without storing every full event or building custom instrumentation.
  • Agent monitoring: after seeing a specific tool call that is slow or frequent, teams want to create a metric from it and monitor that signal going forward.

Related: getsentry/sentry#116339 (per-issue event cap with keep-counting).

Requested by Colin Kawai.

--

View Junior Session [Sentry]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the current behavior and gap described in this issue, then compare the related work in #116339, #106873, and #112628. The issue does not name an implementation entry point or tests. Done means users can create a persistent metric from an observed error or agent/tool call and monitor it without storing every full event or adding custom instrumentation.

Written by the indexing model from the issue text.

Assessment

Domain
observability-sre
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.