@@ -32,24 +32,24 @@ public async Task BasicOpenTelemetryTest()
3232
3333 client . Ping ( ) ;
3434
35- VerifyActivity ( oTelActivity , "ping" ) ;
35+ VerifyActivity ( oTelActivity , "ping" , "HEAD" ) ;
3636
3737 await client . PingAsync ( ) ;
3838
39- VerifyActivity ( oTelActivity , "ping" ) ;
39+ VerifyActivity ( oTelActivity , "ping" , "HEAD" ) ;
4040
4141 await client . SearchAsync < Project > ( s => s . Index ( "test" ) . Query ( q => q . MatchAll ( m => { } ) ) ) ;
4242
43- VerifyActivity ( oTelActivity , "search" , "http://localhost:9200/test/_search?pretty=true&error_trace=true" ) ;
43+ VerifyActivity ( oTelActivity , "search" , "GET" , " http://localhost:9200/test/_search?pretty=true&error_trace=true") ;
4444
45- static void VerifyActivity ( Activity oTelActivity , string operation , string url = null )
45+ static void VerifyActivity ( Activity oTelActivity , string operation , string displayName , string url = null )
4646 {
4747 oTelActivity . Should ( ) . NotBeNull ( ) ;
4848
4949 oTelActivity . Kind . Should ( ) . Be ( ActivityKind . Client ) ;
5050
51- oTelActivity . DisplayName . Should ( ) . Be ( operation ) ;
5251 oTelActivity . OperationName . Should ( ) . Be ( operation ) ;
52+ oTelActivity . DisplayName . Should ( ) . Be ( displayName ) ;
5353
5454 oTelActivity . Tags . Should ( ) . Contain ( n => n . Key == "elastic.transport.product.name" && n . Value == "elasticsearch-net" ) ;
5555 oTelActivity . Tags . Should ( ) . Contain ( n => n . Key == "db.system" && n . Value == "elasticsearch" ) ;
0 commit comments