autotel 6.3.0 → 6.4.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.
Files changed (55) hide show
  1. package/dist/auto.cjs +1 -1
  2. package/dist/auto.js +1 -1
  3. package/dist/{canonical-log-line-processor-mKABvGP0.js → canonical-log-line-processor-B0vq_QR6.js} +3 -1
  4. package/dist/{canonical-log-line-processor-DOjb6Kxy.cjs → canonical-log-line-processor-DxtBGZIi.cjs} +3 -1
  5. package/dist/correlation-id.cjs +1 -1
  6. package/dist/correlation-id.js +1 -1
  7. package/dist/decorators.cjs +1 -1
  8. package/dist/decorators.d.cts +1 -1
  9. package/dist/decorators.d.ts +1 -1
  10. package/dist/decorators.js +1 -1
  11. package/dist/event.cjs +1 -1
  12. package/dist/event.js +1 -1
  13. package/dist/{functional-DCBhFool.js → functional-0o9xSedq.js} +221 -283
  14. package/dist/functional-AT22vCw6.d.ts +389 -0
  15. package/dist/functional-e6jw5zQj.d.cts +389 -0
  16. package/dist/{functional-TbnG2lu7.cjs → functional-qZxRcIBp.cjs} +221 -283
  17. package/dist/functional.cjs +1 -1
  18. package/dist/functional.d.cts +2 -432
  19. package/dist/functional.d.ts +2 -432
  20. package/dist/functional.js +1 -1
  21. package/dist/http.cjs +1 -1
  22. package/dist/http.js +1 -1
  23. package/dist/index.cjs +3 -3
  24. package/dist/index.d.cts +2 -2
  25. package/dist/index.d.ts +2 -2
  26. package/dist/index.js +3 -3
  27. package/dist/{init-BneZ7WJ8.cjs → init-BnxHAi2M.cjs} +19 -10
  28. package/dist/{init-Qn4gIW1i.js → init-BxfZ3Vbw.js} +19 -10
  29. package/dist/{init-CfVWN4ND.d.cts → init-Cc7-vvzj.d.cts} +18 -0
  30. package/dist/{init-C1i2_2zl.d.ts → init-CsODvlau.d.ts} +18 -0
  31. package/dist/instrumentation.cjs +1 -1
  32. package/dist/instrumentation.js +1 -1
  33. package/dist/messaging.cjs +1 -1
  34. package/dist/messaging.js +1 -1
  35. package/dist/policy-CbpP4tFH.d.cts +147 -0
  36. package/dist/policy-CbpP4tFH.d.ts +147 -0
  37. package/dist/policy.cjs +0 -0
  38. package/dist/policy.d.cts +2 -0
  39. package/dist/policy.d.ts +2 -0
  40. package/dist/policy.js +0 -0
  41. package/dist/processors.cjs +1 -1
  42. package/dist/processors.js +1 -1
  43. package/dist/semantic-helpers.cjs +1 -1
  44. package/dist/semantic-helpers.js +1 -1
  45. package/dist/webhook.cjs +1 -1
  46. package/dist/webhook.js +1 -1
  47. package/dist/workflow-distributed.cjs +1 -1
  48. package/dist/workflow-distributed.js +1 -1
  49. package/dist/workflow.cjs +1 -1
  50. package/dist/workflow.js +1 -1
  51. package/dist/yaml-config.cjs +1 -0
  52. package/dist/yaml-config.d.cts +3 -1
  53. package/dist/yaml-config.d.ts +3 -1
  54. package/dist/yaml-config.js +1 -0
  55. package/package.json +6 -1
package/dist/auto.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  const require_rolldown_runtime = require('./rolldown-runtime-C_NdSu1c.cjs');
2
- const require_init = require('./init-BneZ7WJ8.cjs');
2
+ const require_init = require('./init-BnxHAi2M.cjs');
3
3
  const require_yaml_config = require('./yaml-config.cjs');
4
4
  let node_module = require("node:module");
5
5
  node_module = require_rolldown_runtime.__toESM(node_module, 1);
package/dist/auto.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as init } from "./init-Qn4gIW1i.js";
1
+ import { i as init } from "./init-BxfZ3Vbw.js";
2
2
  import { loadYamlConfig } from "./yaml-config.js";
3
3
  import * as nodeModule from "node:module";
4
4
  import { createAddHookMessageChannel } from "import-in-the-middle";
@@ -139,18 +139,20 @@ function formatPrettyLogLine(ctx) {
139
139
  const service = event["service.name"] || event.service || "";
140
140
  const method = event["http.request.method"] || "";
141
141
  const path = event["http.route"] || event["url.path"] || "";
142
- const status = event["http.response.status_code"] || event.status_code || "";
142
+ const status = event["http.response.status_code"] || "";
143
143
  const duration = formatDuration(Number(event.duration_ms ?? 0));
144
144
  const levelStr = c(LEVEL_COLORS[level] ?? "", level.toUpperCase().padEnd(5));
145
145
  const parts = [c(DIM, timestamp), levelStr];
146
146
  if (service) parts.push(c(DIM, `[${service}]`));
147
147
  if (method) parts.push(c(BOLD, String(method)));
148
148
  if (path) parts.push(String(path));
149
+ if (!method && !path && event.operation) parts.push(c(BOLD, String(event.operation)));
149
150
  if (status) {
150
151
  const statusNum = Number(status);
151
152
  const statusColor = statusNum >= 500 ? RED : statusNum >= 400 ? YELLOW : GREEN;
152
153
  parts.push(c(statusColor, String(status)));
153
154
  }
155
+ if (Number(event.status_code) === 2 && level !== "error") parts.push(c(RED, "ERROR"));
154
156
  parts.push(c(DIM, `in ${duration}`));
155
157
  const header = parts.join(" ");
156
158
  const tree = groupAttributes(event);
@@ -139,18 +139,20 @@ function formatPrettyLogLine(ctx) {
139
139
  const service = event["service.name"] || event.service || "";
140
140
  const method = event["http.request.method"] || "";
141
141
  const path = event["http.route"] || event["url.path"] || "";
142
- const status = event["http.response.status_code"] || event.status_code || "";
142
+ const status = event["http.response.status_code"] || "";
143
143
  const duration = formatDuration(Number(event.duration_ms ?? 0));
144
144
  const levelStr = c(LEVEL_COLORS[level] ?? "", level.toUpperCase().padEnd(5));
145
145
  const parts = [c(DIM, timestamp), levelStr];
146
146
  if (service) parts.push(c(DIM, `[${service}]`));
147
147
  if (method) parts.push(c(BOLD, String(method)));
148
148
  if (path) parts.push(String(path));
149
+ if (!method && !path && event.operation) parts.push(c(BOLD, String(event.operation)));
149
150
  if (status) {
150
151
  const statusNum = Number(status);
151
152
  const statusColor = statusNum >= 500 ? RED : statusNum >= 400 ? YELLOW : GREEN;
152
153
  parts.push(c(statusColor, String(status)));
153
154
  }
155
+ if (Number(event.status_code) === 2 && level !== "error") parts.push(c(RED, "ERROR"));
154
156
  parts.push(c(DIM, `in ${duration}`));
155
157
  const header = parts.join(" ");
156
158
  const tree = groupAttributes(event);
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_init = require('./init-BneZ7WJ8.cjs');
2
+ const require_init = require('./init-BnxHAi2M.cjs');
3
3
 
4
4
  exports.CORRELATION_ID_BAGGAGE_KEY = require_init.CORRELATION_ID_BAGGAGE_KEY;
5
5
  exports.generateCorrelationId = require_init.generateCorrelationId;
@@ -1,3 +1,3 @@
1
- import { C as setCorrelationId, S as runWithCorrelationId, _ as CORRELATION_ID_BAGGAGE_KEY, b as getCorrelationStorage, v as generateCorrelationId, w as setCorrelationIdInBaggage, x as getOrCreateCorrelationId, y as getCorrelationId } from "./init-Qn4gIW1i.js";
1
+ import { C as setCorrelationId, S as runWithCorrelationId, _ as CORRELATION_ID_BAGGAGE_KEY, b as getCorrelationStorage, v as generateCorrelationId, w as setCorrelationIdInBaggage, x as getOrCreateCorrelationId, y as getCorrelationId } from "./init-BxfZ3Vbw.js";
2
2
 
3
3
  export { CORRELATION_ID_BAGGAGE_KEY, generateCorrelationId, getCorrelationId, getCorrelationStorage, getOrCreateCorrelationId, runWithCorrelationId, setCorrelationId, setCorrelationIdInBaggage };
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_config = require('./config.cjs');
3
- const require_init = require('./init-BneZ7WJ8.cjs');
3
+ const require_init = require('./init-BnxHAi2M.cjs');
4
4
  let _opentelemetry_api = require("@opentelemetry/api");
5
5
 
6
6
  //#region src/decorators.ts
@@ -1,5 +1,5 @@
1
1
  import { n as TraceContext } from "./trace-context-IuyoPyNq.cjs";
2
- import { TracingOptions } from "./functional.cjs";
2
+ import { m as TracingOptions } from "./functional-e6jw5zQj.cjs";
3
3
  //#region src/decorators.d.ts
4
4
  /**
5
5
  * Options for @Trace method decorator
@@ -1,5 +1,5 @@
1
1
  import { n as TraceContext } from "./trace-context-IuyoPyNq.js";
2
- import { TracingOptions } from "./functional.js";
2
+ import { m as TracingOptions } from "./functional-AT22vCw6.js";
3
3
  //#region src/decorators.d.ts
4
4
  /**
5
5
  * Options for @Trace method decorator
@@ -1,5 +1,5 @@
1
1
  import { getConfig } from "./config.js";
2
- import { T as createTraceContext } from "./init-Qn4gIW1i.js";
2
+ import { T as createTraceContext } from "./init-BxfZ3Vbw.js";
3
3
  import { SpanStatusCode } from "@opentelemetry/api";
4
4
 
5
5
  //#region src/decorators.ts
package/dist/event.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_init = require('./init-BneZ7WJ8.cjs');
2
+ const require_init = require('./init-BnxHAi2M.cjs');
3
3
 
4
4
  exports.Event = require_init.Event;
5
5
  exports.getEvents = require_init.getEvents;
package/dist/event.js CHANGED
@@ -1,3 +1,3 @@
1
- import { d as getEvents, f as resetEvents, u as Event } from "./init-Qn4gIW1i.js";
1
+ import { d as getEvents, f as resetEvents, u as Event } from "./init-BxfZ3Vbw.js";
2
2
 
3
3
  export { Event, getEvents, resetEvents };