Skip to content

Automatic transactions when a scene loads #235

@bruno-garcia

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions