@@ -32,24 +32,24 @@ public async Task BasicOpenTelemetryTest()
32
32
33
33
client . Ping ( ) ;
34
34
35
- VerifyActivity ( oTelActivity , "ping" ) ;
35
+ VerifyActivity ( oTelActivity , "ping" , "HEAD" ) ;
36
36
37
37
await client . PingAsync ( ) ;
38
38
39
- VerifyActivity ( oTelActivity , "ping" ) ;
39
+ VerifyActivity ( oTelActivity , "ping" , "HEAD" ) ;
40
40
41
41
await client . SearchAsync < Project > ( s => s . Index ( "test" ) . Query ( q => q . MatchAll ( m => { } ) ) ) ;
42
42
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") ;
44
44
45
- static void VerifyActivity ( Activity oTelActivity , string operation , string url = null )
45
+ static void VerifyActivity ( Activity oTelActivity , string operation , string displayName , string url = null )
46
46
{
47
47
oTelActivity . Should ( ) . NotBeNull ( ) ;
48
48
49
49
oTelActivity . Kind . Should ( ) . Be ( ActivityKind . Client ) ;
50
50
51
- oTelActivity . DisplayName . Should ( ) . Be ( operation ) ;
52
51
oTelActivity . OperationName . Should ( ) . Be ( operation ) ;
52
+ oTelActivity . DisplayName . Should ( ) . Be ( displayName ) ;
53
53
54
54
oTelActivity . Tags . Should ( ) . Contain ( n => n . Key == "elastic.transport.product.name" && n . Value == "elasticsearch-net" ) ;
55
55
oTelActivity . Tags . Should ( ) . Contain ( n => n . Key == "db.system" && n . Value == "elasticsearch" ) ;
0 commit comments