Skip to content

feat: added span tree#86

Merged
MathurAditya724 merged 8 commits intomainfrom
feat/span-tree
Jan 28, 2026
Merged

feat: added span tree#86
MathurAditya724 merged 8 commits intomainfrom
feat/span-tree

Conversation

@MathurAditya724
Copy link
Copy Markdown
Member

Closes #83

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 27, 2026

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

Issue

  • Add workspace-scoped alias cache by BYK in #52
  • Add short ID aliases for multi-project support by BYK in #31

Other

  • (api) Align with gh api and curl conventions by BYK in #60
  • (auth) Add press 'c' to copy URL during login flow by betegon in #58
  • (commands) Rename get commands to view and add -w browser flag by BYK in #53
  • (install) Add install script served from docs site by betegon in #95
  • Added span tree by MathurAditya724 in #86
  • Added footer formatting function by MathurAditya724 in #71
  • Add explain and plan commands (Seer AI) by MathurAditya724 in #39
  • Add Sentry SDK for error tracking and usage telemetry by BYK in #63

Bug Fixes 🐛

Issue

  • Support short ID aliases in explain and plan commands by BYK in #74
  • Use correct fallback for unrecognized alias-suffix inputs by BYK in #72
  • Handle cross-org project slug collisions in alias generation by BYK in #62
  • Use org-scoped endpoint for latest event + enhanced display by betegon in #40

Other

  • (api) Use query params for --field with GET requests by BYK in #59
  • (install) Use correct download URL without 'v' prefix by betegon in #94
  • (telemetry) Patch Sentry SDK to prevent 3-second exit delay by BYK in #85

Documentation 📚

  • (agents) Update AGENTS.md to reflect current codebase by betegon in #93
  • (issue) Update list command tips to reference view instead of get by BYK in #73
  • (readme) Add installation section by betegon in #65
  • Add documentation website by betegon in #77
  • Update command references from 'get' to 'view' and document -w flag by BYK in #54

Internal Changes 🔧

  • (issue) Extract shared parameters for issue commands by BYK in #79
  • (release) Fix changelog-preview permissions by BYK in #41
  • Rename config folder from .sentry-cli-next to .sentry by BYK in #50

Other

  • test(e2e): use mock HTTP server instead of live API by BYK in #78

🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 27, 2026

Codecov Results 📊

✅ Patch coverage is 88.04%. Project has 1684 uncovered lines.
✅ Project coverage is 65.83%. Comparing base (base) to head (head).

Files with missing lines (22)
File Patch % Lines
human.ts 30.83% ⚠️ 673 Missing
resolve-target.ts 18.67% ⚠️ 257 Missing
oauth.ts 21.71% ⚠️ 202 Missing
resolver.ts 3.23% ⚠️ 120 Missing
errors.ts 5.94% ⚠️ 95 Missing
api-client.ts 68.77% ⚠️ 94 Missing
api.ts 89.78% ⚠️ 47 Missing
seer.ts 75.54% ⚠️ 45 Missing
errors.ts 73.17% ⚠️ 33 Missing
seer.ts 76.15% ⚠️ 31 Missing
preload.ts 39.02% ⚠️ 25 Missing
detector.ts 87.79% ⚠️ 16 Missing
cache.ts 76.27% ⚠️ 14 Missing
telemetry.ts 89.87% ⚠️ 8 Missing
config.ts 97.11% ⚠️ 7 Missing
index.ts 95.06% ⚠️ 4 Missing
colors.ts 91.84% ⚠️ 4 Missing
env-file.ts 97.17% ⚠️ 3 Missing
utils.ts 98.64% ⚠️ 2 Missing
alias.ts 98.56% ⚠️ 2 Missing
java.ts 97.22% ⚠️ 1 Missing
parser.ts 98.63% ⚠️ 1 Missing
Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    64.79%    65.83%    +1.04%
==========================================
  Files           39        39         —
  Lines         4723      4929      +206
  Branches         0         0         —
==========================================
+ Hits          3060      3245      +185
- Misses        1663      1684       +21
- Partials         0         0         —

Generated by Codecov Action

Copy link
Copy Markdown
Member

@BYK BYK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say you gotta run /deslop on this but other than that, good to go.

Comment on lines 424 to 428
issueId: string
): Promise<SentryEvent> {
return apiRequest<SentryEvent>(
`/organizations/${orgSlug}/issues/${issueId}/events/latest/`,
{
schema: SentryEventSchema,
}
`/organizations/${orgSlug}/issues/${issueId}/events/latest/`
);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The getLatestEvent function lacks schema validation for the API response, unlike similar functions, risking runtime errors from malformed data.
Severity: MEDIUM

Suggested Fix

Restore the schema validation by adding schema: SentryEventSchema to the apiRequest call within the getLatestEvent function. This will align it with the implementation of the getEvent function and ensure response integrity.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: src/lib/api-client.ts#L424-L428

Potential issue: The `getLatestEvent` function in `api-client.ts` has had its schema
validation removed. This is inconsistent with other high-level API methods in the file,
which use Zod schemas to ensure runtime safety. Without validation, if the Sentry API
returns a malformed response, such as one missing `dateCreated` or
`contexts.trace.trace_id`, the function will not fail fast. Instead, it will return
incomplete data. Downstream code in `src/commands/issue/view.ts`, which relies on these
properties for the `--spans` feature, may then fail silently or produce incorrect
output.

@MathurAditya724 MathurAditya724 merged commit b9afb2c into main Jan 28, 2026
20 checks passed
@MathurAditya724 MathurAditya724 deleted the feat/span-tree branch January 28, 2026 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show span tree in issue view and event view

2 participants