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.

Select automatically generated transactions.

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.

Sample startup transaction.

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").