playwright-opentelemetry 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fixture.cjs +1 -1
- package/dist/fixture.d.cts +2 -2
- package/dist/fixture.d.mts +2 -2
- package/dist/fixture.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{reporter-DaCojFom.d.cts → reporter-CLzdtg6G.d.cts} +25 -1
- package/dist/{reporter-DaCojFom.d.mts → reporter-CLzdtg6G.d.mts} +25 -1
- package/dist/{reporter-CWAovnMj.mjs → reporter-CMGLSTHi.mjs} +7 -37
- package/dist/{reporter-DMlPQnrW.cjs → reporter-Dnqohjyo.cjs} +7 -37
- package/dist/reporter.cjs +1 -1
- package/dist/reporter.d.cts +1 -1
- package/dist/reporter.d.mts +1 -1
- package/dist/reporter.mjs +1 -1
- package/dist/{screenshots-zip-DXk2R8_S.mjs → screenshots-zip-BzI9Jpan.mjs} +1 -1
- package/dist/{screenshots-zip-B07U2DaB.cjs → screenshots-zip-C3N3xvp7.cjs} +1 -1
- package/package.json +1 -1
- package/dist/otel-D0ztpic2.d.cts +0 -25
- package/dist/otel-D0ztpic2.d.mts +0 -25
- /package/dist/{config-DFY22ysa.d.cts → index-DFY22ysa.d.cts} +0 -0
- /package/dist/{config-DFY22ysa.d.mts → index-DFY22ysa.d.mts} +0 -0
package/dist/fixture.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_screenshots_zip = require("./screenshots-zip-
|
|
2
|
+
const require_screenshots_zip = require("./screenshots-zip-C3N3xvp7.cjs");
|
|
3
3
|
let node_fs_promises = require("node:fs/promises");
|
|
4
4
|
node_fs_promises = require_screenshots_zip.__toESM(node_fs_promises, 1);
|
|
5
5
|
let node_path = require("node:path");
|
package/dist/fixture.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as
|
|
1
|
+
import { n as Span, r as SpanEvent } from "./reporter-CLzdtg6G.cjs";
|
|
2
|
+
import { i as PlaywrightTraceOption, n as PlaywrightOpentelemetryDestination, r as PlaywrightOpentelemetryUseOptions, t as PlaywrightOpentelemetryConfig } from "./index-DFY22ysa.cjs";
|
|
3
3
|
import { BrowserContext, ConsoleMessage, Page, Request } from "@playwright/test";
|
|
4
4
|
export * from "@playwright/test";
|
|
5
5
|
|
package/dist/fixture.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as
|
|
1
|
+
import { n as Span, r as SpanEvent } from "./reporter-CLzdtg6G.mjs";
|
|
2
|
+
import { i as PlaywrightTraceOption, n as PlaywrightOpentelemetryDestination, r as PlaywrightOpentelemetryUseOptions, t as PlaywrightOpentelemetryConfig } from "./index-DFY22ysa.mjs";
|
|
3
3
|
import { BrowserContext, ConsoleMessage, Page, Request } from "@playwright/test";
|
|
4
4
|
export * from "@playwright/test";
|
|
5
5
|
|
package/dist/fixture.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as supportsScreencastScreenshots, d as flushFixtureSpans, f as registerExpectedTrace, h as filterRetainedDestinations, m as shouldRetainPlaywrightTrace, o as resolvePlaywrightOpentelemetryConfig, p as couldRetainPlaywrightTrace, r as createScreenshotsZip, s as BROWSER_SERVICE_NAME, t as SCREENSHOTS_ATTACHMENT_NAME, u as createTestTraceContext, y as generateSpanId } from "./screenshots-zip-
|
|
1
|
+
import { a as supportsScreencastScreenshots, d as flushFixtureSpans, f as registerExpectedTrace, h as filterRetainedDestinations, m as shouldRetainPlaywrightTrace, o as resolvePlaywrightOpentelemetryConfig, p as couldRetainPlaywrightTrace, r as createScreenshotsZip, s as BROWSER_SERVICE_NAME, t as SCREENSHOTS_ATTACHMENT_NAME, u as createTestTraceContext, y as generateSpanId } from "./screenshots-zip-BzI9Jpan.mjs";
|
|
2
2
|
import fs from "node:fs/promises";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { test as test$1 } from "@playwright/test";
|
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
1
|
+
import { t as PlaywrightOpentelemetryReporter } from "./reporter-CLzdtg6G.cjs";
|
|
2
|
+
import { i as PlaywrightTraceOption, n as PlaywrightOpentelemetryDestination, r as PlaywrightOpentelemetryUseOptions, t as PlaywrightOpentelemetryConfig } from "./index-DFY22ysa.cjs";
|
|
3
3
|
export { type PlaywrightOpentelemetryConfig, type PlaywrightOpentelemetryDestination, type PlaywrightOpentelemetryUseOptions, type PlaywrightTraceOption, PlaywrightOpentelemetryReporter as default };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
1
|
+
import { t as PlaywrightOpentelemetryReporter } from "./reporter-CLzdtg6G.mjs";
|
|
2
|
+
import { i as PlaywrightTraceOption, n as PlaywrightOpentelemetryDestination, r as PlaywrightOpentelemetryUseOptions, t as PlaywrightOpentelemetryConfig } from "./index-DFY22ysa.mjs";
|
|
3
3
|
export { type PlaywrightOpentelemetryConfig, type PlaywrightOpentelemetryDestination, type PlaywrightOpentelemetryUseOptions, type PlaywrightTraceOption, PlaywrightOpentelemetryReporter as default };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
import { FullConfig, FullResult, Reporter, Suite, TestCase, TestResult, TestStep } from "@playwright/test/reporter";
|
|
2
2
|
|
|
3
|
+
//#region src/shared/otel.d.ts
|
|
4
|
+
type SpanAttributeValue = string | number | boolean | string[];
|
|
5
|
+
type SpanEvent = {
|
|
6
|
+
name: string;
|
|
7
|
+
time: Date;
|
|
8
|
+
attributes?: Record<string, SpanAttributeValue>;
|
|
9
|
+
};
|
|
10
|
+
type Span = {
|
|
11
|
+
traceId: string;
|
|
12
|
+
spanId: string;
|
|
13
|
+
parentSpanId?: string;
|
|
14
|
+
name: string;
|
|
15
|
+
startTime: Date;
|
|
16
|
+
endTime: Date;
|
|
17
|
+
attributes: Record<string, SpanAttributeValue>;
|
|
18
|
+
events?: SpanEvent[];
|
|
19
|
+
status?: {
|
|
20
|
+
code: number;
|
|
21
|
+
message?: string;
|
|
22
|
+
};
|
|
23
|
+
kind?: number; /** Service name for this span (if different from default). */
|
|
24
|
+
serviceName?: string;
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
3
27
|
//#region src/reporter/reporter.d.ts
|
|
4
28
|
declare class PlaywrightOpentelemetryReporter implements Reporter {
|
|
5
29
|
private spanBatches;
|
|
@@ -22,4 +46,4 @@ declare class PlaywrightOpentelemetryReporter implements Reporter {
|
|
|
22
46
|
private sendScreenshotsZipToTraceApi;
|
|
23
47
|
}
|
|
24
48
|
//#endregion
|
|
25
|
-
export { PlaywrightOpentelemetryReporter as t };
|
|
49
|
+
export { Span as n, SpanEvent as r, PlaywrightOpentelemetryReporter as t };
|
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
import { FullConfig, FullResult, Reporter, Suite, TestCase, TestResult, TestStep } from "@playwright/test/reporter";
|
|
2
2
|
|
|
3
|
+
//#region src/shared/otel.d.ts
|
|
4
|
+
type SpanAttributeValue = string | number | boolean | string[];
|
|
5
|
+
type SpanEvent = {
|
|
6
|
+
name: string;
|
|
7
|
+
time: Date;
|
|
8
|
+
attributes?: Record<string, SpanAttributeValue>;
|
|
9
|
+
};
|
|
10
|
+
type Span = {
|
|
11
|
+
traceId: string;
|
|
12
|
+
spanId: string;
|
|
13
|
+
parentSpanId?: string;
|
|
14
|
+
name: string;
|
|
15
|
+
startTime: Date;
|
|
16
|
+
endTime: Date;
|
|
17
|
+
attributes: Record<string, SpanAttributeValue>;
|
|
18
|
+
events?: SpanEvent[];
|
|
19
|
+
status?: {
|
|
20
|
+
code: number;
|
|
21
|
+
message?: string;
|
|
22
|
+
};
|
|
23
|
+
kind?: number; /** Service name for this span (if different from default). */
|
|
24
|
+
serviceName?: string;
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
3
27
|
//#region src/reporter/reporter.d.ts
|
|
4
28
|
declare class PlaywrightOpentelemetryReporter implements Reporter {
|
|
5
29
|
private spanBatches;
|
|
@@ -22,4 +46,4 @@ declare class PlaywrightOpentelemetryReporter implements Reporter {
|
|
|
22
46
|
private sendScreenshotsZipToTraceApi;
|
|
23
47
|
}
|
|
24
48
|
//#endregion
|
|
25
|
-
export { PlaywrightOpentelemetryReporter as t };
|
|
49
|
+
export { Span as n, SpanEvent as r, PlaywrightOpentelemetryReporter as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as withPlaywrightTraceApiHeaders, _ as PLAYWRIGHT_TRACE_API_SOURCE_REPORTER, a as supportsScreencastScreenshots, b as generateTraceId, c as FIXTURE_SPANS_ATTACHMENT_NAME, g as PLAYWRIGHT_TRACE_API_SOURCE_HEADER, h as filterRetainedDestinations, i as readScreenshotsZip, l as TRACE_CONTEXT_ATTACHMENT_NAME, m as shouldRetainPlaywrightTrace, n as addScreenshotsToZip, o as resolvePlaywrightOpentelemetryConfig, r as createScreenshotsZip, v as buildOtlpRequest, x as sendSpans, y as generateSpanId } from "./screenshots-zip-
|
|
1
|
+
import { S as withPlaywrightTraceApiHeaders, _ as PLAYWRIGHT_TRACE_API_SOURCE_REPORTER, a as supportsScreencastScreenshots, b as generateTraceId, c as FIXTURE_SPANS_ATTACHMENT_NAME, g as PLAYWRIGHT_TRACE_API_SOURCE_HEADER, h as filterRetainedDestinations, i as readScreenshotsZip, l as TRACE_CONTEXT_ATTACHMENT_NAME, m as shouldRetainPlaywrightTrace, n as addScreenshotsToZip, o as resolvePlaywrightOpentelemetryConfig, r as createScreenshotsZip, v as buildOtlpRequest, x as sendSpans, y as generateSpanId } from "./screenshots-zip-BzI9Jpan.mjs";
|
|
2
2
|
import fs from "node:fs/promises";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { BlobReader, BlobWriter, TextWriter, ZipReader, ZipWriter } from "@zip.js/zip.js";
|
|
@@ -229,10 +229,8 @@ var PlaywrightOpentelemetryReporter = class {
|
|
|
229
229
|
attributes[ATTR_CODE_FILE_PATH] = this.rootDir ? path.relative(this.rootDir, file) : file;
|
|
230
230
|
attributes[ATTR_CODE_LINE_NUMBER] = line;
|
|
231
231
|
}
|
|
232
|
-
const
|
|
233
|
-
const
|
|
234
|
-
if (result.steps && result.steps.length > 0) for (const step of result.steps) this.processTestStep(test, step, testSpanId, traceId, [], processedSteps, skippedStepIds);
|
|
235
|
-
const stepSpans = Array.from(processedSteps.values());
|
|
232
|
+
const stepSpans = [];
|
|
233
|
+
for (const step of result.steps ?? []) this.processTestStep(step, testSpanId, traceId, [], stepSpans);
|
|
236
234
|
let minStartTime = result.startTime;
|
|
237
235
|
let maxEndTime = new Date(result.startTime.getTime() + result.duration);
|
|
238
236
|
for (const stepSpan of stepSpans) {
|
|
@@ -318,36 +316,17 @@ var PlaywrightOpentelemetryReporter = class {
|
|
|
318
316
|
const [traceZipBlob] = await Promise.all([traceZipBlobPromise, ...uploadPromises]);
|
|
319
317
|
return { traceZipBlob };
|
|
320
318
|
}
|
|
321
|
-
processTestStep(
|
|
319
|
+
processTestStep(step, parentSpanId, traceId, parentTitlePath, stepSpans, inheritedPhase) {
|
|
322
320
|
let phase = inheritedPhase;
|
|
323
321
|
if (step.category === "hook") {
|
|
324
322
|
if (step.title === "Before Hooks") phase = "before";
|
|
325
323
|
if (step.title === "After Hooks" || step.title === "Worker Cleanup") phase = "after";
|
|
326
324
|
}
|
|
327
|
-
const stepId = getStepId(test, step);
|
|
328
325
|
if (isInternalFixtureStep(step) || isInternalApiRequestStep(step)) {
|
|
329
|
-
|
|
330
|
-
processedSteps.delete(stepId);
|
|
331
|
-
if (step.steps && step.steps.length > 0) for (const childStep of step.steps) this.processTestStep(test, childStep, parentSpanId, traceId, parentTitlePath, processedSteps, skippedStepIds, phase);
|
|
332
|
-
return;
|
|
333
|
-
}
|
|
334
|
-
if (skippedStepIds.has(stepId)) {
|
|
335
|
-
if (step.steps && step.steps.length > 0) for (const childStep of step.steps) this.processTestStep(test, childStep, parentSpanId, traceId, parentTitlePath, processedSteps, skippedStepIds, phase);
|
|
326
|
+
for (const childStep of step.steps ?? []) this.processTestStep(childStep, parentSpanId, traceId, parentTitlePath, stepSpans, phase);
|
|
336
327
|
return;
|
|
337
328
|
}
|
|
338
329
|
const currentTitlePath = [...parentTitlePath, step.title];
|
|
339
|
-
const existingSpan = processedSteps.get(stepId);
|
|
340
|
-
if (existingSpan) {
|
|
341
|
-
if (step.error) existingSpan.status = errorStatus(step.error.message);
|
|
342
|
-
if (step.location && !existingSpan.attributes["code.file.path"]) {
|
|
343
|
-
const { file, line } = step.location;
|
|
344
|
-
const relativePath = this.rootDir ? path.relative(this.rootDir, file) : file;
|
|
345
|
-
existingSpan.attributes[ATTR_CODE_FILE_PATH] = relativePath;
|
|
346
|
-
existingSpan.attributes[ATTR_CODE_LINE_NUMBER] = line;
|
|
347
|
-
}
|
|
348
|
-
if (step.steps && step.steps.length > 0) for (const childStep of step.steps) this.processTestStep(test, childStep, existingSpan.spanId, traceId, currentTitlePath, processedSteps, skippedStepIds, phase);
|
|
349
|
-
return;
|
|
350
|
-
}
|
|
351
330
|
const attributes = {};
|
|
352
331
|
attributes[ATTR_TEST_STEP_NAME] = currentTitlePath.join(" > ");
|
|
353
332
|
attributes[ATTR_TEST_STEP_TITLE] = step.title;
|
|
@@ -373,8 +352,8 @@ var PlaywrightOpentelemetryReporter = class {
|
|
|
373
352
|
attributes
|
|
374
353
|
};
|
|
375
354
|
if (step.error) stepSpan.status = errorStatus(step.error.message);
|
|
376
|
-
|
|
377
|
-
|
|
355
|
+
stepSpans.push(stepSpan);
|
|
356
|
+
for (const childStep of step.steps ?? []) this.processTestStep(childStep, stepSpan.spanId, traceId, currentTitlePath, stepSpans, phase);
|
|
378
357
|
}
|
|
379
358
|
onStdOut(chunk, _test, _result) {
|
|
380
359
|
if (this.debug) console.log(chunk.toString().slice(0, -1));
|
|
@@ -581,14 +560,5 @@ function isRecord(value) {
|
|
|
581
560
|
function isTraceContextAttachment(value) {
|
|
582
561
|
return typeof value === "object" && value !== null && "traceId" in value && "rootSpanId" in value && typeof value.traceId === "string" && typeof value.rootSpanId === "string";
|
|
583
562
|
}
|
|
584
|
-
function getStepId(test, step) {
|
|
585
|
-
const startTimeMs = step.startTime.getTime();
|
|
586
|
-
return [
|
|
587
|
-
test.id,
|
|
588
|
-
step.category,
|
|
589
|
-
startTimeMs,
|
|
590
|
-
...step.titlePath()
|
|
591
|
-
].join(" > ");
|
|
592
|
-
}
|
|
593
563
|
//#endregion
|
|
594
564
|
export { PlaywrightOpentelemetryReporter as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_screenshots_zip = require("./screenshots-zip-
|
|
1
|
+
const require_screenshots_zip = require("./screenshots-zip-C3N3xvp7.cjs");
|
|
2
2
|
let node_fs_promises = require("node:fs/promises");
|
|
3
3
|
node_fs_promises = require_screenshots_zip.__toESM(node_fs_promises, 1);
|
|
4
4
|
let node_path = require("node:path");
|
|
@@ -231,10 +231,8 @@ var PlaywrightOpentelemetryReporter = class {
|
|
|
231
231
|
attributes[ATTR_CODE_FILE_PATH] = this.rootDir ? node_path.default.relative(this.rootDir, file) : file;
|
|
232
232
|
attributes[ATTR_CODE_LINE_NUMBER] = line;
|
|
233
233
|
}
|
|
234
|
-
const
|
|
235
|
-
const
|
|
236
|
-
if (result.steps && result.steps.length > 0) for (const step of result.steps) this.processTestStep(test, step, testSpanId, traceId, [], processedSteps, skippedStepIds);
|
|
237
|
-
const stepSpans = Array.from(processedSteps.values());
|
|
234
|
+
const stepSpans = [];
|
|
235
|
+
for (const step of result.steps ?? []) this.processTestStep(step, testSpanId, traceId, [], stepSpans);
|
|
238
236
|
let minStartTime = result.startTime;
|
|
239
237
|
let maxEndTime = new Date(result.startTime.getTime() + result.duration);
|
|
240
238
|
for (const stepSpan of stepSpans) {
|
|
@@ -320,36 +318,17 @@ var PlaywrightOpentelemetryReporter = class {
|
|
|
320
318
|
const [traceZipBlob] = await Promise.all([traceZipBlobPromise, ...uploadPromises]);
|
|
321
319
|
return { traceZipBlob };
|
|
322
320
|
}
|
|
323
|
-
processTestStep(
|
|
321
|
+
processTestStep(step, parentSpanId, traceId, parentTitlePath, stepSpans, inheritedPhase) {
|
|
324
322
|
let phase = inheritedPhase;
|
|
325
323
|
if (step.category === "hook") {
|
|
326
324
|
if (step.title === "Before Hooks") phase = "before";
|
|
327
325
|
if (step.title === "After Hooks" || step.title === "Worker Cleanup") phase = "after";
|
|
328
326
|
}
|
|
329
|
-
const stepId = getStepId(test, step);
|
|
330
327
|
if (isInternalFixtureStep(step) || isInternalApiRequestStep(step)) {
|
|
331
|
-
|
|
332
|
-
processedSteps.delete(stepId);
|
|
333
|
-
if (step.steps && step.steps.length > 0) for (const childStep of step.steps) this.processTestStep(test, childStep, parentSpanId, traceId, parentTitlePath, processedSteps, skippedStepIds, phase);
|
|
334
|
-
return;
|
|
335
|
-
}
|
|
336
|
-
if (skippedStepIds.has(stepId)) {
|
|
337
|
-
if (step.steps && step.steps.length > 0) for (const childStep of step.steps) this.processTestStep(test, childStep, parentSpanId, traceId, parentTitlePath, processedSteps, skippedStepIds, phase);
|
|
328
|
+
for (const childStep of step.steps ?? []) this.processTestStep(childStep, parentSpanId, traceId, parentTitlePath, stepSpans, phase);
|
|
338
329
|
return;
|
|
339
330
|
}
|
|
340
331
|
const currentTitlePath = [...parentTitlePath, step.title];
|
|
341
|
-
const existingSpan = processedSteps.get(stepId);
|
|
342
|
-
if (existingSpan) {
|
|
343
|
-
if (step.error) existingSpan.status = errorStatus(step.error.message);
|
|
344
|
-
if (step.location && !existingSpan.attributes["code.file.path"]) {
|
|
345
|
-
const { file, line } = step.location;
|
|
346
|
-
const relativePath = this.rootDir ? node_path.default.relative(this.rootDir, file) : file;
|
|
347
|
-
existingSpan.attributes[ATTR_CODE_FILE_PATH] = relativePath;
|
|
348
|
-
existingSpan.attributes[ATTR_CODE_LINE_NUMBER] = line;
|
|
349
|
-
}
|
|
350
|
-
if (step.steps && step.steps.length > 0) for (const childStep of step.steps) this.processTestStep(test, childStep, existingSpan.spanId, traceId, currentTitlePath, processedSteps, skippedStepIds, phase);
|
|
351
|
-
return;
|
|
352
|
-
}
|
|
353
332
|
const attributes = {};
|
|
354
333
|
attributes[ATTR_TEST_STEP_NAME] = currentTitlePath.join(" > ");
|
|
355
334
|
attributes[ATTR_TEST_STEP_TITLE] = step.title;
|
|
@@ -375,8 +354,8 @@ var PlaywrightOpentelemetryReporter = class {
|
|
|
375
354
|
attributes
|
|
376
355
|
};
|
|
377
356
|
if (step.error) stepSpan.status = errorStatus(step.error.message);
|
|
378
|
-
|
|
379
|
-
|
|
357
|
+
stepSpans.push(stepSpan);
|
|
358
|
+
for (const childStep of step.steps ?? []) this.processTestStep(childStep, stepSpan.spanId, traceId, currentTitlePath, stepSpans, phase);
|
|
380
359
|
}
|
|
381
360
|
onStdOut(chunk, _test, _result) {
|
|
382
361
|
if (this.debug) console.log(chunk.toString().slice(0, -1));
|
|
@@ -583,15 +562,6 @@ function isRecord(value) {
|
|
|
583
562
|
function isTraceContextAttachment(value) {
|
|
584
563
|
return typeof value === "object" && value !== null && "traceId" in value && "rootSpanId" in value && typeof value.traceId === "string" && typeof value.rootSpanId === "string";
|
|
585
564
|
}
|
|
586
|
-
function getStepId(test, step) {
|
|
587
|
-
const startTimeMs = step.startTime.getTime();
|
|
588
|
-
return [
|
|
589
|
-
test.id,
|
|
590
|
-
step.category,
|
|
591
|
-
startTimeMs,
|
|
592
|
-
...step.titlePath()
|
|
593
|
-
].join(" > ");
|
|
594
|
-
}
|
|
595
565
|
//#endregion
|
|
596
566
|
Object.defineProperty(exports, "PlaywrightOpentelemetryReporter", {
|
|
597
567
|
enumerable: true,
|
package/dist/reporter.cjs
CHANGED
package/dist/reporter.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PlaywrightOpentelemetryReporter } from "./reporter-
|
|
1
|
+
import { t as PlaywrightOpentelemetryReporter } from "./reporter-CLzdtg6G.cjs";
|
|
2
2
|
export = PlaywrightOpentelemetryReporter;
|
package/dist/reporter.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PlaywrightOpentelemetryReporter } from "./reporter-
|
|
1
|
+
import { t as PlaywrightOpentelemetryReporter } from "./reporter-CLzdtg6G.mjs";
|
|
2
2
|
export { PlaywrightOpentelemetryReporter as default };
|
package/dist/reporter.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BlobReader, BlobWriter, TextWriter, ZipReader, ZipWriter } from "@zip.js/zip.js";
|
|
2
2
|
//#region package.json
|
|
3
|
-
var version = "0.
|
|
3
|
+
var version = "0.15.0";
|
|
4
4
|
const PLAYWRIGHT_TRACE_API_SOURCE_HEADER = "x-playwright-otel-source";
|
|
5
5
|
const PLAYWRIGHT_TRACE_API_SOURCE_REPORTER = "reporter";
|
|
6
6
|
function withPlaywrightTraceApiHeaders(headers) {
|
|
@@ -22,7 +22,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
22
22
|
//#endregion
|
|
23
23
|
let _zip_js_zip_js = require("@zip.js/zip.js");
|
|
24
24
|
//#region package.json
|
|
25
|
-
var version = "0.
|
|
25
|
+
var version = "0.15.0";
|
|
26
26
|
const PLAYWRIGHT_TRACE_API_SOURCE_HEADER = "x-playwright-otel-source";
|
|
27
27
|
const PLAYWRIGHT_TRACE_API_SOURCE_REPORTER = "reporter";
|
|
28
28
|
function withPlaywrightTraceApiHeaders(headers) {
|
package/package.json
CHANGED
package/dist/otel-D0ztpic2.d.cts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
//#region src/shared/otel.d.ts
|
|
2
|
-
type SpanAttributeValue = string | number | boolean | string[];
|
|
3
|
-
type SpanEvent = {
|
|
4
|
-
name: string;
|
|
5
|
-
time: Date;
|
|
6
|
-
attributes?: Record<string, SpanAttributeValue>;
|
|
7
|
-
};
|
|
8
|
-
type Span = {
|
|
9
|
-
traceId: string;
|
|
10
|
-
spanId: string;
|
|
11
|
-
parentSpanId?: string;
|
|
12
|
-
name: string;
|
|
13
|
-
startTime: Date;
|
|
14
|
-
endTime: Date;
|
|
15
|
-
attributes: Record<string, SpanAttributeValue>;
|
|
16
|
-
events?: SpanEvent[];
|
|
17
|
-
status?: {
|
|
18
|
-
code: number;
|
|
19
|
-
message?: string;
|
|
20
|
-
};
|
|
21
|
-
kind?: number; /** Service name for this span (if different from default). */
|
|
22
|
-
serviceName?: string;
|
|
23
|
-
};
|
|
24
|
-
//#endregion
|
|
25
|
-
export { SpanEvent as n, Span as t };
|
package/dist/otel-D0ztpic2.d.mts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
//#region src/shared/otel.d.ts
|
|
2
|
-
type SpanAttributeValue = string | number | boolean | string[];
|
|
3
|
-
type SpanEvent = {
|
|
4
|
-
name: string;
|
|
5
|
-
time: Date;
|
|
6
|
-
attributes?: Record<string, SpanAttributeValue>;
|
|
7
|
-
};
|
|
8
|
-
type Span = {
|
|
9
|
-
traceId: string;
|
|
10
|
-
spanId: string;
|
|
11
|
-
parentSpanId?: string;
|
|
12
|
-
name: string;
|
|
13
|
-
startTime: Date;
|
|
14
|
-
endTime: Date;
|
|
15
|
-
attributes: Record<string, SpanAttributeValue>;
|
|
16
|
-
events?: SpanEvent[];
|
|
17
|
-
status?: {
|
|
18
|
-
code: number;
|
|
19
|
-
message?: string;
|
|
20
|
-
};
|
|
21
|
-
kind?: number; /** Service name for this span (if different from default). */
|
|
22
|
-
serviceName?: string;
|
|
23
|
-
};
|
|
24
|
-
//#endregion
|
|
25
|
-
export { SpanEvent as n, Span as t };
|
|
File without changes
|
|
File without changes
|