@@ -54,12 +54,12 @@ protected override void OnNext(string eventName, object arg)
5454 string operationName = _options . OperationNameResolver ( request ) ;
5555
5656 ISpan span = Tracer . BuildSpan ( operationName )
57- . WithTag ( Tags . SpanKind . Key , Tags . SpanKindClient )
58- . WithTag ( Tags . Component . Key , _options . ComponentName )
59- . WithTag ( Tags . HttpMethod . Key , request . Method . ToString ( ) )
60- . WithTag ( Tags . HttpUrl . Key , request . RequestUri . ToString ( ) )
61- . WithTag ( Tags . PeerHostname . Key , request . RequestUri . Host )
62- . WithTag ( Tags . PeerPort . Key , request . RequestUri . Port )
57+ . WithTag ( Tags . SpanKind , Tags . SpanKindClient )
58+ . WithTag ( Tags . Component , _options . ComponentName )
59+ . WithTag ( Tags . HttpMethod , request . Method . ToString ( ) )
60+ . WithTag ( Tags . HttpUrl , request . RequestUri . ToString ( ) )
61+ . WithTag ( Tags . PeerHostname , request . RequestUri . Host )
62+ . WithTag ( Tags . PeerPort , request . RequestUri . Port )
6363 . Start ( ) ;
6464
6565 _options . OnRequest ? . Invoke ( span , request ) ;
@@ -98,12 +98,12 @@ protected override void OnNext(string eventName, object arg)
9898
9999 if ( response != null )
100100 {
101- span . SetTag ( Tags . HttpStatus . Key , ( int ) response . StatusCode ) ;
101+ span . SetTag ( Tags . HttpStatus , ( int ) response . StatusCode ) ;
102102 }
103103
104104 if ( requestTaskStatus == TaskStatus . Canceled || requestTaskStatus == TaskStatus . Faulted )
105105 {
106- span . SetTag ( Tags . Error . Key , true ) ;
106+ span . SetTag ( Tags . Error , true ) ;
107107 }
108108
109109 span . Finish ( ) ;
0 commit comments