Skip to content

Commit 16612e2

Browse files
committed
Rename var
1 parent a3b587b commit 16612e2

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/utils/span-pointers.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { getSpanPointerAttributes } from "./span-pointers";
22
import { eventTypes } from "../trace/trigger";
3-
import { SPAN_LINK_KIND, S3_PTR_KIND, SPAN_POINTER_DIRECTION } from "dd-trace/packages/dd-trace/src/span_pointers";
3+
import { SPAN_LINK_POINTER_KIND, S3_PTR_KIND, SPAN_POINTER_DIRECTION } from "dd-trace/packages/dd-trace/src/span_pointers";
44
import * as spanPointers from "dd-trace/packages/dd-trace/src/span_pointers";
55

66
// Mock the external dependencies
@@ -52,7 +52,7 @@ describe("span-pointers utils", () => {
5252
"ptr.kind": S3_PTR_KIND,
5353
"ptr.dir": SPAN_POINTER_DIRECTION.UPSTREAM,
5454
"ptr.hash": mockS3PointerHash,
55-
"link.kind": SPAN_LINK_KIND,
55+
"link.kind": SPAN_LINK_POINTER_KIND,
5656
},
5757
];
5858

@@ -90,13 +90,13 @@ describe("span-pointers utils", () => {
9090
"ptr.kind": S3_PTR_KIND,
9191
"ptr.dir": SPAN_POINTER_DIRECTION.UPSTREAM,
9292
"ptr.hash": mockS3PointerHash,
93-
"link.kind": SPAN_LINK_KIND,
93+
"link.kind": SPAN_LINK_POINTER_KIND,
9494
},
9595
{
9696
"ptr.kind": S3_PTR_KIND,
9797
"ptr.dir": SPAN_POINTER_DIRECTION.UPSTREAM,
9898
"ptr.hash": mockS3PointerHash,
99-
"link.kind": SPAN_LINK_KIND,
99+
"link.kind": SPAN_LINK_POINTER_KIND,
100100
},
101101
];
102102

@@ -139,7 +139,7 @@ describe("span-pointers utils", () => {
139139
"ptr.kind": S3_PTR_KIND,
140140
"ptr.dir": SPAN_POINTER_DIRECTION.UPSTREAM,
141141
"ptr.hash": mockS3PointerHash,
142-
"link.kind": SPAN_LINK_KIND,
142+
"link.kind": SPAN_LINK_POINTER_KIND,
143143
},
144144
];
145145

src/utils/span-pointers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { eventTypes } from "../trace/trigger";
22
import { logDebug } from "./log";
33
import {
4-
SPAN_LINK_KIND,
4+
SPAN_LINK_POINTER_KIND,
55
S3_PTR_KIND,
66
SPAN_POINTER_DIRECTION,
77
generateS3PointerHash,
@@ -41,7 +41,7 @@ export function getSpanPointerAttributes(
4141
function processS3Event(event: any): SpanPointerAttributes[] {
4242
const records = event.Records || [];
4343
const spanPointerAttributesList = [];
44-
const linkKind = SPAN_LINK_KIND;
44+
const linkKind = SPAN_LINK_POINTER_KIND;
4545

4646
for (const record of records) {
4747
const eventName = record.eventName;

0 commit comments

Comments
 (0)