Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
Rename TagContext -> TagMap
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurkale22 committed Jun 7, 2019
1 parent 5b9283e commit 4bf8ba1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/opencensus-instrumentation-http/src/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,9 @@ export class HttpPlugin extends BasePlugin {

const requestUrl = request.url ? url.parse(request.url) : null;
const host = headers.host || 'localhost';
const userAgent = (headers['user-agent'] ||
headers['User-Agent']) as string;
const tags = HttpPlugin.getTagContext(headers) || new TagMap();
const userAgent =
(headers['user-agent'] || headers['User-Agent']) as string;
const tags = HttpPlugin.getTagMap(headers) || new TagMap();

rootSpan.addAttribute(
HttpPlugin.ATTRIBUTE_HTTP_HOST,
Expand Down Expand Up @@ -625,7 +625,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.
Expand Down

0 comments on commit 4bf8ba1

Please sign in to comment.