feat: auth metric and trace (#4063)

This commit is contained in:
X1a0t
2023-09-06 12:20:06 +08:00
committed by GitHub
parent d29514c995
commit ef3d3a34e2
9 changed files with 143 additions and 42 deletions
@@ -143,8 +143,8 @@ describe('Trace Reporter', () => {
const traceSpan = TraceReporter.createTraceSpan(
traceId,
spanId,
requestId,
startTime
startTime,
{ requestId }
);
expect(traceSpan.startTime).toBe(startTime);
expect(
@@ -152,7 +152,7 @@ describe('Trace Reporter', () => {
`projects/{GCP_PROJECT_ID}/traces/${traceId}/spans/${spanId}`
).toBe(true);
expect(traceSpan.spanId).toBe(spanId);
expect(traceSpan.attributes.attributeMap.requestId.stringValue.value).toBe(
expect(traceSpan.attributes.attributeMap.requestId?.stringValue.value).toBe(
requestId
);
});