@autter/runtime-node 1.6.0 → 1.6.1

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/index.d.cts CHANGED
@@ -281,6 +281,18 @@ interface AutterServerOptions {
281
281
  * Default true.
282
282
  */
283
283
  redactAttributes?: boolean | RedactOptions;
284
+ /**
285
+ * Query strings never leave the process with their values. Every span
286
+ * (any instrumentation, Next.js's own included) is exported with
287
+ * `http.target`, `http.url` and `url.full` cut at the `?`, `url.query`
288
+ * reduced to its parameter names (`email=[redacted]&page=[redacted]`,
289
+ * added when only the URL had the query) and the query dropped from span
290
+ * names. List parameters whose values are safe to keep in `url.query`,
291
+ * such as pagination or sorting: `keepQueryParams: ["page", "sort"]`
292
+ * (exact names; kept values are still scrubbed by `redactAttributes`).
293
+ * Applies even with `redactAttributes: false`. Default `[]`.
294
+ */
295
+ keepQueryParams?: string[];
284
296
  /**
285
297
  * Verbose lifecycle logging to stderr: "exported N spans", flushes and
286
298
  * auto-flush activity — handy while wiring the SDK up. Also enabled by
package/dist/index.d.ts CHANGED
@@ -281,6 +281,18 @@ interface AutterServerOptions {
281
281
  * Default true.
282
282
  */
283
283
  redactAttributes?: boolean | RedactOptions;
284
+ /**
285
+ * Query strings never leave the process with their values. Every span
286
+ * (any instrumentation, Next.js's own included) is exported with
287
+ * `http.target`, `http.url` and `url.full` cut at the `?`, `url.query`
288
+ * reduced to its parameter names (`email=[redacted]&page=[redacted]`,
289
+ * added when only the URL had the query) and the query dropped from span
290
+ * names. List parameters whose values are safe to keep in `url.query`,
291
+ * such as pagination or sorting: `keepQueryParams: ["page", "sort"]`
292
+ * (exact names; kept values are still scrubbed by `redactAttributes`).
293
+ * Applies even with `redactAttributes: false`. Default `[]`.
294
+ */
295
+ keepQueryParams?: string[];
284
296
  /**
285
297
  * Verbose lifecycle logging to stderr: "exported N spans", flushes and
286
298
  * auto-flush activity — handy while wiring the SDK up. Also enabled by