Skip to content

Commit 15c985b

Browse files
authored
chore: Update performance UI in editor (#2420)
1 parent 95f558c commit 15c985b

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

src/Sentry.Unity.Editor/ConfigurationWindow/CoreTab.cs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,10 @@ internal static void Display(ScriptableSentryUnityOptions options)
8888
"during scene loading. Requires Unity 2020.3 or newer."),
8989
options.AutoSceneLoadTraces);
9090

91-
EditorGUILayout.Space();
92-
93-
GUILayout.Label("Instrumentation through IL Weaving", EditorStyles.boldLabel);
94-
95-
EditorGUILayout.HelpBox("The SDK will modify the compiled assembly during a post build step " +
96-
"to create transaction and spans automatically.", MessageType.Info);
97-
9891
options.AutoAwakeTraces = EditorGUILayout.Toggle(
99-
new GUIContent("Awake Calls", "Whether the SDK automatically captures all instances " +
100-
"of Awake as Spans."),
92+
new GUIContent("Spans for Awake Calls", "Whether the SDK should automatically modify the compiled " +
93+
"assembly during a post build step to automatically " +
94+
"create spans for Awake calls."),
10195
options.AutoAwakeTraces);
10296

10397
EditorGUI.indentLevel--;

src/Sentry.Unity.Editor/ConfigurationWindow/LoggingTab.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ internal static void Display(ScriptableSentryUnityOptions options)
5252

5353
if (options.EnableStructuredLogging)
5454
{
55+
EditorGUILayout.LabelField("Note: With sending structured logs enabled you have to opt-into adding breadcrumbs to events.", EditorStyles.boldLabel);
56+
5557
options.AttachBreadcrumbsToEvents = EditorGUILayout.BeginToggleGroup(
5658
new GUIContent("Attach logs as breadcrumbs in addition to sending them as structured logs", "Whether the SDK should attach breadcrumbs to events in addition to structured logging."),
5759
options.AttachBreadcrumbsToEvents);
58-
59-
GUILayout.Label("Note: With sending structured logs enabled you have to opt-into adding breadcrumbs to events.", EditorStyles.boldLabel);
6060
}
6161

6262
EditorGUI.indentLevel++;
@@ -106,7 +106,7 @@ internal static void Display(ScriptableSentryUnityOptions options)
106106
"events. Refer to AttachStacktrace on sentry docs."),
107107
options.AttachStacktrace);
108108

109-
GUILayout.Label("Note: The stack trace quality will depend on the IL2CPP line number setting and might not contain line numbers.", EditorStyles.boldLabel);
109+
EditorGUILayout.LabelField("Note: The stack trace quality will depend on the IL2CPP line number setting and might not contain line numbers.", EditorStyles.boldLabel);
110110

111111
// Enhanced not supported on IL2CPP so not displaying this for the time being:
112112
// Options.StackTraceMode = (StackTraceMode) EditorGUILayout.EnumPopup(

0 commit comments

Comments
 (0)