This repository was archived by the owner on Oct 3, 2023. It is now read-only.
File tree 1 file changed +4
-4
lines changed
packages/opencensus-instrumentation-http/src
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -265,9 +265,9 @@ export class HttpPlugin extends BasePlugin {
265
265
266
266
const requestUrl = request . url ? url . parse ( request . url ) : null ;
267
267
const host = headers . host || 'localhost' ;
268
- const userAgent = ( headers [ 'user-agent' ] ||
269
- headers [ 'User-Agent' ] ) as string ;
270
- const tags = HttpPlugin . getTagContext ( headers ) || new TagMap ( ) ;
268
+ const userAgent =
269
+ ( headers [ 'user-agent' ] || headers [ 'User-Agent' ] ) as string ;
270
+ const tags = HttpPlugin . getTagMap ( headers ) || new TagMap ( ) ;
271
271
272
272
rootSpan . addAttribute (
273
273
HttpPlugin . ATTRIBUTE_HTTP_HOST ,
@@ -625,7 +625,7 @@ export class HttpPlugin extends BasePlugin {
625
625
* @param headers The incoming HTTP header object from which TagMap should be
626
626
* retrieved.
627
627
*/
628
- static getTagContext ( headers : IncomingHttpHeaders ) : TagMap | null {
628
+ static getTagMap ( headers : IncomingHttpHeaders ) : TagMap | null {
629
629
const contextValue = ( headers [ CORRELATION_CONTEXT . toLocaleLowerCase ( ) ] ||
630
630
headers [ CORRELATION_CONTEXT ] ) as string ;
631
631
// Entry doesn't exist.
You can’t perform that action at this time.
0 commit comments