Skip to content

Commit ff4823e

Browse files
committed
fix lint
1 parent f73fdc6 commit ff4823e

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

packages/core/src/integrations/mcp-server/correlation.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
import { getClient } from '../../currentScopes';
77
import { withActiveSpan } from '../../tracing';
88
import type { Span } from '../../types-hoist/span';
9-
import { MCP_TOOL_RESULT_CONTENT_ATTRIBUTE, MCP_TOOL_RESULT_CONTENT_COUNT_ATTRIBUTE, MCP_TOOL_RESULT_IS_ERROR_ATTRIBUTE } from './attributes';
9+
import {
10+
MCP_TOOL_RESULT_CONTENT_ATTRIBUTE,
11+
MCP_TOOL_RESULT_CONTENT_COUNT_ATTRIBUTE,
12+
MCP_TOOL_RESULT_IS_ERROR_ATTRIBUTE,
13+
} from './attributes';
1014
import { captureError } from './errorCapture';
1115
import { filterMcpPiiFromSpanData } from './piiFiltering';
1216
import type { RequestId, SessionId } from './types';
@@ -81,7 +85,7 @@ export function completeSpanWithResults(requestId: RequestId, result: unknown):
8185
spanWithMethods.setAttributes(toolAttributes);
8286

8387
const isToolError = rawToolAttributes[MCP_TOOL_RESULT_IS_ERROR_ATTRIBUTE] === true;
84-
88+
8589
if (isToolError) {
8690
spanWithMethods.setStatus({
8791
code: 2, // ERROR

packages/core/src/integrations/mcp-server/errorCapture.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function captureError(error: Error, errorType?: string): void {
1515
try {
1616
const client = getClient();
1717
if (!client) {
18-
return
18+
return;
1919
}
2020

2121
captureException(error, {

packages/core/src/integrations/mcp-server/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export interface MCPTransport {
6969
/**
7070
* Error handler for transport errors
7171
*/
72-
onerror?: (error: Error) => void;
72+
onerror?: (error: Error) => void;
7373

7474
/**
7575
* Send method for outgoing messages

packages/core/test/lib/integrations/mcp-server/testUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ export function createMockSseTransport() {
6060
}
6161

6262
return new SSEServerTransport();
63-
}
63+
}

0 commit comments

Comments
 (0)