Skip to content

Commit 07a0111

Browse files
committed
Make Hub in ActivityListener volatile
1 parent 274f7e5 commit 07a0111

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Sentry.Extensions.AI/SentryAIActivityListener.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Sentry.Extensions.AI;
77
/// </summary>
88
internal static class SentryAIActivityListener
99
{
10-
private static IHub Hub = HubAdapter.Instance;
10+
private static volatile IHub Hub = HubAdapter.Instance;
1111

1212
/// <summary>
1313
/// Sentry's <see cref="ActivityListener"/> to tap into function invocation's Activity

0 commit comments

Comments
 (0)