@@ -40,9 +40,9 @@ public async Task BasicOpenTelemetryTest()
4040
4141 await client . SearchAsync < Project > ( s => s . Index ( "test" ) . Query ( q => q . MatchAll ( m => { } ) ) ) ;
4242
43- VerifyActivity ( oTelActivity , "search" , "GET " , "http://localhost:9200/test/_search?pretty=true&error_trace=true" ) ;
43+ VerifyActivity ( oTelActivity , "search" , "POST " , "http://localhost:9200/test/_search?pretty=true&error_trace=true" ) ;
4444
45- static void VerifyActivity ( Activity oTelActivity , string operation , string displayName , string url = null )
45+ static void VerifyActivity ( Activity oTelActivity , string displayName , string operation , string url = null )
4646 {
4747 oTelActivity . Should ( ) . NotBeNull ( ) ;
4848
@@ -53,13 +53,13 @@ static void VerifyActivity(Activity oTelActivity, string operation, string displ
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" ) ;
56- oTelActivity . Tags . Should ( ) . Contain ( n => n . Key == "db.operation" && n . Value == operation ) ;
56+ oTelActivity . Tags . Should ( ) . Contain ( n => n . Key == "db.operation" && n . Value == displayName ) ;
5757 oTelActivity . Tags . Should ( ) . Contain ( n => n . Key == "db.user" && n . Value == "elastic" ) ;
5858 oTelActivity . Tags . Should ( ) . Contain ( n => n . Key == "url.full" && n . Value == ( url ?? "http://localhost:9200/?pretty=true&error_trace=true" ) ) ;
5959 oTelActivity . Tags . Should ( ) . Contain ( n => n . Key == "server.address" && n . Value == "localhost" ) ;
60- oTelActivity . Tags . Should ( ) . Contain ( n => n . Key == "http.request.method" && n . Value == ( operation == "ping" ? "HEAD" : "POST" ) ) ;
60+ oTelActivity . Tags . Should ( ) . Contain ( n => n . Key == "http.request.method" && n . Value == ( displayName == "ping" ? "HEAD" : "POST" ) ) ;
6161
62- switch ( operation )
62+ switch ( displayName )
6363 {
6464 case "search" :
6565 oTelActivity . Tags . Should ( ) . Contain ( n => n . Key == "db.elasticsearch.path_parts.index" && n . Value == "test" ) ;
0 commit comments