Skip to content

Commit

Permalink
feat(Unity): Auto Performance (#10072)
Browse files Browse the repository at this point in the history
  • Loading branch information
bitsandfoxes authored May 21, 2024
1 parent e209462 commit 513bea4
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: Automatic Instrumentation
description: "Learn what transactions are captured after tracing is enabled."
sidebar_order: 20
---

## Automatically Captured Transactions

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 <Link to="/platforms/unity/configuration/options/#programmatic-configuration">programmatically</Link>.

![Select automatically generated transactions.](./auto-transaction-config.png)

```csharp
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.](./startup-transaction.png)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 513bea4

Please sign in to comment.