-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Unity): Auto Performance (#10072)
- Loading branch information
1 parent
e209462
commit 513bea4
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+9.01 KB
docs/platforms/unity/performance/instrumentation/auto-transaction-config.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions
25
docs/platforms/unity/performance/instrumentation/automatic-instrumentation.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Binary file added
BIN
+49.1 KB
docs/platforms/unity/performance/instrumentation/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.