autotel 6.0.0 → 6.2.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/README.md +14 -1
- package/dist/analysis.cjs +1 -2
- package/dist/analysis.d.cts +1 -2
- package/dist/analysis.d.ts +1 -2
- package/dist/analysis.js +1 -2
- package/dist/attribute-redacting-processor-Pk7lAzWd.d.cts +1 -2
- package/dist/attribute-redacting-processor-Pk7lAzWd.d.ts +1 -2
- package/dist/attribute-redacting-processor.cjs +1 -2
- package/dist/attribute-redacting-processor.js +1 -2
- package/dist/attributes-B7wix2VG.js +1 -2
- package/dist/attributes-aDmJYral.cjs +1 -2
- package/dist/auto.cjs +2 -3
- package/dist/auto.js +2 -3
- package/dist/business-baggage.cjs +1 -2
- package/dist/business-baggage.d.cts +1 -2
- package/dist/business-baggage.d.ts +1 -2
- package/dist/business-baggage.js +1 -2
- package/dist/canonical-log-line-processor-B4WgG-VS.d.cts +1 -2
- package/dist/canonical-log-line-processor-CL_J7gb5.d.ts +1 -2
- package/dist/canonical-log-line-processor-DOjb6Kxy.cjs +1 -2
- package/dist/canonical-log-line-processor-mKABvGP0.js +1 -2
- package/dist/config.cjs +1 -2
- package/dist/config.d.cts +1 -2
- package/dist/config.d.ts +1 -2
- package/dist/config.js +1 -2
- package/dist/correlated-events-Bzh5y-UB.js +1 -2
- package/dist/correlated-events-kSwLo3mi.cjs +1 -2
- package/dist/correlation-id.cjs +1 -1
- package/dist/correlation-id.d.cts +1 -2
- package/dist/correlation-id.d.ts +1 -2
- package/dist/correlation-id.js +1 -1
- package/dist/db.cjs +1 -2
- package/dist/db.d.cts +1 -2
- package/dist/db.d.ts +1 -2
- package/dist/db.js +1 -2
- package/dist/decorators.cjs +2 -3
- package/dist/decorators.d.cts +1 -2
- package/dist/decorators.d.ts +1 -2
- package/dist/decorators.js +2 -3
- package/dist/define-event-B2z1SBe7.d.ts +1 -2
- package/dist/define-event-CGG048HE.d.cts +1 -2
- package/dist/diagnostics.cjs +1 -2
- package/dist/diagnostics.d.cts +1 -2
- package/dist/diagnostics.d.ts +1 -2
- package/dist/diagnostics.js +1 -2
- package/dist/drain-pipeline.cjs +11 -3
- package/dist/drain-pipeline.d.cts +6 -2
- package/dist/drain-pipeline.d.ts +6 -2
- package/dist/drain-pipeline.js +11 -3
- package/dist/enrichers.cjs +1 -2
- package/dist/enrichers.d.cts +1 -2
- package/dist/enrichers.d.ts +1 -2
- package/dist/enrichers.js +1 -2
- package/dist/event-subscriber-CWh8sTGh.d.cts +1 -2
- package/dist/event-subscriber-CWh8sTGh.d.ts +1 -2
- package/dist/event-testing-CA2mIx1E.d.ts +1 -2
- package/dist/event-testing-D0qWfqAy.d.cts +1 -2
- package/dist/event-testing.cjs +1 -2
- package/dist/event-testing.js +1 -2
- package/dist/event.cjs +1 -1
- package/dist/event.d.cts +1 -2
- package/dist/event.d.ts +1 -2
- package/dist/event.js +1 -1
- package/dist/exporters.d.cts +1 -2
- package/dist/exporters.d.ts +1 -2
- package/dist/filtering-span-processor-BpDagWNa.d.cts +1 -2
- package/dist/filtering-span-processor-BpDagWNa.d.ts +1 -2
- package/dist/filtering-span-processor.cjs +1 -2
- package/dist/filtering-span-processor.js +1 -2
- package/dist/{functional-DcLBuCPz.cjs → functional-D545J0Ba.cjs} +2 -3
- package/dist/{functional-BnDUxnSl.js → functional-DYAZiYxr.js} +2 -3
- package/dist/functional.cjs +1 -1
- package/dist/functional.d.cts +1 -2
- package/dist/functional.d.ts +1 -2
- package/dist/functional.js +1 -1
- package/dist/http.cjs +2 -3
- package/dist/http.d.cts +1 -2
- package/dist/http.d.ts +1 -2
- package/dist/http.js +2 -3
- package/dist/index-BPcxVucm.d.cts +1 -2
- package/dist/index-DolOVX6F.d.ts +1 -2
- package/dist/index.cjs +13 -6
- package/dist/index.d.cts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +13 -6
- package/dist/{init-D6n2diBy.d.ts → init-BHp-kqLJ.d.ts} +12 -4
- package/dist/{init-XzXzrarP.d.cts → init-BoIYyB6Q.d.cts} +12 -4
- package/dist/{init-C3RApHKJ.cjs → init-CzNFWUd8.cjs} +38 -5
- package/dist/{init-R-gSEXkJ.js → init-DDkh2brw.js} +38 -5
- package/dist/instrumentation.cjs +2 -3
- package/dist/instrumentation.d.cts +1 -2
- package/dist/instrumentation.d.ts +1 -2
- package/dist/instrumentation.js +2 -3
- package/dist/logger-CN4xpzMd.d.cts +1 -2
- package/dist/logger-CN4xpzMd.d.ts +1 -2
- package/dist/logger-D3Ej3DII.js +1 -2
- package/dist/logger-thMPLpOG.cjs +1 -2
- package/dist/messaging-adapters.cjs +1 -2
- package/dist/messaging-adapters.d.cts +1 -2
- package/dist/messaging-adapters.d.ts +1 -2
- package/dist/messaging-adapters.js +1 -2
- package/dist/messaging-testing.cjs +1 -2
- package/dist/messaging-testing.d.cts +1 -2
- package/dist/messaging-testing.d.ts +1 -2
- package/dist/messaging-testing.js +1 -2
- package/dist/messaging.cjs +2 -3
- package/dist/messaging.d.cts +1 -2
- package/dist/messaging.d.ts +1 -2
- package/dist/messaging.js +2 -3
- package/dist/metric-helpers.cjs +1 -2
- package/dist/metric-helpers.d.cts +1 -2
- package/dist/metric-helpers.d.ts +1 -2
- package/dist/metric-helpers.js +1 -2
- package/dist/metric-testing-CWm6UhaR.d.ts +1 -2
- package/dist/metric-testing-CpvP3ZIa.d.cts +1 -2
- package/dist/metric-testing.cjs +1 -2
- package/dist/metric-testing.js +1 -2
- package/dist/metric.cjs +1 -2
- package/dist/metric.d.cts +1 -2
- package/dist/metric.d.ts +1 -2
- package/dist/metric.js +1 -2
- package/dist/node-require-PFqDihze.cjs +1 -2
- package/dist/node-require-vROmTeJ8.js +1 -2
- package/dist/parse-error.cjs +1 -2
- package/dist/parse-error.d.cts +1 -2
- package/dist/parse-error.d.ts +1 -2
- package/dist/parse-error.js +1 -2
- package/dist/pretty-console-exporter-CMzlrRNg.cjs +1 -2
- package/dist/pretty-console-exporter-DqKl_q9z.js +1 -2
- package/dist/register.cjs +1 -2
- package/dist/register.js +1 -2
- package/dist/registry-DVSmWg6Y.js +1 -2
- package/dist/registry-DYgvb62e.cjs +1 -2
- package/dist/sampling-BR9fkSwx.d.cts +1 -2
- package/dist/sampling-CP3e7-Yr.d.ts +1 -2
- package/dist/sampling.cjs +1 -2
- package/dist/sampling.js +1 -2
- package/dist/security-schema.cjs +1 -2
- package/dist/security-schema.d.cts +1 -2
- package/dist/security-schema.d.ts +1 -2
- package/dist/security-schema.js +1 -2
- package/dist/semantic-conventions-FhSxv-bK.d.cts +1 -2
- package/dist/semantic-conventions-FhSxv-bK.d.ts +1 -2
- package/dist/semantic-conventions.cjs +1 -2
- package/dist/semantic-conventions.js +1 -2
- package/dist/semantic-helpers.cjs +2 -3
- package/dist/semantic-helpers.d.cts +1 -2
- package/dist/semantic-helpers.d.ts +1 -2
- package/dist/semantic-helpers.js +2 -3
- package/dist/slo.cjs +1 -2
- package/dist/slo.d.cts +1 -2
- package/dist/slo.d.ts +1 -2
- package/dist/slo.js +1 -2
- package/dist/span-name-normalizer-CN1-8C76.d.cts +1 -2
- package/dist/span-name-normalizer-CN1-8C76.d.ts +1 -2
- package/dist/span-name-normalizer.cjs +1 -2
- package/dist/span-name-normalizer.js +1 -2
- package/dist/stable-hash-CS9BxvVQ.cjs +1 -2
- package/dist/stable-hash-ChFBIhNt.js +1 -2
- package/dist/structured-error-9--cxBay.js +1 -2
- package/dist/structured-error-CHg7DoIQ.cjs +1 -2
- package/dist/tail-sampling-processor.cjs +1 -2
- package/dist/tail-sampling-processor.d.cts +1 -2
- package/dist/tail-sampling-processor.d.ts +1 -2
- package/dist/tail-sampling-processor.js +1 -2
- package/dist/test-span-collector.cjs +1 -2
- package/dist/test-span-collector.d.cts +1 -2
- package/dist/test-span-collector.d.ts +1 -2
- package/dist/test-span-collector.js +1 -2
- package/dist/testing.cjs +1 -2
- package/dist/testing.d.cts +1 -2
- package/dist/testing.d.ts +1 -2
- package/dist/testing.js +1 -2
- package/dist/trace-context-IuyoPyNq.d.cts +1 -2
- package/dist/trace-context-IuyoPyNq.d.ts +1 -2
- package/dist/trace-factory-validation-BjVAinz6.js +1 -2
- package/dist/trace-factory-validation-Dc8epn87.cjs +1 -2
- package/dist/trace-helpers.cjs +1 -2
- package/dist/trace-helpers.d.cts +1 -2
- package/dist/trace-helpers.d.ts +1 -2
- package/dist/trace-helpers.js +1 -2
- package/dist/tracer-provider.cjs +1 -2
- package/dist/tracer-provider.d.cts +1 -2
- package/dist/tracer-provider.d.ts +1 -2
- package/dist/tracer-provider.js +1 -2
- package/dist/validate.cjs +1 -2
- package/dist/validate.d.cts +1 -2
- package/dist/validate.d.ts +1 -2
- package/dist/validate.js +1 -2
- package/dist/validation-attributes.cjs +1 -2
- package/dist/validation-attributes.d.cts +1 -2
- package/dist/validation-attributes.d.ts +1 -2
- package/dist/validation-attributes.js +1 -2
- package/dist/webhook.cjs +2 -3
- package/dist/webhook.d.cts +1 -2
- package/dist/webhook.d.ts +1 -2
- package/dist/webhook.js +2 -3
- package/dist/workflow-distributed.cjs +2 -3
- package/dist/workflow-distributed.d.cts +1 -2
- package/dist/workflow-distributed.d.ts +1 -2
- package/dist/workflow-distributed.js +2 -3
- package/dist/workflow.cjs +2 -3
- package/dist/workflow.d.cts +1 -2
- package/dist/workflow.d.ts +1 -2
- package/dist/workflow.js +2 -3
- package/dist/yaml-config.cjs +1 -2
- package/dist/yaml-config.d.cts +4 -5
- package/dist/yaml-config.d.ts +4 -5
- package/dist/yaml-config.js +1 -2
- package/package.json +47 -32
- package/dist/analysis.cjs.map +0 -1
- package/dist/analysis.d.cts.map +0 -1
- package/dist/analysis.d.ts.map +0 -1
- package/dist/analysis.js.map +0 -1
- package/dist/attribute-redacting-processor-Pk7lAzWd.d.cts.map +0 -1
- package/dist/attribute-redacting-processor-Pk7lAzWd.d.ts.map +0 -1
- package/dist/attribute-redacting-processor.cjs.map +0 -1
- package/dist/attribute-redacting-processor.js.map +0 -1
- package/dist/attributes-B7wix2VG.js.map +0 -1
- package/dist/attributes-aDmJYral.cjs.map +0 -1
- package/dist/auto.cjs.map +0 -1
- package/dist/auto.js.map +0 -1
- package/dist/business-baggage.cjs.map +0 -1
- package/dist/business-baggage.d.cts.map +0 -1
- package/dist/business-baggage.d.ts.map +0 -1
- package/dist/business-baggage.js.map +0 -1
- package/dist/canonical-log-line-processor-B4WgG-VS.d.cts.map +0 -1
- package/dist/canonical-log-line-processor-CL_J7gb5.d.ts.map +0 -1
- package/dist/canonical-log-line-processor-DOjb6Kxy.cjs.map +0 -1
- package/dist/canonical-log-line-processor-mKABvGP0.js.map +0 -1
- package/dist/config.cjs.map +0 -1
- package/dist/config.d.cts.map +0 -1
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js.map +0 -1
- package/dist/correlated-events-Bzh5y-UB.js.map +0 -1
- package/dist/correlated-events-kSwLo3mi.cjs.map +0 -1
- package/dist/correlation-id.d.cts.map +0 -1
- package/dist/correlation-id.d.ts.map +0 -1
- package/dist/db.cjs.map +0 -1
- package/dist/db.d.cts.map +0 -1
- package/dist/db.d.ts.map +0 -1
- package/dist/db.js.map +0 -1
- package/dist/decorators.cjs.map +0 -1
- package/dist/decorators.d.cts.map +0 -1
- package/dist/decorators.d.ts.map +0 -1
- package/dist/decorators.js.map +0 -1
- package/dist/define-event-B2z1SBe7.d.ts.map +0 -1
- package/dist/define-event-CGG048HE.d.cts.map +0 -1
- package/dist/diagnostics.cjs.map +0 -1
- package/dist/diagnostics.d.cts.map +0 -1
- package/dist/diagnostics.d.ts.map +0 -1
- package/dist/diagnostics.js.map +0 -1
- package/dist/drain-pipeline.cjs.map +0 -1
- package/dist/drain-pipeline.d.cts.map +0 -1
- package/dist/drain-pipeline.d.ts.map +0 -1
- package/dist/drain-pipeline.js.map +0 -1
- package/dist/enrichers.cjs.map +0 -1
- package/dist/enrichers.d.cts.map +0 -1
- package/dist/enrichers.d.ts.map +0 -1
- package/dist/enrichers.js.map +0 -1
- package/dist/event-subscriber-CWh8sTGh.d.cts.map +0 -1
- package/dist/event-subscriber-CWh8sTGh.d.ts.map +0 -1
- package/dist/event-testing-CA2mIx1E.d.ts.map +0 -1
- package/dist/event-testing-D0qWfqAy.d.cts.map +0 -1
- package/dist/event-testing.cjs.map +0 -1
- package/dist/event-testing.js.map +0 -1
- package/dist/event.d.cts.map +0 -1
- package/dist/event.d.ts.map +0 -1
- package/dist/exporters.d.cts.map +0 -1
- package/dist/exporters.d.ts.map +0 -1
- package/dist/filtering-span-processor-BpDagWNa.d.cts.map +0 -1
- package/dist/filtering-span-processor-BpDagWNa.d.ts.map +0 -1
- package/dist/filtering-span-processor.cjs.map +0 -1
- package/dist/filtering-span-processor.js.map +0 -1
- package/dist/functional-BnDUxnSl.js.map +0 -1
- package/dist/functional-DcLBuCPz.cjs.map +0 -1
- package/dist/functional.d.cts.map +0 -1
- package/dist/functional.d.ts.map +0 -1
- package/dist/http.cjs.map +0 -1
- package/dist/http.d.cts.map +0 -1
- package/dist/http.d.ts.map +0 -1
- package/dist/http.js.map +0 -1
- package/dist/index-BPcxVucm.d.cts.map +0 -1
- package/dist/index-DolOVX6F.d.ts.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/init-C3RApHKJ.cjs.map +0 -1
- package/dist/init-D6n2diBy.d.ts.map +0 -1
- package/dist/init-R-gSEXkJ.js.map +0 -1
- package/dist/init-XzXzrarP.d.cts.map +0 -1
- package/dist/instrumentation.cjs.map +0 -1
- package/dist/instrumentation.d.cts.map +0 -1
- package/dist/instrumentation.d.ts.map +0 -1
- package/dist/instrumentation.js.map +0 -1
- package/dist/logger-CN4xpzMd.d.cts.map +0 -1
- package/dist/logger-CN4xpzMd.d.ts.map +0 -1
- package/dist/logger-D3Ej3DII.js.map +0 -1
- package/dist/logger-thMPLpOG.cjs.map +0 -1
- package/dist/messaging-adapters.cjs.map +0 -1
- package/dist/messaging-adapters.d.cts.map +0 -1
- package/dist/messaging-adapters.d.ts.map +0 -1
- package/dist/messaging-adapters.js.map +0 -1
- package/dist/messaging-testing.cjs.map +0 -1
- package/dist/messaging-testing.d.cts.map +0 -1
- package/dist/messaging-testing.d.ts.map +0 -1
- package/dist/messaging-testing.js.map +0 -1
- package/dist/messaging.cjs.map +0 -1
- package/dist/messaging.d.cts.map +0 -1
- package/dist/messaging.d.ts.map +0 -1
- package/dist/messaging.js.map +0 -1
- package/dist/metric-helpers.cjs.map +0 -1
- package/dist/metric-helpers.d.cts.map +0 -1
- package/dist/metric-helpers.d.ts.map +0 -1
- package/dist/metric-helpers.js.map +0 -1
- package/dist/metric-testing-CWm6UhaR.d.ts.map +0 -1
- package/dist/metric-testing-CpvP3ZIa.d.cts.map +0 -1
- package/dist/metric-testing.cjs.map +0 -1
- package/dist/metric-testing.js.map +0 -1
- package/dist/metric.cjs.map +0 -1
- package/dist/metric.d.cts.map +0 -1
- package/dist/metric.d.ts.map +0 -1
- package/dist/metric.js.map +0 -1
- package/dist/node-require-PFqDihze.cjs.map +0 -1
- package/dist/node-require-vROmTeJ8.js.map +0 -1
- package/dist/parse-error.cjs.map +0 -1
- package/dist/parse-error.d.cts.map +0 -1
- package/dist/parse-error.d.ts.map +0 -1
- package/dist/parse-error.js.map +0 -1
- package/dist/pretty-console-exporter-CMzlrRNg.cjs.map +0 -1
- package/dist/pretty-console-exporter-DqKl_q9z.js.map +0 -1
- package/dist/register.cjs.map +0 -1
- package/dist/register.js.map +0 -1
- package/dist/registry-DVSmWg6Y.js.map +0 -1
- package/dist/registry-DYgvb62e.cjs.map +0 -1
- package/dist/sampling-BR9fkSwx.d.cts.map +0 -1
- package/dist/sampling-CP3e7-Yr.d.ts.map +0 -1
- package/dist/sampling.cjs.map +0 -1
- package/dist/sampling.js.map +0 -1
- package/dist/security-schema.cjs.map +0 -1
- package/dist/security-schema.d.cts.map +0 -1
- package/dist/security-schema.d.ts.map +0 -1
- package/dist/security-schema.js.map +0 -1
- package/dist/semantic-conventions-FhSxv-bK.d.cts.map +0 -1
- package/dist/semantic-conventions-FhSxv-bK.d.ts.map +0 -1
- package/dist/semantic-conventions.cjs.map +0 -1
- package/dist/semantic-conventions.js.map +0 -1
- package/dist/semantic-helpers.cjs.map +0 -1
- package/dist/semantic-helpers.d.cts.map +0 -1
- package/dist/semantic-helpers.d.ts.map +0 -1
- package/dist/semantic-helpers.js.map +0 -1
- package/dist/slo.cjs.map +0 -1
- package/dist/slo.d.cts.map +0 -1
- package/dist/slo.d.ts.map +0 -1
- package/dist/slo.js.map +0 -1
- package/dist/span-name-normalizer-CN1-8C76.d.cts.map +0 -1
- package/dist/span-name-normalizer-CN1-8C76.d.ts.map +0 -1
- package/dist/span-name-normalizer.cjs.map +0 -1
- package/dist/span-name-normalizer.js.map +0 -1
- package/dist/stable-hash-CS9BxvVQ.cjs.map +0 -1
- package/dist/stable-hash-ChFBIhNt.js.map +0 -1
- package/dist/structured-error-9--cxBay.js.map +0 -1
- package/dist/structured-error-CHg7DoIQ.cjs.map +0 -1
- package/dist/tail-sampling-processor.cjs.map +0 -1
- package/dist/tail-sampling-processor.d.cts.map +0 -1
- package/dist/tail-sampling-processor.d.ts.map +0 -1
- package/dist/tail-sampling-processor.js.map +0 -1
- package/dist/test-span-collector.cjs.map +0 -1
- package/dist/test-span-collector.d.cts.map +0 -1
- package/dist/test-span-collector.d.ts.map +0 -1
- package/dist/test-span-collector.js.map +0 -1
- package/dist/testing.cjs.map +0 -1
- package/dist/testing.d.cts.map +0 -1
- package/dist/testing.d.ts.map +0 -1
- package/dist/testing.js.map +0 -1
- package/dist/trace-context-IuyoPyNq.d.cts.map +0 -1
- package/dist/trace-context-IuyoPyNq.d.ts.map +0 -1
- package/dist/trace-factory-validation-BjVAinz6.js.map +0 -1
- package/dist/trace-factory-validation-Dc8epn87.cjs.map +0 -1
- package/dist/trace-helpers.cjs.map +0 -1
- package/dist/trace-helpers.d.cts.map +0 -1
- package/dist/trace-helpers.d.ts.map +0 -1
- package/dist/trace-helpers.js.map +0 -1
- package/dist/tracer-provider.cjs.map +0 -1
- package/dist/tracer-provider.d.cts.map +0 -1
- package/dist/tracer-provider.d.ts.map +0 -1
- package/dist/tracer-provider.js.map +0 -1
- package/dist/validate.cjs.map +0 -1
- package/dist/validate.d.cts.map +0 -1
- package/dist/validate.d.ts.map +0 -1
- package/dist/validate.js.map +0 -1
- package/dist/validation-attributes.cjs.map +0 -1
- package/dist/validation-attributes.d.cts.map +0 -1
- package/dist/validation-attributes.d.ts.map +0 -1
- package/dist/validation-attributes.js.map +0 -1
- package/dist/webhook.cjs.map +0 -1
- package/dist/webhook.d.cts.map +0 -1
- package/dist/webhook.d.ts.map +0 -1
- package/dist/webhook.js.map +0 -1
- package/dist/workflow-distributed.cjs.map +0 -1
- package/dist/workflow-distributed.d.cts.map +0 -1
- package/dist/workflow-distributed.d.ts.map +0 -1
- package/dist/workflow-distributed.js.map +0 -1
- package/dist/workflow.cjs.map +0 -1
- package/dist/workflow.d.cts.map +0 -1
- package/dist/workflow.d.ts.map +0 -1
- package/dist/workflow.js.map +0 -1
- package/dist/yaml-config.cjs.map +0 -1
- package/dist/yaml-config.d.cts.map +0 -1
- package/dist/yaml-config.d.ts.map +0 -1
- package/dist/yaml-config.js.map +0 -1
package/README.md
CHANGED
|
@@ -1827,6 +1827,8 @@ export const checkout = withTracing({})((ctx) => async (order: Order) => {
|
|
|
1827
1827
|
log.set({
|
|
1828
1828
|
cart: { total_cents: order.totalCents, item_count: order.items.length },
|
|
1829
1829
|
});
|
|
1830
|
+
// Set snapshot severity without fabricating a log event or exception.
|
|
1831
|
+
log.setLevel('info');
|
|
1830
1832
|
|
|
1831
1833
|
try {
|
|
1832
1834
|
await processPayment(order);
|
|
@@ -1849,6 +1851,9 @@ export const checkout = withTracing({})((ctx) => async (order: Order) => {
|
|
|
1849
1851
|
You also get:
|
|
1850
1852
|
|
|
1851
1853
|
- `log.getContext()` to inspect the accumulated request context.
|
|
1854
|
+
- `log.setLevel('debug' | 'info' | 'warn' | 'error')` to set canonical snapshot
|
|
1855
|
+
severity explicitly. An explicit level wins over later inferred warn/error
|
|
1856
|
+
levels.
|
|
1852
1857
|
- `log.emitNow(overrides?)` to capture an immediate snapshot (emits a correlated log-style snapshot
|
|
1853
1858
|
and returns `{ timestamp, traceId, spanId, correlationId, context }`).
|
|
1854
1859
|
|
|
@@ -1862,7 +1867,15 @@ import { createDrainPipeline, init } from 'autotel';
|
|
|
1862
1867
|
|
|
1863
1868
|
const pipeline = createDrainPipeline({
|
|
1864
1869
|
batch: { size: 50, intervalMs: 2000 },
|
|
1865
|
-
retry: {
|
|
1870
|
+
retry: {
|
|
1871
|
+
maxAttempts: 3,
|
|
1872
|
+
backoff: 'exponential',
|
|
1873
|
+
// Do not retry permanent client errors. Keep 429 retryable if desired.
|
|
1874
|
+
shouldRetry: (error) =>
|
|
1875
|
+
!(error instanceof HttpError) ||
|
|
1876
|
+
error.status === 429 ||
|
|
1877
|
+
error.status >= 500,
|
|
1878
|
+
},
|
|
1866
1879
|
maxBufferSize: 1000,
|
|
1867
1880
|
});
|
|
1868
1881
|
|
package/dist/analysis.cjs
CHANGED
package/dist/analysis.d.cts
CHANGED
|
@@ -83,5 +83,4 @@ interface CompareCohortsOptions {
|
|
|
83
83
|
*/
|
|
84
84
|
declare function compareCohorts(options: CompareCohortsOptions): CohortDifference[];
|
|
85
85
|
//#endregion
|
|
86
|
-
export { AnalysisEvent, CohortDifference, CompareCohortsOptions, compareCohorts };
|
|
87
|
-
//# sourceMappingURL=analysis.d.cts.map
|
|
86
|
+
export { AnalysisEvent, CohortDifference, CompareCohortsOptions, compareCohorts };
|
package/dist/analysis.d.ts
CHANGED
|
@@ -83,5 +83,4 @@ interface CompareCohortsOptions {
|
|
|
83
83
|
*/
|
|
84
84
|
declare function compareCohorts(options: CompareCohortsOptions): CohortDifference[];
|
|
85
85
|
//#endregion
|
|
86
|
-
export { AnalysisEvent, CohortDifference, CompareCohortsOptions, compareCohorts };
|
|
87
|
-
//# sourceMappingURL=analysis.d.ts.map
|
|
86
|
+
export { AnalysisEvent, CohortDifference, CompareCohortsOptions, compareCohorts };
|
package/dist/analysis.js
CHANGED
|
@@ -176,5 +176,4 @@ declare class AttributeRedactingProcessor implements SpanProcessor {
|
|
|
176
176
|
shutdown(): Promise<void>;
|
|
177
177
|
}
|
|
178
178
|
//#endregion
|
|
179
|
-
export { AttributeRedactorPreset as a, REDACTOR_PATTERNS as c, builtinPatterns as d, createAttributeRedactor as f, AttributeRedactorFn as i, REDACTOR_PRESETS as l, normalizeAttributeRedactorConfig as m, AttributeRedactingProcessorOptions as n, BuiltinPatternName as o, createRedactedSpan as p, AttributeRedactorConfig as r, MaskFn as s, AttributeRedactingProcessor as t, ValuePatternConfig as u };
|
|
180
|
-
//# sourceMappingURL=attribute-redacting-processor-Pk7lAzWd.d.cts.map
|
|
179
|
+
export { AttributeRedactorPreset as a, REDACTOR_PATTERNS as c, builtinPatterns as d, createAttributeRedactor as f, AttributeRedactorFn as i, REDACTOR_PRESETS as l, normalizeAttributeRedactorConfig as m, AttributeRedactingProcessorOptions as n, BuiltinPatternName as o, createRedactedSpan as p, AttributeRedactorConfig as r, MaskFn as s, AttributeRedactingProcessor as t, ValuePatternConfig as u };
|
|
@@ -176,5 +176,4 @@ declare class AttributeRedactingProcessor implements SpanProcessor {
|
|
|
176
176
|
shutdown(): Promise<void>;
|
|
177
177
|
}
|
|
178
178
|
//#endregion
|
|
179
|
-
export { AttributeRedactorPreset as a, REDACTOR_PATTERNS as c, builtinPatterns as d, createAttributeRedactor as f, AttributeRedactorFn as i, REDACTOR_PRESETS as l, normalizeAttributeRedactorConfig as m, AttributeRedactingProcessorOptions as n, BuiltinPatternName as o, createRedactedSpan as p, AttributeRedactorConfig as r, MaskFn as s, AttributeRedactingProcessor as t, ValuePatternConfig as u };
|
|
180
|
-
//# sourceMappingURL=attribute-redacting-processor-Pk7lAzWd.d.ts.map
|
|
179
|
+
export { AttributeRedactorPreset as a, REDACTOR_PATTERNS as c, builtinPatterns as d, createAttributeRedactor as f, AttributeRedactorFn as i, REDACTOR_PRESETS as l, normalizeAttributeRedactorConfig as m, AttributeRedactingProcessorOptions as n, BuiltinPatternName as o, createRedactedSpan as p, AttributeRedactorConfig as r, MaskFn as s, AttributeRedactingProcessor as t, ValuePatternConfig as u };
|
|
@@ -373,5 +373,4 @@ exports.REDACTOR_PRESETS = REDACTOR_PRESETS;
|
|
|
373
373
|
exports.builtinPatterns = builtinPatterns;
|
|
374
374
|
exports.createAttributeRedactor = createAttributeRedactor;
|
|
375
375
|
exports.createRedactedSpan = createRedactedSpan;
|
|
376
|
-
exports.normalizeAttributeRedactorConfig = normalizeAttributeRedactorConfig;
|
|
377
|
-
//# sourceMappingURL=attribute-redacting-processor.cjs.map
|
|
376
|
+
exports.normalizeAttributeRedactorConfig = normalizeAttributeRedactorConfig;
|
|
@@ -365,5 +365,4 @@ var AttributeRedactingProcessor = class {
|
|
|
365
365
|
};
|
|
366
366
|
|
|
367
367
|
//#endregion
|
|
368
|
-
export { AttributeRedactingProcessor, REDACTOR_PATTERNS, REDACTOR_PRESETS, builtinPatterns, createAttributeRedactor, createRedactedSpan, normalizeAttributeRedactorConfig };
|
|
369
|
-
//# sourceMappingURL=attribute-redacting-processor.js.map
|
|
368
|
+
export { AttributeRedactingProcessor, REDACTOR_PATTERNS, REDACTOR_PRESETS, builtinPatterns, createAttributeRedactor, createRedactedSpan, normalizeAttributeRedactorConfig };
|
|
@@ -587,5 +587,4 @@ function transaction(spanOrContext, config, guardrails) {
|
|
|
587
587
|
}
|
|
588
588
|
|
|
589
589
|
//#endregion
|
|
590
|
-
export { defaultGuardrails as _, identify as a, setDevice as c, setSession as d, setUser as f, checkDeprecatedAttribute as g, autoRedactPII as h, httpServer as i, setError as l, safeSetAttributes as m, dbClient as n, mergeServiceResource as o, mergeAttrs as p, httpClient as r, request as s, transaction as t, setException as u, validateAttribute as v, attrs as y };
|
|
591
|
-
//# sourceMappingURL=attributes-B7wix2VG.js.map
|
|
590
|
+
export { defaultGuardrails as _, identify as a, setDevice as c, setSession as d, setUser as f, checkDeprecatedAttribute as g, autoRedactPII as h, httpServer as i, setError as l, safeSetAttributes as m, dbClient as n, mergeServiceResource as o, mergeAttrs as p, httpClient as r, request as s, transaction as t, setException as u, validateAttribute as v, attrs as y };
|
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-
|
|
2
|
+
const require_init = require('./init-CzNFWUd8.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);
|
|
@@ -51,5 +51,4 @@ require_init.init({
|
|
|
51
51
|
autoInstrumentations
|
|
52
52
|
});
|
|
53
53
|
|
|
54
|
-
//#endregion
|
|
55
|
-
//# sourceMappingURL=auto.cjs.map
|
|
54
|
+
//#endregion
|
package/dist/auto.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as init } from "./init-
|
|
1
|
+
import { i as init } from "./init-DDkh2brw.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";
|
|
@@ -50,5 +50,4 @@ init({
|
|
|
50
50
|
});
|
|
51
51
|
|
|
52
52
|
//#endregion
|
|
53
|
-
export { };
|
|
54
|
-
//# sourceMappingURL=auto.js.map
|
|
53
|
+
export { };
|
|
@@ -356,5 +356,4 @@ const BusinessBaggage = createSafeBaggageSchema({
|
|
|
356
356
|
|
|
357
357
|
//#endregion
|
|
358
358
|
exports.BusinessBaggage = BusinessBaggage;
|
|
359
|
-
exports.createSafeBaggageSchema = createSafeBaggageSchema;
|
|
360
|
-
//# sourceMappingURL=business-baggage.cjs.map
|
|
359
|
+
exports.createSafeBaggageSchema = createSafeBaggageSchema;
|
|
@@ -185,5 +185,4 @@ type BusinessBaggageValues = {
|
|
|
185
185
|
channel?: 'web' | 'mobile' | 'api' | 'internal' | 'webhook' | 'scheduled';
|
|
186
186
|
};
|
|
187
187
|
//#endregion
|
|
188
|
-
export { BaggageError, BaggageFieldDefinition, BaggageFieldType, BaggageSchemaDefinition, BusinessBaggage, BusinessBaggageValues, InferBaggageType, SafeBaggageOptions, SafeBaggageSchema, createSafeBaggageSchema };
|
|
189
|
-
//# sourceMappingURL=business-baggage.d.cts.map
|
|
188
|
+
export { BaggageError, BaggageFieldDefinition, BaggageFieldType, BaggageSchemaDefinition, BusinessBaggage, BusinessBaggageValues, InferBaggageType, SafeBaggageOptions, SafeBaggageSchema, createSafeBaggageSchema };
|
|
@@ -185,5 +185,4 @@ type BusinessBaggageValues = {
|
|
|
185
185
|
channel?: 'web' | 'mobile' | 'api' | 'internal' | 'webhook' | 'scheduled';
|
|
186
186
|
};
|
|
187
187
|
//#endregion
|
|
188
|
-
export { BaggageError, BaggageFieldDefinition, BaggageFieldType, BaggageSchemaDefinition, BusinessBaggage, BusinessBaggageValues, InferBaggageType, SafeBaggageOptions, SafeBaggageSchema, createSafeBaggageSchema };
|
|
189
|
-
//# sourceMappingURL=business-baggage.d.ts.map
|
|
188
|
+
export { BaggageError, BaggageFieldDefinition, BaggageFieldType, BaggageSchemaDefinition, BusinessBaggage, BusinessBaggageValues, InferBaggageType, SafeBaggageOptions, SafeBaggageSchema, createSafeBaggageSchema };
|
package/dist/business-baggage.js
CHANGED
|
@@ -142,5 +142,4 @@ declare class CanonicalLogLineProcessor implements SpanProcessor {
|
|
|
142
142
|
shutdown(): Promise<void>;
|
|
143
143
|
}
|
|
144
144
|
//#endregion
|
|
145
|
-
export { CanonicalLogLineProcessor as n, CanonicalLogLineOptions as t };
|
|
146
|
-
//# sourceMappingURL=canonical-log-line-processor-B4WgG-VS.d.cts.map
|
|
145
|
+
export { CanonicalLogLineProcessor as n, CanonicalLogLineOptions as t };
|
|
@@ -142,5 +142,4 @@ declare class CanonicalLogLineProcessor implements SpanProcessor {
|
|
|
142
142
|
shutdown(): Promise<void>;
|
|
143
143
|
}
|
|
144
144
|
//#endregion
|
|
145
|
-
export { CanonicalLogLineProcessor as n, CanonicalLogLineOptions as t };
|
|
146
|
-
//# sourceMappingURL=canonical-log-line-processor-CL_J7gb5.d.ts.map
|
|
145
|
+
export { CanonicalLogLineProcessor as n, CanonicalLogLineOptions as t };
|
|
@@ -362,5 +362,4 @@ var CanonicalLogLineProcessor = class {
|
|
|
362
362
|
};
|
|
363
363
|
|
|
364
364
|
//#endregion
|
|
365
|
-
export { formatDuration as n, CanonicalLogLineProcessor as t };
|
|
366
|
-
//# sourceMappingURL=canonical-log-line-processor-mKABvGP0.js.map
|
|
365
|
+
export { formatDuration as n, CanonicalLogLineProcessor as t };
|
package/dist/config.cjs
CHANGED
package/dist/config.d.cts
CHANGED
|
@@ -67,5 +67,4 @@ declare function getConfig(): Required<RuntimeConfig> & {
|
|
|
67
67
|
*/
|
|
68
68
|
declare function resetConfig(): void;
|
|
69
69
|
//#endregion
|
|
70
|
-
export { FEATURE_FLAGS, type ILogger, RuntimeConfig, configure, getConfig, resetConfig };
|
|
71
|
-
//# sourceMappingURL=config.d.cts.map
|
|
70
|
+
export { FEATURE_FLAGS, type ILogger, RuntimeConfig, configure, getConfig, resetConfig };
|
package/dist/config.d.ts
CHANGED
|
@@ -67,5 +67,4 @@ declare function getConfig(): Required<RuntimeConfig> & {
|
|
|
67
67
|
*/
|
|
68
68
|
declare function resetConfig(): void;
|
|
69
69
|
//#endregion
|
|
70
|
-
export { FEATURE_FLAGS, type ILogger, RuntimeConfig, configure, getConfig, resetConfig };
|
|
71
|
-
//# sourceMappingURL=config.d.ts.map
|
|
70
|
+
export { FEATURE_FLAGS, type ILogger, RuntimeConfig, configure, getConfig, resetConfig };
|
package/dist/config.js
CHANGED
package/dist/correlation-id.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_init = require('./init-
|
|
2
|
+
const require_init = require('./init-CzNFWUd8.cjs');
|
|
3
3
|
|
|
4
4
|
exports.CORRELATION_ID_BAGGAGE_KEY = require_init.CORRELATION_ID_BAGGAGE_KEY;
|
|
5
5
|
exports.generateCorrelationId = require_init.generateCorrelationId;
|
|
@@ -116,5 +116,4 @@ declare function setCorrelationIdInBaggage(correlationId: string): import('@open
|
|
|
116
116
|
*/
|
|
117
117
|
declare function getCorrelationStorage(): AsyncLocalStorage<CorrelationStore>;
|
|
118
118
|
//#endregion
|
|
119
|
-
export { CORRELATION_ID_BAGGAGE_KEY, generateCorrelationId, getCorrelationId, getCorrelationStorage, getOrCreateCorrelationId, runWithCorrelationId, setCorrelationId, setCorrelationIdInBaggage };
|
|
120
|
-
//# sourceMappingURL=correlation-id.d.cts.map
|
|
119
|
+
export { CORRELATION_ID_BAGGAGE_KEY, generateCorrelationId, getCorrelationId, getCorrelationStorage, getOrCreateCorrelationId, runWithCorrelationId, setCorrelationId, setCorrelationIdInBaggage };
|
package/dist/correlation-id.d.ts
CHANGED
|
@@ -116,5 +116,4 @@ declare function setCorrelationIdInBaggage(correlationId: string): import('@open
|
|
|
116
116
|
*/
|
|
117
117
|
declare function getCorrelationStorage(): AsyncLocalStorage<CorrelationStore>;
|
|
118
118
|
//#endregion
|
|
119
|
-
export { CORRELATION_ID_BAGGAGE_KEY, generateCorrelationId, getCorrelationId, getCorrelationStorage, getOrCreateCorrelationId, runWithCorrelationId, setCorrelationId, setCorrelationIdInBaggage };
|
|
120
|
-
//# sourceMappingURL=correlation-id.d.ts.map
|
|
119
|
+
export { CORRELATION_ID_BAGGAGE_KEY, generateCorrelationId, getCorrelationId, getCorrelationStorage, getOrCreateCorrelationId, runWithCorrelationId, setCorrelationId, setCorrelationIdInBaggage };
|
package/dist/correlation-id.js
CHANGED
|
@@ -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-
|
|
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-DDkh2brw.js";
|
|
2
2
|
|
|
3
3
|
export { CORRELATION_ID_BAGGAGE_KEY, generateCorrelationId, getCorrelationId, getCorrelationStorage, getOrCreateCorrelationId, runWithCorrelationId, setCorrelationId, setCorrelationIdInBaggage };
|
package/dist/db.cjs
CHANGED
|
@@ -263,5 +263,4 @@ function extractQueryFromArgs(args) {
|
|
|
263
263
|
exports.DB_OPERATIONS = DB_OPERATIONS;
|
|
264
264
|
exports.DB_SYSTEMS = DB_SYSTEMS;
|
|
265
265
|
exports.instrumentDatabase = instrumentDatabase;
|
|
266
|
-
exports.tracebQuery = tracebQuery;
|
|
267
|
-
//# sourceMappingURL=db.cjs.map
|
|
266
|
+
exports.tracebQuery = tracebQuery;
|
package/dist/db.d.cts
CHANGED
|
@@ -121,5 +121,4 @@ interface InstrumentDatabaseOptions {
|
|
|
121
121
|
*/
|
|
122
122
|
declare function instrumentDatabase<T extends object>(client: T, options: InstrumentDatabaseOptions): T;
|
|
123
123
|
//#endregion
|
|
124
|
-
export { DB_OPERATIONS, DB_SYSTEMS, InstrumentDatabaseOptions, instrumentDatabase, tracebQuery };
|
|
125
|
-
//# sourceMappingURL=db.d.cts.map
|
|
124
|
+
export { DB_OPERATIONS, DB_SYSTEMS, InstrumentDatabaseOptions, instrumentDatabase, tracebQuery };
|
package/dist/db.d.ts
CHANGED
|
@@ -121,5 +121,4 @@ interface InstrumentDatabaseOptions {
|
|
|
121
121
|
*/
|
|
122
122
|
declare function instrumentDatabase<T extends object>(client: T, options: InstrumentDatabaseOptions): T;
|
|
123
123
|
//#endregion
|
|
124
|
-
export { DB_OPERATIONS, DB_SYSTEMS, InstrumentDatabaseOptions, instrumentDatabase, tracebQuery };
|
|
125
|
-
//# sourceMappingURL=db.d.ts.map
|
|
124
|
+
export { DB_OPERATIONS, DB_SYSTEMS, InstrumentDatabaseOptions, instrumentDatabase, tracebQuery };
|
package/dist/db.js
CHANGED
package/dist/decorators.cjs
CHANGED
|
@@ -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-
|
|
3
|
+
const require_init = require('./init-CzNFWUd8.cjs');
|
|
4
4
|
let _opentelemetry_api = require("@opentelemetry/api");
|
|
5
5
|
|
|
6
6
|
//#region src/decorators.ts
|
|
@@ -41,5 +41,4 @@ function Trace(nameOrOptions, maybeOptions) {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
//#endregion
|
|
44
|
-
exports.Trace = Trace;
|
|
45
|
-
//# sourceMappingURL=decorators.cjs.map
|
|
44
|
+
exports.Trace = Trace;
|
package/dist/decorators.d.cts
CHANGED
|
@@ -59,5 +59,4 @@ interface TraceDecoratorOptions extends Omit<TracingOptions, 'name'> {
|
|
|
59
59
|
declare function Trace(options?: TraceDecoratorOptions): <T extends (...args: unknown[]) => Promise<unknown>>(originalMethod: T, context: ClassMethodDecoratorContext) => T;
|
|
60
60
|
declare function Trace(name?: string, options?: TraceDecoratorOptions): <T extends (...args: unknown[]) => Promise<unknown>>(originalMethod: T, context: ClassMethodDecoratorContext) => T;
|
|
61
61
|
//#endregion
|
|
62
|
-
export { Trace, type TraceContext, TraceDecoratorOptions, type TracingOptions };
|
|
63
|
-
//# sourceMappingURL=decorators.d.cts.map
|
|
62
|
+
export { Trace, type TraceContext, TraceDecoratorOptions, type TracingOptions };
|
package/dist/decorators.d.ts
CHANGED
|
@@ -59,5 +59,4 @@ interface TraceDecoratorOptions extends Omit<TracingOptions, 'name'> {
|
|
|
59
59
|
declare function Trace(options?: TraceDecoratorOptions): <T extends (...args: unknown[]) => Promise<unknown>>(originalMethod: T, context: ClassMethodDecoratorContext) => T;
|
|
60
60
|
declare function Trace(name?: string, options?: TraceDecoratorOptions): <T extends (...args: unknown[]) => Promise<unknown>>(originalMethod: T, context: ClassMethodDecoratorContext) => T;
|
|
61
61
|
//#endregion
|
|
62
|
-
export { Trace, type TraceContext, TraceDecoratorOptions, type TracingOptions };
|
|
63
|
-
//# sourceMappingURL=decorators.d.ts.map
|
|
62
|
+
export { Trace, type TraceContext, TraceDecoratorOptions, type TracingOptions };
|
package/dist/decorators.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getConfig } from "./config.js";
|
|
2
|
-
import { T as createTraceContext } from "./init-
|
|
2
|
+
import { T as createTraceContext } from "./init-DDkh2brw.js";
|
|
3
3
|
import { SpanStatusCode } from "@opentelemetry/api";
|
|
4
4
|
|
|
5
5
|
//#region src/decorators.ts
|
|
@@ -40,5 +40,4 @@ function Trace(nameOrOptions, maybeOptions) {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
//#endregion
|
|
43
|
-
export { Trace };
|
|
44
|
-
//# sourceMappingURL=decorators.js.map
|
|
43
|
+
export { Trace };
|
|
@@ -20,5 +20,4 @@ interface DefinedEvent<Name extends string, Payload> {
|
|
|
20
20
|
}
|
|
21
21
|
declare function defineEvent<Name extends string, Payload, S extends SchemaLike<Payload>>(name: Name, schema: S, options?: DefineEventOptions<S>): DefinedEvent<Name, Payload>;
|
|
22
22
|
//#endregion
|
|
23
|
-
export { defineEvent as i, DefinedEvent as n, SchemaLike as r, DefineEventOptions as t };
|
|
24
|
-
//# sourceMappingURL=define-event-B2z1SBe7.d.ts.map
|
|
23
|
+
export { defineEvent as i, DefinedEvent as n, SchemaLike as r, DefineEventOptions as t };
|
|
@@ -20,5 +20,4 @@ interface DefinedEvent<Name extends string, Payload> {
|
|
|
20
20
|
}
|
|
21
21
|
declare function defineEvent<Name extends string, Payload, S extends SchemaLike<Payload>>(name: Name, schema: S, options?: DefineEventOptions<S>): DefinedEvent<Name, Payload>;
|
|
22
22
|
//#endregion
|
|
23
|
-
export { defineEvent as i, DefinedEvent as n, SchemaLike as r, DefineEventOptions as t };
|
|
24
|
-
//# sourceMappingURL=define-event-CGG048HE.d.cts.map
|
|
23
|
+
export { defineEvent as i, DefinedEvent as n, SchemaLike as r, DefineEventOptions as t };
|
package/dist/diagnostics.cjs
CHANGED
|
@@ -284,5 +284,4 @@ exports.captureConsole = captureConsole;
|
|
|
284
284
|
exports.diagnosticsChannelAvailable = diagnosticsChannelAvailable;
|
|
285
285
|
exports.instrumentHttp = instrumentHttp;
|
|
286
286
|
exports.subscribeChannel = subscribeChannel;
|
|
287
|
-
exports.subscribeTracingChannel = subscribeTracingChannel;
|
|
288
|
-
//# sourceMappingURL=diagnostics.cjs.map
|
|
287
|
+
exports.subscribeTracingChannel = subscribeTracingChannel;
|
package/dist/diagnostics.d.cts
CHANGED
|
@@ -78,5 +78,4 @@ interface InstrumentHttpOptions {
|
|
|
78
78
|
*/
|
|
79
79
|
declare function instrumentHttp(options?: InstrumentHttpOptions): () => void;
|
|
80
80
|
//#endregion
|
|
81
|
-
export { type CaptureConsoleOptions, type ChannelMessageHandler, type ConsoleLevel, type InstrumentHttpOptions, type TracingChannelHandlers, captureConsole, diagnosticsChannelAvailable, instrumentHttp, subscribeChannel, subscribeTracingChannel };
|
|
82
|
-
//# sourceMappingURL=diagnostics.d.cts.map
|
|
81
|
+
export { type CaptureConsoleOptions, type ChannelMessageHandler, type ConsoleLevel, type InstrumentHttpOptions, type TracingChannelHandlers, captureConsole, diagnosticsChannelAvailable, instrumentHttp, subscribeChannel, subscribeTracingChannel };
|
package/dist/diagnostics.d.ts
CHANGED
|
@@ -78,5 +78,4 @@ interface InstrumentHttpOptions {
|
|
|
78
78
|
*/
|
|
79
79
|
declare function instrumentHttp(options?: InstrumentHttpOptions): () => void;
|
|
80
80
|
//#endregion
|
|
81
|
-
export { type CaptureConsoleOptions, type ChannelMessageHandler, type ConsoleLevel, type InstrumentHttpOptions, type TracingChannelHandlers, captureConsole, diagnosticsChannelAvailable, instrumentHttp, subscribeChannel, subscribeTracingChannel };
|
|
82
|
-
//# sourceMappingURL=diagnostics.d.ts.map
|
|
81
|
+
export { type CaptureConsoleOptions, type ChannelMessageHandler, type ConsoleLevel, type InstrumentHttpOptions, type TracingChannelHandlers, captureConsole, diagnosticsChannelAvailable, instrumentHttp, subscribeChannel, subscribeTracingChannel };
|
package/dist/diagnostics.js
CHANGED
|
@@ -279,5 +279,4 @@ function finishHttpSpan(span, statusCode, errorAt) {
|
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
//#endregion
|
|
282
|
-
export { captureConsole, diagnosticsChannelAvailable, instrumentHttp, subscribeChannel, subscribeTracingChannel };
|
|
283
|
-
//# sourceMappingURL=diagnostics.js.map
|
|
282
|
+
export { captureConsole, diagnosticsChannelAvailable, instrumentHttp, subscribeChannel, subscribeTracingChannel };
|
package/dist/drain-pipeline.cjs
CHANGED
|
@@ -15,6 +15,7 @@ function createDrainPipeline(options) {
|
|
|
15
15
|
const initialDelayMs = options?.retry?.initialDelayMs ?? 1e3;
|
|
16
16
|
const maxDelayMs = options?.retry?.maxDelayMs ?? 3e4;
|
|
17
17
|
const jitter = options?.retry?.jitter ?? true;
|
|
18
|
+
const shouldRetry = options?.retry?.shouldRetry;
|
|
18
19
|
const dropPolicy = options?.dropPolicy ?? "oldest";
|
|
19
20
|
const onDropped = options?.onDropped;
|
|
20
21
|
if (!Number.isFinite(batchSize) || batchSize <= 0) throw new Error(`[autotel/drain-pipeline] batch.size must be a positive finite number, got: ${batchSize}`);
|
|
@@ -46,7 +47,15 @@ function createDrainPipeline(options) {
|
|
|
46
47
|
return;
|
|
47
48
|
} catch (error) {
|
|
48
49
|
lastError = error instanceof Error ? error : new Error(String(error));
|
|
49
|
-
|
|
50
|
+
let retry = attempt < maxAttempts;
|
|
51
|
+
if (retry && shouldRetry) try {
|
|
52
|
+
retry = shouldRetry(lastError, attempt, batch);
|
|
53
|
+
} catch (classifierError) {
|
|
54
|
+
lastError = classifierError instanceof Error ? classifierError : new Error(String(classifierError));
|
|
55
|
+
retry = false;
|
|
56
|
+
}
|
|
57
|
+
if (retry) await wait(computeDelay(attempt));
|
|
58
|
+
else break;
|
|
50
59
|
}
|
|
51
60
|
onDropped?.(batch, lastError);
|
|
52
61
|
};
|
|
@@ -116,5 +125,4 @@ function createDrainPipeline(options) {
|
|
|
116
125
|
}
|
|
117
126
|
|
|
118
127
|
//#endregion
|
|
119
|
-
exports.createDrainPipeline = createDrainPipeline;
|
|
120
|
-
//# sourceMappingURL=drain-pipeline.cjs.map
|
|
128
|
+
exports.createDrainPipeline = createDrainPipeline;
|
|
@@ -17,6 +17,11 @@ interface DrainPipelineOptions<T = unknown> {
|
|
|
17
17
|
maxDelayMs?: number;
|
|
18
18
|
/** Add random jitter to delays. @default true */
|
|
19
19
|
jitter?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Decide whether a failed attempt is safe to repeat. Return false for
|
|
22
|
+
* permanent failures such as an HTTP 4xx response. @default always retry
|
|
23
|
+
*/
|
|
24
|
+
shouldRetry?: (error: Error, attempt: number, batch: readonly T[]) => boolean;
|
|
20
25
|
};
|
|
21
26
|
/** Max buffered events before dropping. @default 1000 */
|
|
22
27
|
maxBufferSize?: number;
|
|
@@ -35,5 +40,4 @@ interface PipelineDrainFn<T> {
|
|
|
35
40
|
}
|
|
36
41
|
declare function createDrainPipeline<T = unknown>(options?: DrainPipelineOptions<T>): (drain: (batch: T[]) => void | Promise<void>) => PipelineDrainFn<T>;
|
|
37
42
|
//#endregion
|
|
38
|
-
export { DrainPipelineOptions, PipelineDrainFn, createDrainPipeline };
|
|
39
|
-
//# sourceMappingURL=drain-pipeline.d.cts.map
|
|
43
|
+
export { DrainPipelineOptions, PipelineDrainFn, createDrainPipeline };
|
package/dist/drain-pipeline.d.ts
CHANGED
|
@@ -17,6 +17,11 @@ interface DrainPipelineOptions<T = unknown> {
|
|
|
17
17
|
maxDelayMs?: number;
|
|
18
18
|
/** Add random jitter to delays. @default true */
|
|
19
19
|
jitter?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Decide whether a failed attempt is safe to repeat. Return false for
|
|
22
|
+
* permanent failures such as an HTTP 4xx response. @default always retry
|
|
23
|
+
*/
|
|
24
|
+
shouldRetry?: (error: Error, attempt: number, batch: readonly T[]) => boolean;
|
|
20
25
|
};
|
|
21
26
|
/** Max buffered events before dropping. @default 1000 */
|
|
22
27
|
maxBufferSize?: number;
|
|
@@ -35,5 +40,4 @@ interface PipelineDrainFn<T> {
|
|
|
35
40
|
}
|
|
36
41
|
declare function createDrainPipeline<T = unknown>(options?: DrainPipelineOptions<T>): (drain: (batch: T[]) => void | Promise<void>) => PipelineDrainFn<T>;
|
|
37
42
|
//#endregion
|
|
38
|
-
export { DrainPipelineOptions, PipelineDrainFn, createDrainPipeline };
|
|
39
|
-
//# sourceMappingURL=drain-pipeline.d.ts.map
|
|
43
|
+
export { DrainPipelineOptions, PipelineDrainFn, createDrainPipeline };
|
package/dist/drain-pipeline.js
CHANGED
|
@@ -13,6 +13,7 @@ function createDrainPipeline(options) {
|
|
|
13
13
|
const initialDelayMs = options?.retry?.initialDelayMs ?? 1e3;
|
|
14
14
|
const maxDelayMs = options?.retry?.maxDelayMs ?? 3e4;
|
|
15
15
|
const jitter = options?.retry?.jitter ?? true;
|
|
16
|
+
const shouldRetry = options?.retry?.shouldRetry;
|
|
16
17
|
const dropPolicy = options?.dropPolicy ?? "oldest";
|
|
17
18
|
const onDropped = options?.onDropped;
|
|
18
19
|
if (!Number.isFinite(batchSize) || batchSize <= 0) throw new Error(`[autotel/drain-pipeline] batch.size must be a positive finite number, got: ${batchSize}`);
|
|
@@ -44,7 +45,15 @@ function createDrainPipeline(options) {
|
|
|
44
45
|
return;
|
|
45
46
|
} catch (error) {
|
|
46
47
|
lastError = error instanceof Error ? error : new Error(String(error));
|
|
47
|
-
|
|
48
|
+
let retry = attempt < maxAttempts;
|
|
49
|
+
if (retry && shouldRetry) try {
|
|
50
|
+
retry = shouldRetry(lastError, attempt, batch);
|
|
51
|
+
} catch (classifierError) {
|
|
52
|
+
lastError = classifierError instanceof Error ? classifierError : new Error(String(classifierError));
|
|
53
|
+
retry = false;
|
|
54
|
+
}
|
|
55
|
+
if (retry) await wait(computeDelay(attempt));
|
|
56
|
+
else break;
|
|
48
57
|
}
|
|
49
58
|
onDropped?.(batch, lastError);
|
|
50
59
|
};
|
|
@@ -114,5 +123,4 @@ function createDrainPipeline(options) {
|
|
|
114
123
|
}
|
|
115
124
|
|
|
116
125
|
//#endregion
|
|
117
|
-
export { createDrainPipeline };
|
|
118
|
-
//# sourceMappingURL=drain-pipeline.js.map
|
|
126
|
+
export { createDrainPipeline };
|
package/dist/enrichers.cjs
CHANGED
package/dist/enrichers.d.cts
CHANGED
|
@@ -21,5 +21,4 @@ interface RequestSizeAttributes {
|
|
|
21
21
|
}
|
|
22
22
|
declare function requestSize(requestHeaders: Headers, responseHeaders?: Headers): RequestSizeAttributes | undefined;
|
|
23
23
|
//#endregion
|
|
24
|
-
export { GeoAttributes, RequestSizeAttributes, UserAgentAttributes, geo, requestSize, userAgent };
|
|
25
|
-
//# sourceMappingURL=enrichers.d.cts.map
|
|
24
|
+
export { GeoAttributes, RequestSizeAttributes, UserAgentAttributes, geo, requestSize, userAgent };
|
package/dist/enrichers.d.ts
CHANGED
|
@@ -21,5 +21,4 @@ interface RequestSizeAttributes {
|
|
|
21
21
|
}
|
|
22
22
|
declare function requestSize(requestHeaders: Headers, responseHeaders?: Headers): RequestSizeAttributes | undefined;
|
|
23
23
|
//#endregion
|
|
24
|
-
export { GeoAttributes, RequestSizeAttributes, UserAgentAttributes, geo, requestSize, userAgent };
|
|
25
|
-
//# sourceMappingURL=enrichers.d.ts.map
|
|
24
|
+
export { GeoAttributes, RequestSizeAttributes, UserAgentAttributes, geo, requestSize, userAgent };
|
package/dist/enrichers.js
CHANGED
|
@@ -219,5 +219,4 @@ interface EventSubscriber {
|
|
|
219
219
|
readonly version?: string;
|
|
220
220
|
}
|
|
221
221
|
//#endregion
|
|
222
|
-
export { EventSubscriber as a, OutcomeStatus as c, EventSchemaMetadata as i, EventAttributes as n, EventTrackingOptions as o, EventAttributesInput as r, FunnelStatus as s, AutotelEventContext as t };
|
|
223
|
-
//# sourceMappingURL=event-subscriber-CWh8sTGh.d.cts.map
|
|
222
|
+
export { EventSubscriber as a, OutcomeStatus as c, EventSchemaMetadata as i, EventAttributes as n, EventTrackingOptions as o, EventAttributesInput as r, FunnelStatus as s, AutotelEventContext as t };
|
|
@@ -219,5 +219,4 @@ interface EventSubscriber {
|
|
|
219
219
|
readonly version?: string;
|
|
220
220
|
}
|
|
221
221
|
//#endregion
|
|
222
|
-
export { EventSubscriber as a, OutcomeStatus as c, EventSchemaMetadata as i, EventAttributes as n, EventTrackingOptions as o, EventAttributesInput as r, FunnelStatus as s, AutotelEventContext as t };
|
|
223
|
-
//# sourceMappingURL=event-subscriber-CWh8sTGh.d.ts.map
|
|
222
|
+
export { EventSubscriber as a, OutcomeStatus as c, EventSchemaMetadata as i, EventAttributes as n, EventTrackingOptions as o, EventAttributesInput as r, FunnelStatus as s, AutotelEventContext as t };
|
|
@@ -101,5 +101,4 @@ declare function assertOutcomeTracked(options: {
|
|
|
101
101
|
status: 'success' | 'failure' | 'partial';
|
|
102
102
|
}): void;
|
|
103
103
|
//#endregion
|
|
104
|
-
export { EventsValue as a, createEventCollector as c, EventsOutcome as i, EventData as n, assertEventTracked as o, EventsFunnelStep as r, assertOutcomeTracked as s, EventCollector as t };
|
|
105
|
-
//# sourceMappingURL=event-testing-CA2mIx1E.d.ts.map
|
|
104
|
+
export { EventsValue as a, createEventCollector as c, EventsOutcome as i, EventData as n, assertEventTracked as o, EventsFunnelStep as r, assertOutcomeTracked as s, EventCollector as t };
|
|
@@ -101,5 +101,4 @@ declare function assertOutcomeTracked(options: {
|
|
|
101
101
|
status: 'success' | 'failure' | 'partial';
|
|
102
102
|
}): void;
|
|
103
103
|
//#endregion
|
|
104
|
-
export { EventsValue as a, createEventCollector as c, EventsOutcome as i, EventData as n, assertEventTracked as o, EventsFunnelStep as r, assertOutcomeTracked as s, EventCollector as t };
|
|
105
|
-
//# sourceMappingURL=event-testing-D0qWfqAy.d.cts.map
|
|
104
|
+
export { EventsValue as a, createEventCollector as c, EventsOutcome as i, EventData as n, assertEventTracked as o, EventsFunnelStep as r, assertOutcomeTracked as s, EventCollector as t };
|
package/dist/event-testing.cjs
CHANGED
|
@@ -92,5 +92,4 @@ function assertOutcomeTracked(options) {
|
|
|
92
92
|
//#endregion
|
|
93
93
|
exports.assertEventTracked = assertEventTracked;
|
|
94
94
|
exports.assertOutcomeTracked = assertOutcomeTracked;
|
|
95
|
-
exports.createEventCollector = createEventCollector;
|
|
96
|
-
//# sourceMappingURL=event-testing.cjs.map
|
|
95
|
+
exports.createEventCollector = createEventCollector;
|
package/dist/event-testing.js
CHANGED