endform 0.70.1 → 0.72.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.
Files changed (2) hide show
  1. package/lib/index.d.ts +24 -17
  2. package/package.json +5 -5
package/lib/index.d.ts CHANGED
@@ -31,6 +31,14 @@ export interface ConcurrentTestLimit {
31
31
  limit: number;
32
32
  }
33
33
 
34
+ export interface PlaywrightOpentelemetryDestination {
35
+ url: string;
36
+ headers?: Record<string, string>;
37
+ }
38
+
39
+ /** @deprecated Use `PlaywrightOpentelemetryDestination` instead. */
40
+ export type DeprecatedOtlpEndpointString = string;
41
+
34
42
  /**
35
43
  * Endform configuration.
36
44
  *
@@ -127,21 +135,6 @@ export interface EndformConfig {
127
135
  * @see https://endform.dev/docs/reference/endform-config-ts#remotereporters
128
136
  */
129
137
  remoteReporters?: string[];
130
- /**
131
- * Control whether Endform retains Playwright traces for viewing in the
132
- * dashboard. Defaults to `"on"`.
133
- *
134
- * When set to `"off"`, traces are not uploaded to Endform. This can be
135
- * useful for compliance requirements or if you have privacy concerns about
136
- * trace data.
137
- *
138
- * Note: this setting only controls what Endform stores for dashboard
139
- * viewing. Regardless of this setting, traces are still generated and
140
- * accessible locally depending on your Playwright `trace` config option.
141
- *
142
- * @see https://endform.dev/docs/reference/endform-config-ts#traceretention
143
- */
144
- traceRetention?: "on" | "off";
145
138
  /**
146
139
  * Extra HTTP headers that will be applied to the Playwright browser
147
140
  * contexts when tests run on remote runners.
@@ -166,15 +159,29 @@ export interface EndformConfig {
166
159
  *
167
160
  * Trace propagation becomes enabled when this parameter is set.
168
161
  *
169
- * @example "https://api.eu1.honeycomb.io/v1/traces"
162
+ * @example
163
+ * {
164
+ * url: "https://api.eu1.honeycomb.io/v1/traces",
165
+ * headers: { "x-honeycomb-team": process.env.HONEYCOMB_API_KEY! },
166
+ * }
170
167
  *
171
168
  * For more information: https://github.com/endformdev/playwright-opentelemetry
172
169
  */
173
- otlpEndpoint?: string;
170
+ otlpEndpoint?:
171
+ | PlaywrightOpentelemetryDestination
172
+ | DeprecatedOtlpEndpointString;
173
+ /**
174
+ * External OTLP trace destinations for Playwright OpenTelemetry traces emitted
175
+ * by remote runners.
176
+ *
177
+ * Use this when you want to export to multiple OTLP collectors.
178
+ */
179
+ otlpEndpoints?: PlaywrightOpentelemetryDestination[];
174
180
  /**
175
181
  * Headers sent with external OTLP trace exports from remote runners.
176
182
  *
177
183
  * @example { "x-honeycomb-team": process.env.HONEYCOMB_API_KEY! }
184
+ * @deprecated Use `otlpEndpoint: { url, headers }` or `otlpEndpoints` instead.
178
185
  */
179
186
  otlpHeaders?: Record<string, string>;
180
187
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "endform",
3
- "version": "0.70.1",
3
+ "version": "0.72.0",
4
4
  "description": "Endform CLI",
5
5
  "license": "UNLICENSED",
6
6
  "repository": "https://github.com/endformdev/npm",
@@ -21,9 +21,9 @@
21
21
  }
22
22
  },
23
23
  "optionalDependencies": {
24
- "endform-darwin-arm64": "0.70.1",
25
- "endform-darwin-x86": "0.70.1",
26
- "endform-linux-arm64": "0.70.1",
27
- "endform-linux-x86": "0.70.1"
24
+ "endform-darwin-arm64": "0.72.0",
25
+ "endform-darwin-x86": "0.72.0",
26
+ "endform-linux-arm64": "0.72.0",
27
+ "endform-linux-x86": "0.72.0"
28
28
  }
29
29
  }