File tree Expand file tree Collapse file tree
plugins/sentry-cli/skills/sentry-cli/references Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,8 +57,18 @@ sentry explore my-org/cli -F span.op -F "p50(span.duration)" \
5757sentry explore my-org/cli -F span.op -F " count()" \
5858 --dataset spans --sort " -count()"
5959
60- # Custom metric aggregations
61- sentry explore my-org/cli -F transaction -F " avg(measurements.fcp)" \
60+ # Sum a custom metric (e.g., LLM token usage) across an org
61+ sentry explore my-org/ -F " sum(value,llm.token_usage,distribution,none)" \
62+ --dataset metrics --period 7d
63+
64+ # Break down by a tag column (e.g., model name)
65+ sentry explore my-org/seer -F gen_ai.request.model \
66+ -F " sum(value,llm.token_usage,distribution,none)" \
67+ --dataset metrics --period 7d
68+
69+ # Average a distribution metric
70+ sentry explore my-org/cli -F transaction \
71+ -F " avg(value,http.response_time,distribution,millisecond)" \
6272 --dataset metrics --period 24h
6373
6474# Log severity counts in the last hour
You can’t perform that action at this time.
0 commit comments