autotel-audit 1.0.2 → 1.0.3

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.cjs CHANGED
@@ -584,6 +584,7 @@ function forceKeepAuditEvent(ctx) {
584
584
  traceCtx.setAttribute(autotel.AUTOTEL_SAMPLING_TAIL_EVALUATED, true);
585
585
  traceCtx.setAttribute(autotel.AUTOTEL_SAMPLING_TAIL_KEEP, true);
586
586
  traceCtx.setAttribute("autotel.audit.force_keep", true);
587
+ (0, autotel.forceKeep)();
587
588
  }
588
589
  function setAuditAttributes(metadata, ctx) {
589
590
  const traceCtx = resolveContextSafe(ctx);
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, REDACTOR_PATTERNS, createCounter, createNoopRequestLogger, getRequestLoggerSafe, getTraceContext, otelTrace } from "autotel";
1
+ import { AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, REDACTOR_PATTERNS, createCounter, createNoopRequestLogger, forceKeep, getRequestLoggerSafe, getTraceContext, otelTrace } from "autotel";
2
2
  import { createHash } from "node:crypto";
3
3
  import { HTTP_STATUS_ATTRIBUTES, SECURITY_ATTR, SECURITY_DENIED_STATUSES, SECURITY_METRICS, escalateSecuritySeverity } from "autotel/security-schema";
4
4
 
@@ -583,6 +583,7 @@ function forceKeepAuditEvent(ctx) {
583
583
  traceCtx.setAttribute(AUTOTEL_SAMPLING_TAIL_EVALUATED, true);
584
584
  traceCtx.setAttribute(AUTOTEL_SAMPLING_TAIL_KEEP, true);
585
585
  traceCtx.setAttribute("autotel.audit.force_keep", true);
586
+ forceKeep();
586
587
  }
587
588
  function setAuditAttributes(metadata, ctx) {
588
589
  const traceCtx = resolveContextSafe(ctx);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autotel-audit",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Audit-focused helpers for Autotel (force-keep + structured audit instrumentation)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -27,7 +27,7 @@
27
27
  "author": "Jag Reehal <jag@jagreehal.com> (https://jagreehal.com)",
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "autotel": "7.1.0"
30
+ "autotel": "7.2.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^26.1.2",