Skip to content

fix: Better auto-collapse logic#699

Merged
BYK merged 1 commit intomainfrom
uqoxwormomxk
Feb 6, 2025
Merged

fix: Better auto-collapse logic#699
BYK merged 1 commit intomainfrom
uqoxwormomxk

Conversation

@BYK
Copy link
Member

@BYK BYK commented Feb 6, 2025

No description provided.

@vercel
Copy link

vercel bot commented Feb 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
spotlightjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2025 10:39am

@codecov
Copy link

codecov bot commented Feb 6, 2025

Codecov Report

Attention: Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 31.79%. Comparing base (18bee4d) to head (910369b).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...entry/components/explore/traces/spans/SpanItem.tsx 0.00% 1 Missing ⚠️
packages/overlay/src/ui/SidePanel/SidePanel.tsx 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #699      +/-   ##
==========================================
+ Coverage   31.74%   31.79%   +0.05%     
==========================================
  Files          92       92              
  Lines        5803     5803              
  Branches      114      115       +1     
==========================================
+ Hits         1842     1845       +3     
+ Misses       3961     3958       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@BYK BYK merged commit e31e3da into main Feb 6, 2025
17 checks passed
BYK pushed a commit that referenced this pull request Feb 27, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and publish to npm
yourself or [setup this action to publish
automatically](https://github.com/changesets/action#with-publishing). If
you're not ready to do a release yet, that's fine, whenever you add more
changesets to main, this PR will be updated.


# Releases
## @spotlightjs/astro@3.0.0

### Major Changes

- Fix Astro v5 compatibility
([#706](#706))

Upgraded all Astro dependencies to v5+. This required suppressing Sentry
instrumentation on the sidecar when used
programmatically (unless explicitly passed `isStandalone: true`) to
prevent Spotlight spamming itself with
    transactions from the very sidecar instance that it is running.

BREAKING: We had to bump minimum required Astro version for the Astro
plugin to 4.7+ as we needed the new dev toolbar
    app APIs.

### Minor Changes

- # Add profile grafting into traces
([#692](#692))

With this change, Spotlight can now ingest v1 profiles and graft
profiling data into the trace view to fill in the
    gaps where span/trace instrumentation falls short.

    This feature is experimental.

Breaking change for `tsconfig`: It now targets ES2023 as we needed
`Array.findLastIndex()`

- Flatter tree view for deeply nested traces with 1 child at each level
    ([#686](#686))

### Patch Changes

- Sort envelopes from most recent to oldest
([#697](#697))

- Fix some typing issues in sentryDataCache
([#691](#691))

-   Fix span details modal resetting trace view tree state on close
    ([#701](#701))

- Fix some profile samples were not grouped and added to trace span list
for detail view
    ([#698](#698))

- Fix span details showing incorrect span start time
([#689](#689))

-   Fix rare error when `score.total` is missing from `measurements`
    ([#682](#682))

- Make things snappy by using Map() for trace span look ups
([#690](#690))

- Better auto collapsing logic for large or deep span trees
([#699](#699))

- Unify and simplify duration calculations and representations
([#688](#688))

-   Updated dependencies

\[[`4cde1351151520d576fa173485993f30a29a594a`](4cde135),

[`1ffe90f973618b8775753c257d3efc7c688de522`](1ffe90f),

[`dab431eccdeb751b0eecdd3a41bbb790011f0c52`](dab431e),

[`05e03c749892af0042f3cc4e3e15b85fd5dcdaac`](05e03c7),

[`18bee4d0a3c8ea7021866ed09855b3feee40c4c4`](18bee4d),

[`289a040d9cdfdf1a4ca65ed0e80aadb7adc36830`](289a040),

[`9c498dd3e358e6337ea0d8725bb6bf1b41a66233`](9c498dd),

[`52ceec528c4e293d92afc6567886b9ee9dcffc7a`](52ceec5),

[`002a1873dab737ffbe647dd608bb00b7bf6ab1a6`](002a187),

[`a6dee826c983fb1671930f8187ba98e033f291ff`](a6dee82),

[`e31e3da656d4c675845d4f736e93f350d6f8f687`](e31e3da),

[`0fcb37d5878568018038d237956426219bf64fc3`](0fcb37d)]:
    -   @spotlightjs/spotlight@2.11.0

## @spotlightjs/electron@1.5.0

### Minor Changes

- # Add profile grafting into traces
([#692](#692))

With this change, Spotlight can now ingest v1 profiles and graft
profiling data into the trace view to fill in the
    gaps where span/trace instrumentation falls short.

    This feature is experimental.

Breaking change for `tsconfig`: It now targets ES2023 as we needed
`Array.findLastIndex()`

- Flatter tree view for deeply nested traces with 1 child at each level
    ([#686](#686))

### Patch Changes

- Sort envelopes from most recent to oldest
([#697](#697))

- Fix some typing issues in sentryDataCache
([#691](#691))

-   Fix span details modal resetting trace view tree state on close
    ([#701](#701))

- Fix some profile samples were not grouped and added to trace span list
for detail view
    ([#698](#698))

- Fix span details showing incorrect span start time
([#689](#689))

-   Fix rare error when `score.total` is missing from `measurements`
    ([#682](#682))

- Fix Astro v5 compatibility
([#706](#706))

Upgraded all Astro dependencies to v5+. This required suppressing Sentry
instrumentation on the sidecar when used
programmatically (unless explicitly passed `isStandalone: true`) to
prevent Spotlight spamming itself with
    transactions from the very sidecar instance that it is running.

BREAKING: We had to bump minimum required Astro version for the Astro
plugin to 4.7+ as we needed the new dev toolbar
    app APIs.

- Make things snappy by using Map() for trace span look ups
([#690](#690))

- Better auto collapsing logic for large or deep span trees
([#699](#699))

- Unify and simplify duration calculations and representations
([#688](#688))

-   Updated dependencies

\[[`4cde1351151520d576fa173485993f30a29a594a`](4cde135),

[`1ffe90f973618b8775753c257d3efc7c688de522`](1ffe90f),

[`dab431eccdeb751b0eecdd3a41bbb790011f0c52`](dab431e),

[`05e03c749892af0042f3cc4e3e15b85fd5dcdaac`](05e03c7),

[`18bee4d0a3c8ea7021866ed09855b3feee40c4c4`](18bee4d),

[`289a040d9cdfdf1a4ca65ed0e80aadb7adc36830`](289a040),

[`9c498dd3e358e6337ea0d8725bb6bf1b41a66233`](9c498dd),

[`52ceec528c4e293d92afc6567886b9ee9dcffc7a`](52ceec5),

[`002a1873dab737ffbe647dd608bb00b7bf6ab1a6`](002a187),

[`a6dee826c983fb1671930f8187ba98e033f291ff`](a6dee82),

[`e31e3da656d4c675845d4f736e93f350d6f8f687`](e31e3da),

[`0fcb37d5878568018038d237956426219bf64fc3`](0fcb37d)]:
    -   @spotlightjs/overlay@2.12.0
    -   @spotlightjs/sidecar@1.11.2

## @spotlightjs/overlay@2.12.0

### Minor Changes

- # Add profile grafting into traces
([#692](#692))

With this change, Spotlight can now ingest v1 profiles and graft
profiling data into the trace view to fill in the
    gaps where span/trace instrumentation falls short.

    This feature is experimental.

Breaking change for `tsconfig`: It now targets ES2023 as we needed
`Array.findLastIndex()`

- Flatter tree view for deeply nested traces with 1 child at each level
    ([#686](#686))

### Patch Changes

- Sort envelopes from most recent to oldest
([#697](#697))

- Fix some typing issues in sentryDataCache
([#691](#691))

-   Fix span details modal resetting trace view tree state on close
    ([#701](#701))

- Fix some profile samples were not grouped and added to trace span list
for detail view
    ([#698](#698))

- Fix span details showing incorrect span start time
([#689](#689))

-   Fix rare error when `score.total` is missing from `measurements`
    ([#682](#682))

- Fix Astro v5 compatibility
([#706](#706))

Upgraded all Astro dependencies to v5+. This required suppressing Sentry
instrumentation on the sidecar when used
programmatically (unless explicitly passed `isStandalone: true`) to
prevent Spotlight spamming itself with
    transactions from the very sidecar instance that it is running.

BREAKING: We had to bump minimum required Astro version for the Astro
plugin to 4.7+ as we needed the new dev toolbar
    app APIs.

- Make things snappy by using Map() for trace span look ups
([#690](#690))

- Better auto collapsing logic for large or deep span trees
([#699](#699))

- Unify and simplify duration calculations and representations
([#688](#688))

## @spotlightjs/spotlight@2.11.0

### Minor Changes

- # Add profile grafting into traces
([#692](#692))

With this change, Spotlight can now ingest v1 profiles and graft
profiling data into the trace view to fill in the
    gaps where span/trace instrumentation falls short.

    This feature is experimental.

Breaking change for `tsconfig`: It now targets ES2023 as we needed
`Array.findLastIndex()`

- Flatter tree view for deeply nested traces with 1 child at each level
    ([#686](#686))

### Patch Changes

- Sort envelopes from most recent to oldest
([#697](#697))

- Fix some typing issues in sentryDataCache
([#691](#691))

-   Fix span details modal resetting trace view tree state on close
    ([#701](#701))

- Fix some profile samples were not grouped and added to trace span list
for detail view
    ([#698](#698))

- Fix span details showing incorrect span start time
([#689](#689))

-   Fix rare error when `score.total` is missing from `measurements`
    ([#682](#682))

- Fix Astro v5 compatibility
([#706](#706))

Upgraded all Astro dependencies to v5+. This required suppressing Sentry
instrumentation on the sidecar when used
programmatically (unless explicitly passed `isStandalone: true`) to
prevent Spotlight spamming itself with
    transactions from the very sidecar instance that it is running.

BREAKING: We had to bump minimum required Astro version for the Astro
plugin to 4.7+ as we needed the new dev toolbar
    app APIs.

- Make things snappy by using Map() for trace span look ups
([#690](#690))

- Better auto collapsing logic for large or deep span trees
([#699](#699))

- Unify and simplify duration calculations and representations
([#688](#688))

-   Updated dependencies

\[[`4cde1351151520d576fa173485993f30a29a594a`](4cde135),

[`1ffe90f973618b8775753c257d3efc7c688de522`](1ffe90f),

[`dab431eccdeb751b0eecdd3a41bbb790011f0c52`](dab431e),

[`05e03c749892af0042f3cc4e3e15b85fd5dcdaac`](05e03c7),

[`18bee4d0a3c8ea7021866ed09855b3feee40c4c4`](18bee4d),

[`289a040d9cdfdf1a4ca65ed0e80aadb7adc36830`](289a040),

[`9c498dd3e358e6337ea0d8725bb6bf1b41a66233`](9c498dd),

[`52ceec528c4e293d92afc6567886b9ee9dcffc7a`](52ceec5),

[`002a1873dab737ffbe647dd608bb00b7bf6ab1a6`](002a187),

[`a6dee826c983fb1671930f8187ba98e033f291ff`](a6dee82),

[`e31e3da656d4c675845d4f736e93f350d6f8f687`](e31e3da),

[`0fcb37d5878568018038d237956426219bf64fc3`](0fcb37d)]:
    -   @spotlightjs/overlay@2.12.0
    -   @spotlightjs/sidecar@1.11.2

## @spotlightjs/sidecar@1.11.2

### Patch Changes

- Fix Astro v5 compatibility
([#706](#706))

Upgraded all Astro dependencies to v5+. This required suppressing Sentry
instrumentation on the sidecar when used
programmatically (unless explicitly passed `isStandalone: true`) to
prevent Spotlight spamming itself with
    transactions from the very sidecar instance that it is running.

BREAKING: We had to bump minimum required Astro version for the Astro
plugin to 4.7+ as we needed the new dev toolbar
    app APIs.

## @spotlightjs/tsconfig@2.0.0

### Major Changes

- # Add profile grafting into traces
([#692](#692))

With this change, Spotlight can now ingest v1 profiles and graft
profiling data into the trace view to fill in the
    gaps where span/trace instrumentation falls short.

    This feature is experimental.

Breaking change for `tsconfig`: It now targets ES2023 as we needed
`Array.findLastIndex()`

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dcramer pushed a commit that referenced this pull request Jun 3, 2025
dcramer pushed a commit that referenced this pull request Jun 3, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and publish to npm
yourself or [setup this action to publish
automatically](https://github.com/changesets/action#with-publishing). If
you're not ready to do a release yet, that's fine, whenever you add more
changesets to main, this PR will be updated.


# Releases
## @spotlightjs/astro@3.0.0

### Major Changes

- Fix Astro v5 compatibility
([#706](#706))

Upgraded all Astro dependencies to v5+. This required suppressing Sentry
instrumentation on the sidecar when used
programmatically (unless explicitly passed `isStandalone: true`) to
prevent Spotlight spamming itself with
    transactions from the very sidecar instance that it is running.

BREAKING: We had to bump minimum required Astro version for the Astro
plugin to 4.7+ as we needed the new dev toolbar
    app APIs.

### Minor Changes

- # Add profile grafting into traces
([#692](#692))

With this change, Spotlight can now ingest v1 profiles and graft
profiling data into the trace view to fill in the
    gaps where span/trace instrumentation falls short.

    This feature is experimental.

Breaking change for `tsconfig`: It now targets ES2023 as we needed
`Array.findLastIndex()`

- Flatter tree view for deeply nested traces with 1 child at each level
    ([#686](#686))

### Patch Changes

- Sort envelopes from most recent to oldest
([#697](#697))

- Fix some typing issues in sentryDataCache
([#691](#691))

-   Fix span details modal resetting trace view tree state on close
    ([#701](#701))

- Fix some profile samples were not grouped and added to trace span list
for detail view
    ([#698](#698))

- Fix span details showing incorrect span start time
([#689](#689))

-   Fix rare error when `score.total` is missing from `measurements`
    ([#682](#682))

- Make things snappy by using Map() for trace span look ups
([#690](#690))

- Better auto collapsing logic for large or deep span trees
([#699](#699))

- Unify and simplify duration calculations and representations
([#688](#688))

-   Updated dependencies

\[[`4cde1351151520d576fa173485993f30a29a594a`](4cde135),

[`1ffe90f973618b8775753c257d3efc7c688de522`](1ffe90f),

[`dab431eccdeb751b0eecdd3a41bbb790011f0c52`](dab431e),

[`05e03c749892af0042f3cc4e3e15b85fd5dcdaac`](05e03c7),

[`18bee4d0a3c8ea7021866ed09855b3feee40c4c4`](18bee4d),

[`289a040d9cdfdf1a4ca65ed0e80aadb7adc36830`](289a040),

[`9c498dd3e358e6337ea0d8725bb6bf1b41a66233`](9c498dd),

[`52ceec528c4e293d92afc6567886b9ee9dcffc7a`](52ceec5),

[`002a1873dab737ffbe647dd608bb00b7bf6ab1a6`](002a187),

[`a6dee826c983fb1671930f8187ba98e033f291ff`](a6dee82),

[`e31e3da656d4c675845d4f736e93f350d6f8f687`](e31e3da),

[`0fcb37d5878568018038d237956426219bf64fc3`](0fcb37d)]:
    -   @spotlightjs/spotlight@2.11.0

## @spotlightjs/electron@1.5.0

### Minor Changes

- # Add profile grafting into traces
([#692](#692))

With this change, Spotlight can now ingest v1 profiles and graft
profiling data into the trace view to fill in the
    gaps where span/trace instrumentation falls short.

    This feature is experimental.

Breaking change for `tsconfig`: It now targets ES2023 as we needed
`Array.findLastIndex()`

- Flatter tree view for deeply nested traces with 1 child at each level
    ([#686](#686))

### Patch Changes

- Sort envelopes from most recent to oldest
([#697](#697))

- Fix some typing issues in sentryDataCache
([#691](#691))

-   Fix span details modal resetting trace view tree state on close
    ([#701](#701))

- Fix some profile samples were not grouped and added to trace span list
for detail view
    ([#698](#698))

- Fix span details showing incorrect span start time
([#689](#689))

-   Fix rare error when `score.total` is missing from `measurements`
    ([#682](#682))

- Fix Astro v5 compatibility
([#706](#706))

Upgraded all Astro dependencies to v5+. This required suppressing Sentry
instrumentation on the sidecar when used
programmatically (unless explicitly passed `isStandalone: true`) to
prevent Spotlight spamming itself with
    transactions from the very sidecar instance that it is running.

BREAKING: We had to bump minimum required Astro version for the Astro
plugin to 4.7+ as we needed the new dev toolbar
    app APIs.

- Make things snappy by using Map() for trace span look ups
([#690](#690))

- Better auto collapsing logic for large or deep span trees
([#699](#699))

- Unify and simplify duration calculations and representations
([#688](#688))

-   Updated dependencies

\[[`4cde1351151520d576fa173485993f30a29a594a`](4cde135),

[`1ffe90f973618b8775753c257d3efc7c688de522`](1ffe90f),

[`dab431eccdeb751b0eecdd3a41bbb790011f0c52`](dab431e),

[`05e03c749892af0042f3cc4e3e15b85fd5dcdaac`](05e03c7),

[`18bee4d0a3c8ea7021866ed09855b3feee40c4c4`](18bee4d),

[`289a040d9cdfdf1a4ca65ed0e80aadb7adc36830`](289a040),

[`9c498dd3e358e6337ea0d8725bb6bf1b41a66233`](9c498dd),

[`52ceec528c4e293d92afc6567886b9ee9dcffc7a`](52ceec5),

[`002a1873dab737ffbe647dd608bb00b7bf6ab1a6`](002a187),

[`a6dee826c983fb1671930f8187ba98e033f291ff`](a6dee82),

[`e31e3da656d4c675845d4f736e93f350d6f8f687`](e31e3da),

[`0fcb37d5878568018038d237956426219bf64fc3`](0fcb37d)]:
    -   @spotlightjs/overlay@2.12.0
    -   @spotlightjs/sidecar@1.11.2

## @spotlightjs/overlay@2.12.0

### Minor Changes

- # Add profile grafting into traces
([#692](#692))

With this change, Spotlight can now ingest v1 profiles and graft
profiling data into the trace view to fill in the
    gaps where span/trace instrumentation falls short.

    This feature is experimental.

Breaking change for `tsconfig`: It now targets ES2023 as we needed
`Array.findLastIndex()`

- Flatter tree view for deeply nested traces with 1 child at each level
    ([#686](#686))

### Patch Changes

- Sort envelopes from most recent to oldest
([#697](#697))

- Fix some typing issues in sentryDataCache
([#691](#691))

-   Fix span details modal resetting trace view tree state on close
    ([#701](#701))

- Fix some profile samples were not grouped and added to trace span list
for detail view
    ([#698](#698))

- Fix span details showing incorrect span start time
([#689](#689))

-   Fix rare error when `score.total` is missing from `measurements`
    ([#682](#682))

- Fix Astro v5 compatibility
([#706](#706))

Upgraded all Astro dependencies to v5+. This required suppressing Sentry
instrumentation on the sidecar when used
programmatically (unless explicitly passed `isStandalone: true`) to
prevent Spotlight spamming itself with
    transactions from the very sidecar instance that it is running.

BREAKING: We had to bump minimum required Astro version for the Astro
plugin to 4.7+ as we needed the new dev toolbar
    app APIs.

- Make things snappy by using Map() for trace span look ups
([#690](#690))

- Better auto collapsing logic for large or deep span trees
([#699](#699))

- Unify and simplify duration calculations and representations
([#688](#688))

## @spotlightjs/spotlight@2.11.0

### Minor Changes

- # Add profile grafting into traces
([#692](#692))

With this change, Spotlight can now ingest v1 profiles and graft
profiling data into the trace view to fill in the
    gaps where span/trace instrumentation falls short.

    This feature is experimental.

Breaking change for `tsconfig`: It now targets ES2023 as we needed
`Array.findLastIndex()`

- Flatter tree view for deeply nested traces with 1 child at each level
    ([#686](#686))

### Patch Changes

- Sort envelopes from most recent to oldest
([#697](#697))

- Fix some typing issues in sentryDataCache
([#691](#691))

-   Fix span details modal resetting trace view tree state on close
    ([#701](#701))

- Fix some profile samples were not grouped and added to trace span list
for detail view
    ([#698](#698))

- Fix span details showing incorrect span start time
([#689](#689))

-   Fix rare error when `score.total` is missing from `measurements`
    ([#682](#682))

- Fix Astro v5 compatibility
([#706](#706))

Upgraded all Astro dependencies to v5+. This required suppressing Sentry
instrumentation on the sidecar when used
programmatically (unless explicitly passed `isStandalone: true`) to
prevent Spotlight spamming itself with
    transactions from the very sidecar instance that it is running.

BREAKING: We had to bump minimum required Astro version for the Astro
plugin to 4.7+ as we needed the new dev toolbar
    app APIs.

- Make things snappy by using Map() for trace span look ups
([#690](#690))

- Better auto collapsing logic for large or deep span trees
([#699](#699))

- Unify and simplify duration calculations and representations
([#688](#688))

-   Updated dependencies

\[[`4cde1351151520d576fa173485993f30a29a594a`](4cde135),

[`1ffe90f973618b8775753c257d3efc7c688de522`](1ffe90f),

[`dab431eccdeb751b0eecdd3a41bbb790011f0c52`](dab431e),

[`05e03c749892af0042f3cc4e3e15b85fd5dcdaac`](05e03c7),

[`18bee4d0a3c8ea7021866ed09855b3feee40c4c4`](18bee4d),

[`289a040d9cdfdf1a4ca65ed0e80aadb7adc36830`](289a040),

[`9c498dd3e358e6337ea0d8725bb6bf1b41a66233`](9c498dd),

[`52ceec528c4e293d92afc6567886b9ee9dcffc7a`](52ceec5),

[`002a1873dab737ffbe647dd608bb00b7bf6ab1a6`](002a187),

[`a6dee826c983fb1671930f8187ba98e033f291ff`](a6dee82),

[`e31e3da656d4c675845d4f736e93f350d6f8f687`](e31e3da),

[`0fcb37d5878568018038d237956426219bf64fc3`](0fcb37d)]:
    -   @spotlightjs/overlay@2.12.0
    -   @spotlightjs/sidecar@1.11.2

## @spotlightjs/sidecar@1.11.2

### Patch Changes

- Fix Astro v5 compatibility
([#706](#706))

Upgraded all Astro dependencies to v5+. This required suppressing Sentry
instrumentation on the sidecar when used
programmatically (unless explicitly passed `isStandalone: true`) to
prevent Spotlight spamming itself with
    transactions from the very sidecar instance that it is running.

BREAKING: We had to bump minimum required Astro version for the Astro
plugin to 4.7+ as we needed the new dev toolbar
    app APIs.

## @spotlightjs/tsconfig@2.0.0

### Major Changes

- # Add profile grafting into traces
([#692](#692))

With this change, Spotlight can now ingest v1 profiles and graft
profiling data into the trace view to fill in the
    gaps where span/trace instrumentation falls short.

    This feature is experimental.

Breaking change for `tsconfig`: It now targets ES2023 as we needed
`Array.findLastIndex()`

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

1 participant