@autter/runtime-node 1.6.0 → 1.7.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/index.d.cts CHANGED
@@ -198,8 +198,9 @@ type RuntimeContextHandle = typeof runtimeContext;
198
198
  * call)
199
199
  * successful traces : 1% (head sampling, configurable)
200
200
  * request metrics : aggregated every 60 s, keyed by route
201
- * template (Express routes detected
202
- * out of the box — see captureExpressRoute)
201
+ * template (Express and Next.js routes
202
+ * detected out of the box — see
203
+ * captureRequestRoute, route-label.ts)
203
204
  * operation / request summaries: 100% (withRuntimeOperation,
204
205
  * autterRequests, … — one wide
205
206
  * record per unit of work, never
@@ -281,6 +282,18 @@ interface AutterServerOptions {
281
282
  * Default true.
282
283
  */
283
284
  redactAttributes?: boolean | RedactOptions;
285
+ /**
286
+ * Query strings never leave the process with their values. Every span
287
+ * (any instrumentation, Next.js's own included) is exported with
288
+ * `http.target`, `http.url` and `url.full` cut at the `?`, `url.query`
289
+ * reduced to its parameter names (`email=[redacted]&page=[redacted]`,
290
+ * added when only the URL had the query) and the query dropped from span
291
+ * names. List parameters whose values are safe to keep in `url.query`,
292
+ * such as pagination or sorting: `keepQueryParams: ["page", "sort"]`
293
+ * (exact names; kept values are still scrubbed by `redactAttributes`).
294
+ * Applies even with `redactAttributes: false`. Default `[]`.
295
+ */
296
+ keepQueryParams?: string[];
284
297
  /**
285
298
  * Verbose lifecycle logging to stderr: "exported N spans", flushes and
286
299
  * auto-flush activity — handy while wiring the SDK up. Also enabled by
package/dist/index.d.ts CHANGED
@@ -198,8 +198,9 @@ type RuntimeContextHandle = typeof runtimeContext;
198
198
  * call)
199
199
  * successful traces : 1% (head sampling, configurable)
200
200
  * request metrics : aggregated every 60 s, keyed by route
201
- * template (Express routes detected
202
- * out of the box — see captureExpressRoute)
201
+ * template (Express and Next.js routes
202
+ * detected out of the box — see
203
+ * captureRequestRoute, route-label.ts)
203
204
  * operation / request summaries: 100% (withRuntimeOperation,
204
205
  * autterRequests, … — one wide
205
206
  * record per unit of work, never
@@ -281,6 +282,18 @@ interface AutterServerOptions {
281
282
  * Default true.
282
283
  */
283
284
  redactAttributes?: boolean | RedactOptions;
285
+ /**
286
+ * Query strings never leave the process with their values. Every span
287
+ * (any instrumentation, Next.js's own included) is exported with
288
+ * `http.target`, `http.url` and `url.full` cut at the `?`, `url.query`
289
+ * reduced to its parameter names (`email=[redacted]&page=[redacted]`,
290
+ * added when only the URL had the query) and the query dropped from span
291
+ * names. List parameters whose values are safe to keep in `url.query`,
292
+ * such as pagination or sorting: `keepQueryParams: ["page", "sort"]`
293
+ * (exact names; kept values are still scrubbed by `redactAttributes`).
294
+ * Applies even with `redactAttributes: false`. Default `[]`.
295
+ */
296
+ keepQueryParams?: string[];
284
297
  /**
285
298
  * Verbose lifecycle logging to stderr: "exported N spans", flushes and
286
299
  * auto-flush activity — handy while wiring the SDK up. Also enabled by