Skip to content

feat(core): Make ISpan startChild SpanOptions overloads public - #5927

Merged
romtsn merged 2 commits into
mainfrom
feat/public-ispan-startchild-spanoptions
Aug 11, 2026
Merged

feat(core): Make ISpan startChild SpanOptions overloads public#5927
romtsn merged 2 commits into
mainfrom
feat/public-ispan-startchild-spanoptions

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

📜 Description

Remove @ApiStatus.Internal from these ISpan overloads:

  • startChild(operation, description, spanOptions)
  • startChild(spanContext, spanOptions)

Add public Javadoc for both. Implementations are unchanged.

💡 Motivation and Context

Callers that only have an ISpan (for example Sentry.getExtendedAppStartSpan()) need a stable public way to start a child with an explicit start timestamp. SpanOptions is already public and supports setStartTimestamp. Making these overloads public closes that gap without promoting the Instrumenter overloads.

Fixes #5896

💚 How did you test it?

  • :sentry:spotlessJavaApply
  • :sentry:apiDump (no binary API signature change; annotation-only)

📝 Checklist

  • I added GH Issue ID & Linear ID
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

🔮 Next steps

Requested by Roman Zavarnitsyn.

--

View Junior Session [Sentry]

sentry-junior Bot and others added 2 commits August 10, 2026 20:50
Unmark the SpanOptions-based startChild overloads on ISpan so callers
can set an explicit start timestamp without using internal API.

Co-Authored-By: Roman Zavarnitsyn <roman.zavarnitsyn@sentry.io>
Co-Authored-By: Roman Zavarnitsyn <roman.zavarnitsyn@sentry.io>
@github-actions

github-actions Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 2a474f6

@sentry

sentry Bot commented Aug 10, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.52.0 (1) release

⚙️ sentry-android Build Distribution Settings

@github-actions

Copy link
Copy Markdown
Contributor

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 315.67 ms 359.66 ms 43.99 ms
Size 0 B 0 B 0 B

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
6b019b7 343.31 ms 417.23 ms 73.91 ms
d15471f 286.65 ms 314.68 ms 28.03 ms
d217708 409.83 ms 474.72 ms 64.89 ms
d500866 326.13 ms 378.70 ms 52.58 ms
fcec2f2 314.96 ms 373.66 ms 58.70 ms
d501a7e 314.55 ms 343.34 ms 28.79 ms
7414e9b 322.49 ms 378.88 ms 56.39 ms
fcec2f2 357.47 ms 447.32 ms 89.85 ms
a416a65 316.52 ms 359.67 ms 43.15 ms
983e0f0 350.64 ms 386.44 ms 35.79 ms

App size

Revision Plain With Sentry Diff
6b019b7 0 B 0 B 0 B
d15471f 1.58 MiB 2.13 MiB 559.54 KiB
d217708 1.58 MiB 2.10 MiB 532.97 KiB
d500866 0 B 0 B 0 B
fcec2f2 1.58 MiB 2.12 MiB 551.50 KiB
d501a7e 0 B 0 B 0 B
7414e9b 0 B 0 B 0 B
fcec2f2 1.58 MiB 2.12 MiB 551.50 KiB
a416a65 1.58 MiB 2.12 MiB 555.26 KiB
983e0f0 0 B 0 B 0 B

@romtsn
romtsn marked this pull request as ready for review August 10, 2026 23:04
@romtsn romtsn added the ship-it PR is ready to merge from a reviewer perspective label Aug 11, 2026
@romtsn
romtsn enabled auto-merge (squash) August 11, 2026 08:21

@adinauer adinauer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@romtsn
romtsn merged commit 69ee9eb into main Aug 11, 2026
72 of 73 checks passed
@romtsn
romtsn deleted the feat/public-ispan-startchild-spanoptions branch August 11, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ship-it PR is ready to merge from a reviewer perspective

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Public ISpan.startChild with start timestamp

2 participants