@@ -23,12 +23,12 @@ class HttpClientRequest {
2323
2424 // write(T header, final TraceId traceId, final String host)
2525 write ( traceId , agentInfo ) {
26- this . setHeader ( Header . traceId , traceId . toStringFormatted ( ) )
26+ this . setHeader ( Header . traceId , traceId . toStringDelimiterFormatted ( ) )
2727 this . setHeader ( Header . spanId , traceId . getSpanId ( ) )
2828 this . setHeader ( Header . parentSpanId , traceId . getParentSpanId ( ) )
2929 this . setHeader ( Header . flags , traceId . getFlags ( ) )
3030 this . setHeader ( Header . parentApplicationName , agentInfo . getApplicationName ( ) )
31- this . setHeader ( Header . parentApplicationType , agentInfo . getApplicationType ( ) )
31+ this . setHeader ( Header . parentApplicationType , agentInfo . getServiceType ( ) )
3232
3333 if ( this . host ) {
3434 this . setHeader ( Header . host , this . getHost ( ) )
@@ -39,17 +39,17 @@ class HttpClientRequest {
3939 this . request . setHeader ?. ( name , value )
4040 }
4141
42- getUrl ( ) {
43- return this . request . url
44- }
45-
4642 getHeader ( name ) {
4743 return this . request . getHeader ?. ( name )
4844 }
4945
5046 getHost ( ) {
5147 return this . host
5248 }
49+
50+ getUrlPathname ( ) {
51+ return new URL ( `${ this . request . protocol } //${ this . getHost ( ) } ${ this . request . path } ` ) . pathname
52+ }
5353}
5454
5555class HttpOutgoingRequestHeader {
@@ -59,7 +59,7 @@ class HttpOutgoingRequestHeader {
5959 }
6060
6161 getUrlPathname ( ) {
62- return new URL ( ` ${ this . getHost ( ) } ${ this . request . getUrl ( ) } ` ) . pathname
62+ return this . request . getUrlPathname ( )
6363 }
6464
6565 getHost ( ) {
0 commit comments