Skip to content

Commit 4f26ed0

Browse files
committed
remove unnecessary comments
1 parent 3c37017 commit 4f26ed0

File tree

1 file changed

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

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ function addPrivateRequestAttributes(span: Span, params: Record<string, unknown>
9494
* @see https://docs.anthropic.com/en/api/errors#error-shapes
9595
*/
9696
function handleResponseError(span: Span, response: AnthropicAiResponse): void {
97-
// Check for standard error information in the response
9897
if (response.error) {
9998
const errorType = response.error.type || 'unknown_error';
10099
span.setStatus({ code: SPAN_STATUS_ERROR, message: errorType });
@@ -183,9 +182,8 @@ function addMetadataAttributes(span: Span, response: AnthropicAiResponse): void
183182

184183
/**
185184
* Add response attributes to spans
186-
* @internal Exported for testing
187185
*/
188-
export function addResponseAttributes(span: Span, response: AnthropicAiResponse, recordOutputs?: boolean): void {
186+
function addResponseAttributes(span: Span, response: AnthropicAiResponse, recordOutputs?: boolean): void {
189187
if (!response || typeof response !== 'object') return;
190188

191189
// capture error, do not add attributes if error (they shouldn't exist)

0 commit comments

Comments
 (0)