Skip to content

sentry logs: add --trace / --trace-id filter flag #317

@sentry-junior

Description

@sentry-junior

Summary

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions