Skip to content

feat(tracing): add child spans to Swift symbol aggregation#575

Merged
trevor-e merged 1 commit intomainfrom
telkins/add-swift-aggregator-spans
Mar 5, 2026
Merged

feat(tracing): add child spans to Swift symbol aggregation#575
trevor-e merged 1 commit intomainfrom
telkins/add-swift-aggregator-spans

Conversation

@trevor-e
Copy link
Member

@trevor-e trevor-e commented Mar 5, 2026

Add demangle and aggregate child spans inside SwiftSymbolTypeAggregator.aggregate_symbols to break down where time is spent during slow traces.

We observed traces where aggregate_symbols takes ~277s but had no visibility into whether the bottleneck is cwl-demangle subprocess calls or the in-memory grouping loop. These spans will show the split in the next trace so we can target the right optimization.

Span descriptions include symbol counts (e.g. "cwl_demangle 200000 symbols") for quick context.

🤖 Generated with Claude Code

Adds demangle and aggregate child spans inside
SwiftSymbolTypeAggregator.aggregate_symbols to identify where time is
spent during slow traces. The span descriptions include symbol counts
for additional context.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Contributor

@chromy chromy left a comment

Choose a reason for hiding this comment

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

lgtm

@trevor-e trevor-e merged commit 90667d1 into main Mar 5, 2026
21 checks passed
@trevor-e trevor-e deleted the telkins/add-swift-aggregator-spans branch March 5, 2026 18:07
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.

3 participants