@@ -202,7 +202,6 @@ def server_info
202
202
end
203
203
204
204
def init ( request )
205
- add_instrumentation_data ( method : Methods ::INITIALIZE )
206
205
{
207
206
protocolVersion : configuration . protocol_version ,
208
207
capabilities : capabilities ,
@@ -211,12 +210,10 @@ def init(request)
211
210
end
212
211
213
212
def list_tools ( request )
214
- add_instrumentation_data ( method : Methods ::TOOLS_LIST )
215
213
@tools . map { |_ , tool | tool . to_h }
216
214
end
217
215
218
216
def call_tool ( request )
219
- add_instrumentation_data ( method : Methods ::TOOLS_CALL )
220
217
tool_name = request [ :name ]
221
218
tool = tools [ tool_name ]
222
219
unless tool
@@ -250,12 +247,10 @@ def call_tool(request)
250
247
end
251
248
252
249
def list_prompts ( request )
253
- add_instrumentation_data ( method : Methods ::PROMPTS_LIST )
254
250
@prompts . map { |_ , prompt | prompt . to_h }
255
251
end
256
252
257
253
def get_prompt ( request )
258
- add_instrumentation_data ( method : Methods ::PROMPTS_GET )
259
254
prompt_name = request [ :name ]
260
255
prompt = @prompts [ prompt_name ]
261
256
unless prompt
@@ -272,21 +267,16 @@ def get_prompt(request)
272
267
end
273
268
274
269
def list_resources ( request )
275
- add_instrumentation_data ( method : Methods ::RESOURCES_LIST )
276
-
277
270
@resources . map ( &:to_h )
278
271
end
279
272
280
273
# Server implementation should set `resources_read_handler` to override no-op default
281
274
def read_resource_no_content ( request )
282
- add_instrumentation_data ( method : Methods ::RESOURCES_READ )
283
275
add_instrumentation_data ( resource_uri : request [ :uri ] )
284
276
[ ]
285
277
end
286
278
287
279
def list_resource_templates ( request )
288
- add_instrumentation_data ( method : Methods ::RESOURCES_TEMPLATES_LIST )
289
-
290
280
@resource_templates . map ( &:to_h )
291
281
end
292
282
0 commit comments