Skip to content

Commit bfbef7f

Browse files
committed
rename fn
1 parent fdb0059 commit bfbef7f

File tree

1 file changed

+2
-2
lines changed
  • packages/core/src/utils/anthropic-ai

1 file changed

+2
-2
lines changed

packages/core/src/utils/anthropic-ai/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ function addResponseAttributes(span: Span, response: AnthropicAiResponse, record
139139
/**
140140
* Get record options from the integration
141141
*/
142-
function getOptionsFromIntegration(): AnthropicAiOptions {
142+
function getRecordingOptionsFromIntegration(): AnthropicAiOptions {
143143
const scope = getCurrentScope();
144144
const client = scope.getClient();
145145
const integration = client?.getIntegrationByName(ANTHROPIC_AI_INTEGRATION_NAME) as AnthropicAiIntegration | undefined;
@@ -163,7 +163,7 @@ function instrumentMethod<T extends unknown[], R>(
163163
options?: AnthropicAiOptions,
164164
): (...args: T) => Promise<R> {
165165
return async function instrumentedMethod(...args: T): Promise<R> {
166-
const finalOptions = options || getOptionsFromIntegration();
166+
const finalOptions = options || getRecordingOptionsFromIntegration();
167167
const requestAttributes = extractRequestAttributes(args, methodPath);
168168
const model = requestAttributes[GEN_AI_REQUEST_MODEL_ATTRIBUTE] ?? 'unknown';
169169
const operationName = getFinalOperationName(methodPath);

0 commit comments

Comments
 (0)