playwright-opentelemetry 0.17.0 → 0.18.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/otel-D0ztpic2.d.cts +25 -0
- package/dist/otel-D0ztpic2.d.mts +25 -0
- package/dist/{reporter-DtVv7zcl.d.cts → reporter-C1TwRMjP.d.cts} +1 -25
- package/dist/{reporter-DtVv7zcl.d.mts → reporter-C1TwRMjP.d.mts} +1 -25
- package/dist/{reporter-C_sXaF-4.cjs → reporter-p3Z6GrF-.cjs} +1 -1
- package/dist/{reporter-B7K2L2XR.mjs → reporter-t-dJHyfd.mjs} +1 -1
- 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-D8_7p-Wx.mjs → screenshots-zip-CLFTP3sv.mjs} +1 -1
- package/dist/{screenshots-zip-CDmixuxY.cjs → screenshots-zip-CNPpbJfR.cjs} +1 -1
- package/package.json +1 -1
- /package/dist/{index-g9K4ZUC_.d.cts → config-g9K4ZUC_.d.cts} +0 -0
- /package/dist/{index-g9K4ZUC_.d.mts → config-g9K4ZUC_.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-CNPpbJfR.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 { n as
|
|
2
|
-
import {
|
|
1
|
+
import { i as PlaywrightTraceOption, n as PlaywrightOpentelemetryDestination, r as PlaywrightOpentelemetryUseOptions, t as PlaywrightOpentelemetryConfig } from "./config-g9K4ZUC_.cjs";
|
|
2
|
+
import { n as SpanEvent, t as Span } from "./otel-D0ztpic2.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 { n as
|
|
2
|
-
import {
|
|
1
|
+
import { i as PlaywrightTraceOption, n as PlaywrightOpentelemetryDestination, r as PlaywrightOpentelemetryUseOptions, t as PlaywrightOpentelemetryConfig } from "./config-g9K4ZUC_.mjs";
|
|
2
|
+
import { n as SpanEvent, t as Span } from "./otel-D0ztpic2.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 { T as generateSpanId, a as supportsScreencastScreenshots, b as writeFixtureHandoffFile, d as flushFixtureSpans, f as registerExpectedTrace, g as SCREENSHOTS_HANDOFF_FILE, 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, x as filterRetainedDestinations } from "./screenshots-zip-
|
|
1
|
+
import { T as generateSpanId, a as supportsScreencastScreenshots, b as writeFixtureHandoffFile, d as flushFixtureSpans, f as registerExpectedTrace, g as SCREENSHOTS_HANDOFF_FILE, 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, x as filterRetainedDestinations } from "./screenshots-zip-CLFTP3sv.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 { t as
|
|
2
|
-
import {
|
|
1
|
+
import { i as PlaywrightTraceOption, n as PlaywrightOpentelemetryDestination, r as PlaywrightOpentelemetryUseOptions, t as PlaywrightOpentelemetryConfig } from "./config-g9K4ZUC_.cjs";
|
|
2
|
+
import { t as PlaywrightOpentelemetryReporter } from "./reporter-C1TwRMjP.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 { t as
|
|
2
|
-
import {
|
|
1
|
+
import { i as PlaywrightTraceOption, n as PlaywrightOpentelemetryDestination, r as PlaywrightOpentelemetryUseOptions, t as PlaywrightOpentelemetryConfig } from "./config-g9K4ZUC_.mjs";
|
|
2
|
+
import { t as PlaywrightOpentelemetryReporter } from "./reporter-C1TwRMjP.mjs";
|
|
3
3
|
export { type PlaywrightOpentelemetryConfig, type PlaywrightOpentelemetryDestination, type PlaywrightOpentelemetryUseOptions, type PlaywrightTraceOption, PlaywrightOpentelemetryReporter as default };
|
package/dist/index.mjs
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
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 };
|
|
@@ -0,0 +1,25 @@
|
|
|
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 };
|
|
@@ -1,29 +1,5 @@
|
|
|
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
|
|
27
3
|
//#region src/reporter/reporter.d.ts
|
|
28
4
|
declare class PlaywrightOpentelemetryReporter implements Reporter {
|
|
29
5
|
private spanBatches;
|
|
@@ -53,4 +29,4 @@ declare class PlaywrightOpentelemetryReporter implements Reporter {
|
|
|
53
29
|
private sendScreenshotsZipToTraceApi;
|
|
54
30
|
}
|
|
55
31
|
//#endregion
|
|
56
|
-
export {
|
|
32
|
+
export { PlaywrightOpentelemetryReporter as t };
|
|
@@ -1,29 +1,5 @@
|
|
|
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
|
|
27
3
|
//#region src/reporter/reporter.d.ts
|
|
28
4
|
declare class PlaywrightOpentelemetryReporter implements Reporter {
|
|
29
5
|
private spanBatches;
|
|
@@ -53,4 +29,4 @@ declare class PlaywrightOpentelemetryReporter implements Reporter {
|
|
|
53
29
|
private sendScreenshotsZipToTraceApi;
|
|
54
30
|
}
|
|
55
31
|
//#endregion
|
|
56
|
-
export {
|
|
32
|
+
export { PlaywrightOpentelemetryReporter as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_screenshots_zip = require("./screenshots-zip-
|
|
1
|
+
const require_screenshots_zip = require("./screenshots-zip-CNPpbJfR.cjs");
|
|
2
2
|
let node_fs = require("node:fs");
|
|
3
3
|
node_fs = require_screenshots_zip.__toESM(node_fs, 1);
|
|
4
4
|
let node_fs_promises = require("node:fs/promises");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as PLAYWRIGHT_TRACE_API_SOURCE_REPORTER, D as sendSpans, E as generateTraceId, O as withPlaywrightTraceApiHeaders, S as PLAYWRIGHT_TRACE_API_SOURCE_HEADER, T as generateSpanId, a as supportsScreencastScreenshots, c as FIXTURE_SPANS_ATTACHMENT_NAME, i as readScreenshotsZip, l as TRACE_CONTEXT_ATTACHMENT_NAME, m as shouldRetainPlaywrightTrace, n as addScreenshotsToZip, o as resolvePlaywrightOpentelemetryConfig, r as createScreenshotsZip, t as SCREENSHOTS_ATTACHMENT_NAME, v as fixtureHandoffDir, w as buildOtlpRequest, x as filterRetainedDestinations, y as fixtureHandoffRoot } from "./screenshots-zip-
|
|
1
|
+
import { C as PLAYWRIGHT_TRACE_API_SOURCE_REPORTER, D as sendSpans, E as generateTraceId, O as withPlaywrightTraceApiHeaders, S as PLAYWRIGHT_TRACE_API_SOURCE_HEADER, T as generateSpanId, a as supportsScreencastScreenshots, c as FIXTURE_SPANS_ATTACHMENT_NAME, i as readScreenshotsZip, l as TRACE_CONTEXT_ATTACHMENT_NAME, m as shouldRetainPlaywrightTrace, n as addScreenshotsToZip, o as resolvePlaywrightOpentelemetryConfig, r as createScreenshotsZip, t as SCREENSHOTS_ATTACHMENT_NAME, v as fixtureHandoffDir, w as buildOtlpRequest, x as filterRetainedDestinations, y as fixtureHandoffRoot } from "./screenshots-zip-CLFTP3sv.mjs";
|
|
2
2
|
import fsSync from "node:fs";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import path from "node:path";
|
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-C1TwRMjP.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-C1TwRMjP.mjs";
|
|
2
2
|
export { PlaywrightOpentelemetryReporter as default };
|
package/dist/reporter.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import fs from "node:fs/promises";
|
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { BlobReader, BlobWriter, TextWriter, ZipReader, ZipWriter } from "@zip.js/zip.js";
|
|
4
4
|
//#region package.json
|
|
5
|
-
var version = "0.
|
|
5
|
+
var version = "0.18.0";
|
|
6
6
|
const PLAYWRIGHT_TRACE_API_SOURCE_HEADER = "x-playwright-otel-source";
|
|
7
7
|
const PLAYWRIGHT_TRACE_API_SOURCE_REPORTER = "reporter";
|
|
8
8
|
function withPlaywrightTraceApiHeaders(headers) {
|
|
@@ -26,7 +26,7 @@ let node_path = require("node:path");
|
|
|
26
26
|
node_path = __toESM(node_path, 1);
|
|
27
27
|
let _zip_js_zip_js = require("@zip.js/zip.js");
|
|
28
28
|
//#region package.json
|
|
29
|
-
var version = "0.
|
|
29
|
+
var version = "0.18.0";
|
|
30
30
|
const PLAYWRIGHT_TRACE_API_SOURCE_HEADER = "x-playwright-otel-source";
|
|
31
31
|
const PLAYWRIGHT_TRACE_API_SOURCE_REPORTER = "reporter";
|
|
32
32
|
function withPlaywrightTraceApiHeaders(headers) {
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|