Skip to content

Commit 7f49d54

Browse files
committed
Change options argument name in SentryInstrumentedFunction
1 parent a7bce63 commit 7f49d54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Sentry.Extensions.AI/SentryInstrumentedFunction.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace Sentry.Extensions.AI;
55

6-
internal sealed class SentryInstrumentedFunction(AIFunction innerFunction, ChatOptions? aiOptions = null)
6+
internal sealed class SentryInstrumentedFunction(AIFunction innerFunction, ChatOptions? options = null)
77
: DelegatingAIFunction(innerFunction)
88
{
99
private readonly HubAdapter _hub = HubAdapter.Instance;
@@ -18,7 +18,7 @@ internal sealed class SentryInstrumentedFunction(AIFunction innerFunction, ChatO
1818
_hub.StartSpan(operation, spanName) :
1919
SentryChatClient.RootSpan.StartChild(operation, spanName);
2020

21-
currSpan.SetData("gen_ai.request.model", aiOptions?.ModelId);
21+
currSpan.SetData("gen_ai.request.model", options?.ModelId);
2222

2323
currSpan.SetData("gen_ai.operation.name", "execute_tool");
2424
currSpan.SetData("gen_ai.tool.name", Name);

0 commit comments

Comments
 (0)