autotel-audit 1.0.6 → 1.1.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.cjs CHANGED
@@ -380,7 +380,11 @@ function createSecuritySignalProcessor(options = {}) {
380
380
  if (typeof status !== "number" || !deniedStatuses.has(status)) return;
381
381
  count("denied", { status });
382
382
  if (!burst || !burst.statuses.has(status)) return;
383
- const key = readAttribute(span.attributes, [burst.keyAttribute, "http.client_ip"]);
383
+ const key = readAttribute(span.attributes, [
384
+ burst.keyAttribute,
385
+ "client.address",
386
+ "http.client_ip"
387
+ ]);
384
388
  if (typeof key !== "string" || key.length === 0) return;
385
389
  const { before, after } = burst.window.record(key, now());
386
390
  if (before < burst.threshold && after >= burst.threshold) {
package/dist/index.js CHANGED
@@ -379,7 +379,11 @@ function createSecuritySignalProcessor(options = {}) {
379
379
  if (typeof status !== "number" || !deniedStatuses.has(status)) return;
380
380
  count("denied", { status });
381
381
  if (!burst || !burst.statuses.has(status)) return;
382
- const key = readAttribute(span.attributes, [burst.keyAttribute, "http.client_ip"]);
382
+ const key = readAttribute(span.attributes, [
383
+ burst.keyAttribute,
384
+ "client.address",
385
+ "http.client_ip"
386
+ ]);
383
387
  if (typeof key !== "string" || key.length === 0) return;
384
388
  const { before, after } = burst.window.record(key, now());
385
389
  if (before < burst.threshold && after >= burst.threshold) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autotel-audit",
3
- "version": "1.0.6",
3
+ "version": "1.1.1",
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.5.0"
30
+ "autotel": "7.6.1"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^26.1.2",