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

Commit 958c9e3

Browse files
committed
Rename TagContext -> TagMap
1 parent 7f015e7 commit 958c9e3

File tree

1 file changed

+2
-2
lines changed
  • packages/opencensus-instrumentation-http/src

1 file changed

+2
-2
lines changed

packages/opencensus-instrumentation-http/src/http.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export class HttpPlugin extends BasePlugin {
219219
const host = headers.host || 'localhost';
220220
const userAgent =
221221
(headers['user-agent'] || headers['User-Agent']) as string;
222-
const tags = HttpPlugin.getTagContext(headers) || new TagMap();
222+
const tags = HttpPlugin.getTagMap(headers) || new TagMap();
223223

224224
rootSpan.addAttribute(
225225
HttpPlugin.ATTRIBUTE_HTTP_HOST,
@@ -538,7 +538,7 @@ export class HttpPlugin extends BasePlugin {
538538
* @param headers The incoming HTTP header object from which TagMap should be
539539
* retrieved.
540540
*/
541-
static getTagContext(headers: IncomingHttpHeaders): TagMap|null {
541+
static getTagMap(headers: IncomingHttpHeaders): TagMap|null {
542542
const contextValue = (headers[CORRELATION_CONTEXT.toLocaleLowerCase()] ||
543543
headers[CORRELATION_CONTEXT]) as string;
544544
// Entry doesn't exist.

0 commit comments

Comments
 (0)