Automatic Instrumentation
Learn what transactions are captured after tracing is enabled.
The Unity SDK automatically creates transactions for the game's startup and scene loading.
If you want the SDK to also generate spans for all Awake
calls during startup and scene operations, you can enable the following settings through the Editor Config Window or programmatically.
Copied
public override void Configure(SentryUnityOptions options)
{
options.AutoSceneLoadTraces = true;
options.AutoStartupTraces = true;
}
After you've configured your instrumentation, the Unity SDK will generate traces as shown in the image below.
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").