From 958c9e394d8f44e19f93267c3a1ff18420dffd30 Mon Sep 17 00:00:00 2001 From: Mayur Kale Date: Fri, 31 May 2019 10:38:52 -0700 Subject: [PATCH] Rename TagContext -> TagMap --- packages/opencensus-instrumentation-http/src/http.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/opencensus-instrumentation-http/src/http.ts b/packages/opencensus-instrumentation-http/src/http.ts index 73bf55086..8f3a79d79 100644 --- a/packages/opencensus-instrumentation-http/src/http.ts +++ b/packages/opencensus-instrumentation-http/src/http.ts @@ -219,7 +219,7 @@ export class HttpPlugin extends BasePlugin { const host = headers.host || 'localhost'; const userAgent = (headers['user-agent'] || headers['User-Agent']) as string; - const tags = HttpPlugin.getTagContext(headers) || new TagMap(); + const tags = HttpPlugin.getTagMap(headers) || new TagMap(); rootSpan.addAttribute( HttpPlugin.ATTRIBUTE_HTTP_HOST, @@ -538,7 +538,7 @@ export class HttpPlugin extends BasePlugin { * @param headers The incoming HTTP header object from which TagMap should be * retrieved. */ - static getTagContext(headers: IncomingHttpHeaders): TagMap|null { + static getTagMap(headers: IncomingHttpHeaders): TagMap|null { const contextValue = (headers[CORRELATION_CONTEXT.toLocaleLowerCase()] || headers[CORRELATION_CONTEXT]) as string; // Entry doesn't exist.