File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -664,8 +664,8 @@ modules:
664
664
As a result, in your application logs :
665
665
666
666
` ` `
667
- INF in calculator tool mcpRequestID=460aab37-e16e-4464-9956-54fce47746e7 mcpSessionID=8f617d54-e4c9-4459-bb26-76b4d96e2b72 mcpTransport=sse service=yokai-mcp spanID=0f536ffa84fb8800 system=mcpserver traceID=594a9585cbfd5362c03968cd6d7d786c
668
- INF MCP request success mcpLatency=4.869308ms mcpMethod=tools/call mcpRequest="..." mcpResponse="..." mcpRequestID=460aab37-e16e-4464-9956-54fce47746e7 mcpSessionID=8f617d54-e4c9-4459-bb26-76b4d96e2b72 mcpTool=calculator mcpTransport=sse service=yokai-mcp spanID=0f536ffa84fb8800 system=mcpserver traceID=594a9585cbfd5362c03968cd6d7d786c
667
+ INF in calculator tool mcpRequestID=460aab37-e16e-4464-9956-54fce47746e7 mcpSessionID=8f617d54-e4c9-4459-bb26-76b4d96e2b72 mcpTransport=streamable-http service=yokai-mcp spanID=0f536ffa84fb8800 system=mcpserver traceID=594a9585cbfd5362c03968cd6d7d786c
668
+ INF MCP request success mcpLatency=4.869308ms mcpMethod=tools/call mcpRequest="..." mcpResponse="..." mcpRequestID=460aab37-e16e-4464-9956-54fce47746e7 mcpSessionID=8f617d54-e4c9-4459-bb26-76b4d96e2b72 mcpTool=calculator mcpTransport=streamable-http service=yokai-mcp spanID=0f536ffa84fb8800 system=mcpserver traceID=594a9585cbfd5362c03968cd6d7d786c
669
669
` ` `
670
670
671
671
If both HTTP server logging and tracing are enabled, log records will automatically have the current `traceID` and `spanID` to be able to correlate logs and trace spans.
@@ -697,7 +697,7 @@ As a result, in your application trace spans attributes:
697
697
service.name: yokai-mcp
698
698
mcp.method: tools/call
699
699
mcp.tool: calculator
700
- mcp.transport: sse
700
+ mcp.transport: streamable-http
701
701
mcp.request: ...
702
702
mcp.response: ...
703
703
...
@@ -804,9 +804,6 @@ func TestMCPPing(t *testing.T) {
804
804
testClient, err := testServer.StartClient(context.Background())
805
805
assert.NoError(t, err)
806
806
807
- // close the test client once done
808
- defer testClient.Close()
809
-
810
807
// send MCP ping request
811
808
err = testClient.Ping(context.Background())
812
809
assert.NoError(t, err)
Original file line number Diff line number Diff line change @@ -745,9 +745,6 @@ func TestExample(t *testing.T) {
745
745
testClient, err := testServer.StartClient(context.Background())
746
746
assert.NoError(t, err)
747
747
748
- // close the test client once done
749
- defer testClient.Close()
750
-
751
748
// send MCP ping request
752
749
err = testClient.Ping(context.Background())
753
750
assert.NoError(t, err)
You can’t perform that action at this time.
0 commit comments