You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
sentry logs: add --trace / --trace-id filter flag #317
Users should be able to filter logs by trace ID directly from the CLI via sentry logs --trace <id> (or --trace-id <id>). Currently navigating from a trace to its associated logs requires going through the UI or running a separate query manually.
Analysis
Current behavior: sentry logs does not accept a trace ID filter flag.
Gap: trace-centric workflows are common; users often start from a trace and want to inspect associated logs without leaving the CLI.
Direction: add --trace / --trace-id flag to sentry logs that scopes the query to the given trace ID; also consider sentry trace logs <id> as a subcommand alias for discoverability.
Concerns
Decide on flag name consistency: --trace vs --trace-id — pick one canonical form and alias the other.
This issue asks for sentry logs --trace <id> — better for log-first workflows where users want to narrow down by trace inline
Consider closing this issue as "covered" only if sentry trace logs is deemed sufficient UX and sentry logs --trace is intentionally skipped. Otherwise, both should land.
Activity
sentry-junior commentedon Mar 2, 2026
PR #311 (
feat(trace): add sentry trace logs subcommand) covers related ground — cross-linking for tracking.What #311 implements
sentry trace logs <trace-id>subcommand (not a flag onsentry logs)/organizations/{org}/trace-logs/endpoint — org-scoped, queries all projects automatically--period,--limit,--query,--web,--json<trace-id>,<org> <trace-id>,<org>/<trace-id>Gap analysis vs. this issue
sentry trace logs <id>subcommandsentry logs --trace <id>flagtracesubcommand existssentry logsworkflow/trace-logs/(trace-correlated)trace:filter--traceonsentry logsRecommendation
#311 is NOT a full resolution of this issue. The two are complementary:
sentry trace logssubcommand (#247) #311 givessentry trace logs <id>— good for trace-first workflowssentry logs --trace <id>— better for log-first workflows where users want to narrow down by trace inlineConsider closing this issue as "covered" only if
sentry trace logsis deemed sufficient UX andsentry logs --traceis intentionally skipped. Otherwise, both should land.feat(log-list): add --trace flag to filter logs by trace ID (#317)
feat(log-list): add --trace flag to filter logs by trace ID (#317)
feat(log-list): add --trace flag to filter logs by trace ID (#329)