#Where to See Metrics?
11 messages · Page 1 of 1 (latest)
Hi - Where did you find that API - Generic metrics dont exist in Sentry
We support span based metrics
Learn how to use Sentry's Trace Explorer to search span data, find distributed traces, and debug performance issues across your entire application stack.
LLM :v
you guys have this documentation floating around that is slightly different, but which has same function and also seems to suggest one could use generic metrics if an appropriate backend is set up: https://develop.sentry.dev/backend/application-domains/metrics/#logging-backend
the code the LLM gave me "works" lol, that increment function is real, and debug output vaguely suggests the expected thing is happening. The code in the above documentation doesn't quite work because the import seems to be wrong/out-of-date
But anyways, yeah, so you guys don't have "non-telemetry" metrics that are just "literally count every time this happens when I say so" and then possibly connect an alarm to that, kind of like Cloud Watch Metrics?
Correct - You need to attach attributes to your spans or Logs (which is on open Beta) and we let you aggregate them without any cardinality constraints
Can you tell me a little more about using Logs for this use-case? Is it something like “alert based on count of all logs with this attr or tag”?
Thnx
Currently you can attach any attribute to your logs
We're working on the freely aggregate any log attribute and alert on it side of features - they're 3-4 weeks away
But here's an example from my testing org - I attach payment amount as a numeric attribute to the log and I can do a p90 of it
Cool thanks 👍
@mighty current hello, i did not get about generic metrics do not exist in sentry.
Can't i use this one: https://docs.sentry.io/platforms/javascript/metrics/#emit-a-gauge ?
Basically i was planning to use it instead of prometheus/grafana etc.
Now that sentry has support for logs, traces and metrics seems i no longer need grafana stack with loki, tempo etc...
Learn how to measure the data points you care about by configuring Metrics in your JavaScript app.