Skip to content

Commit 1bb5629

Browse files
committed
Fix Capitalization in AI for SentryAIActivityListener
1 parent fc64d02 commit 1bb5629

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/Sentry.Extensions.AI/Extensions/SentryAIExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public static ChatOptions AddSentryToolInstrumentation(this ChatOptions options)
5252
/// <returns>The instrumented <see cref="IChatClient"/></returns>
5353
[Experimental(DiagnosticId.ExperimentalFeature)]
5454
public static IChatClient AddSentry(this IChatClient client, Action<SentryAIOptions>? configure = null) =>
55-
AddSentry(client, SentryAiActivityListener.Instance, configure);
55+
AddSentry(client, SentryAIActivityListener.Instance, configure);
5656

5757
/// <summary>
5858
/// Internal overload for testing

src/Sentry.Extensions.AI/SentryAiActivityListener.cs renamed to src/Sentry.Extensions.AI/SentryAIActivityListener.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace Sentry.Extensions.AI;
55
/// <summary>
66
/// Listens to FunctionInvokingChatClient's Activity
77
/// </summary>
8-
internal static class SentryAiActivityListener
8+
internal static class SentryAIActivityListener
99
{
1010
/// <summary>
1111
/// Singleton used outside of testing

test/Sentry.Extensions.AI.Tests/SentryAIActivityListenerTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public void Init_AddsActivityListenerToActivitySource()
2323
var source = SentryAIActivitySource.CreateSource();
2424

2525
// Act
26-
using var listener = SentryAiActivityListener.CreateListener(_fixture.Hub);
26+
using var listener = SentryAIActivityListener.CreateListener(_fixture.Hub);
2727

2828
// Assert
2929
Assert.True(source.HasListeners());
@@ -34,7 +34,7 @@ public void ShouldListenTo_ReturnsTrueForSentryActivitySource()
3434
{
3535
// Arrange
3636
var sourceName = SentryAIActivitySource.SentryActivitySourceName;
37-
using var listener = SentryAiActivityListener.CreateListener(_fixture.Hub);
37+
using var listener = SentryAIActivityListener.CreateListener(_fixture.Hub);
3838
var activitySource = new ActivitySource(sourceName);
3939

4040
// Act
@@ -54,7 +54,7 @@ public void ShouldListenTo_ReturnsTrueForSentryActivitySource()
5454
public void ShouldListenTo_ReturnsFalseForNonSentryActivitySource()
5555
{
5656
// Arrange
57-
using var listener = SentryAiActivityListener.CreateListener(_fixture.Hub);
57+
using var listener = SentryAIActivityListener.CreateListener(_fixture.Hub);
5858
var activitySource = new ActivitySource("Other.ActivitySource");
5959

6060
// Act & Assert
@@ -71,7 +71,7 @@ public void Sample_ReturnsAllDataAndRecordedForFICCActivityNames()
7171
{
7272
// Arrange
7373
var activityName = "orchestrate_tools";
74-
using var listener = SentryAiActivityListener.CreateListener(_fixture.Hub);
74+
using var listener = SentryAIActivityListener.CreateListener(_fixture.Hub);
7575
var source = SentryAIActivitySource.CreateSource();
7676

7777
// Act

test/Sentry.Extensions.AI.Tests/SentryAIExtensionsTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public void WithSentry_IChatClient_ReturnsWrappedClient()
2222
{
2323
// Arrange
2424
var mockClient = Substitute.For<IChatClient>();
25-
using var listener = SentryAiActivityListener.CreateListener(_fixture.Hub);
25+
using var listener = SentryAIActivityListener.CreateListener(_fixture.Hub);
2626

2727
// Act
2828
var result = mockClient.AddSentry(listener);
@@ -36,7 +36,7 @@ public void WithSentry_IChatClient_WithConfiguration_PassesConfigurationToWrappe
3636
{
3737
// Arrange
3838
var mockClient = Substitute.For<IChatClient>();
39-
using var listener = SentryAiActivityListener.CreateListener(_fixture.Hub);
39+
using var listener = SentryAIActivityListener.CreateListener(_fixture.Hub);
4040
var configureWasCalled = false;
4141

4242
// Act
@@ -58,7 +58,7 @@ public void WithSentry_IChatClient_WithNullConfiguration_UsesDefaultConfiguratio
5858
{
5959
// Arrange
6060
var mockClient = Substitute.For<IChatClient>();
61-
using var listener = SentryAiActivityListener.CreateListener(_fixture.Hub);
61+
using var listener = SentryAIActivityListener.CreateListener(_fixture.Hub);
6262

6363
// Act
6464
var result = mockClient.AddSentry(listener, null);

0 commit comments

Comments
 (0)