Skip to content

Automatic transactions when a scene loads #235

Closed

Description

@bruno-garcia

If a tracing sampling rate is defined and higher than 0 (aka: Performance is enabled) we want to start transactions as a result to a scene being loaded.

docs.unity3d.com/ScriptReference/SceneManagement.SceneManager-sceneLoaded.html

If we can finish the transaction when scene finished loaded, we can use the waitForChildren option which exists in the iOS/Android/Flutter SDK and isn't documented yet on develop docs.

  • Create transaction when scene starts to load
  • Finish transaction on scene completes loading
  • When all child spans finish, capture the transaction (timestamp is adjusted here)
  • Document waitForChildren bahavior in the develop docs, and link to some example implementation

Activity

  1. changed the title [-]Capture transactions when a scene loads[/-] [+]Automatic transactions when a scene loads[/+] on May 9, 2022
  2. bitsandfoxes commented on Dec 12, 2024

    @bitsandfoxes
    Contributor

    The .NET SDK introduced support for idle transactions in getsentry/sentry-dotnet#2452

  3. bruno-garcia commented on Apr 10, 2025

    @bruno-garcia
    MemberAuthor

    don't we already have auto transaction when scene loads?

  4. bitsandfoxes commented on Nov 10, 2025

    @bitsandfoxes
    Contributor

    The SDK already provides automatic instrumentation for scene loads.

  5. added
    Spans
    and removed on Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureSpans

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions