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/dist/event.cjs
CHANGED
package/dist/event.d.cts
CHANGED
|
@@ -328,5 +328,4 @@ declare function getEvents(serviceName: string, logger?: Logger): Event;
|
|
|
328
328
|
*/
|
|
329
329
|
declare function resetEvents(): void;
|
|
330
330
|
//#endregion
|
|
331
|
-
export { Event, type EventAttributes, type EventAttributesInput, EventsOptions, type FunnelStatus, type OutcomeStatus, getEvents, resetEvents };
|
|
332
|
-
//# sourceMappingURL=event.d.cts.map
|
|
331
|
+
export { Event, type EventAttributes, type EventAttributesInput, EventsOptions, type FunnelStatus, type OutcomeStatus, getEvents, resetEvents };
|
package/dist/event.d.ts
CHANGED
|
@@ -328,5 +328,4 @@ declare function getEvents(serviceName: string, logger?: Logger): Event;
|
|
|
328
328
|
*/
|
|
329
329
|
declare function resetEvents(): void;
|
|
330
330
|
//#endregion
|
|
331
|
-
export { Event, type EventAttributes, type EventAttributesInput, EventsOptions, type FunnelStatus, type OutcomeStatus, getEvents, resetEvents };
|
|
332
|
-
//# sourceMappingURL=event.d.ts.map
|
|
331
|
+
export { Event, type EventAttributes, type EventAttributesInput, EventsOptions, type FunnelStatus, type OutcomeStatus, getEvents, resetEvents };
|
package/dist/event.js
CHANGED
package/dist/exporters.d.cts
CHANGED
|
@@ -101,5 +101,4 @@ declare class PrettyConsoleExporter implements SpanExporter {
|
|
|
101
101
|
forceFlush(): Promise<void>;
|
|
102
102
|
}
|
|
103
103
|
//#endregion
|
|
104
|
-
export { ConsoleSpanExporter, InMemorySpanExporter, PrettyConsoleExporter, type PrettyConsoleExporterOptions };
|
|
105
|
-
//# sourceMappingURL=exporters.d.cts.map
|
|
104
|
+
export { ConsoleSpanExporter, InMemorySpanExporter, PrettyConsoleExporter, type PrettyConsoleExporterOptions };
|
package/dist/exporters.d.ts
CHANGED
|
@@ -101,5 +101,4 @@ declare class PrettyConsoleExporter implements SpanExporter {
|
|
|
101
101
|
forceFlush(): Promise<void>;
|
|
102
102
|
}
|
|
103
103
|
//#endregion
|
|
104
|
-
export { ConsoleSpanExporter, InMemorySpanExporter, PrettyConsoleExporter, type PrettyConsoleExporterOptions };
|
|
105
|
-
//# sourceMappingURL=exporters.d.ts.map
|
|
104
|
+
export { ConsoleSpanExporter, InMemorySpanExporter, PrettyConsoleExporter, type PrettyConsoleExporterOptions };
|
|
@@ -54,5 +54,4 @@ declare class FilteringSpanProcessor implements SpanProcessor {
|
|
|
54
54
|
shutdown(): Promise<void>;
|
|
55
55
|
}
|
|
56
56
|
//#endregion
|
|
57
|
-
export { FilteringSpanProcessorOptions as n, SpanFilterPredicate as r, FilteringSpanProcessor as t };
|
|
58
|
-
//# sourceMappingURL=filtering-span-processor-BpDagWNa.d.cts.map
|
|
57
|
+
export { FilteringSpanProcessorOptions as n, SpanFilterPredicate as r, FilteringSpanProcessor as t };
|
|
@@ -54,5 +54,4 @@ declare class FilteringSpanProcessor implements SpanProcessor {
|
|
|
54
54
|
shutdown(): Promise<void>;
|
|
55
55
|
}
|
|
56
56
|
//#endregion
|
|
57
|
-
export { FilteringSpanProcessorOptions as n, SpanFilterPredicate as r, FilteringSpanProcessor as t };
|
|
58
|
-
//# sourceMappingURL=filtering-span-processor-BpDagWNa.d.ts.map
|
|
57
|
+
export { FilteringSpanProcessorOptions as n, SpanFilterPredicate as r, FilteringSpanProcessor as t };
|
|
@@ -2,7 +2,7 @@ const require_rolldown_runtime = require('./rolldown-runtime-C_NdSu1c.cjs');
|
|
|
2
2
|
const require_tracer_provider = require('./tracer-provider.cjs');
|
|
3
3
|
const require_config = require('./config.cjs');
|
|
4
4
|
const require_sampling = require('./sampling.cjs');
|
|
5
|
-
const require_init = require('./init-
|
|
5
|
+
const require_init = require('./init-CzNFWUd8.cjs');
|
|
6
6
|
const require_trace_helpers = require('./trace-helpers.cjs');
|
|
7
7
|
let _opentelemetry_api = require("@opentelemetry/api");
|
|
8
8
|
let node_fs = require("node:fs");
|
|
@@ -884,5 +884,4 @@ Object.defineProperty(exports, 'withTracing', {
|
|
|
884
884
|
get: function () {
|
|
885
885
|
return withTracing;
|
|
886
886
|
}
|
|
887
|
-
});
|
|
888
|
-
//# sourceMappingURL=functional-DcLBuCPz.cjs.map
|
|
887
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getForceFlushableProvider } from "./tracer-provider.js";
|
|
2
2
|
import { getConfig } from "./config.js";
|
|
3
3
|
import { AUTOTEL_SAMPLING_RATE, AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, AlwaysSampler } from "./sampling.js";
|
|
4
|
-
import { D as getActiveContextWithBaggage, O as getContextStorage, T as createTraceContext, h as getEventQueue, m as runInOperationContext, r as getSdk, t as getConfig$1 } from "./init-
|
|
4
|
+
import { D as getActiveContextWithBaggage, O as getContextStorage, T as createTraceContext, h as getEventQueue, m as runInOperationContext, r as getSdk, t as getConfig$1 } from "./init-DDkh2brw.js";
|
|
5
5
|
import { setSpanName } from "./trace-helpers.js";
|
|
6
6
|
import { SpanStatusCode, context, propagation, trace } from "@opentelemetry/api";
|
|
7
7
|
import * as nodeFs from "node:fs";
|
|
@@ -834,5 +834,4 @@ function withBaggage(options) {
|
|
|
834
834
|
}
|
|
835
835
|
|
|
836
836
|
//#endregion
|
|
837
|
-
export { trace$1 as a, withTracing as c, span as i, getActiveTraceContext as n, withBaggage as o, instrument as r, withNewContext as s, ctx as t };
|
|
838
|
-
//# sourceMappingURL=functional-BnDUxnSl.js.map
|
|
837
|
+
export { trace$1 as a, withTracing as c, span as i, getActiveTraceContext as n, withBaggage as o, instrument as r, withNewContext as s, ctx as t };
|
package/dist/functional.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_functional = require('./functional-
|
|
2
|
+
const require_functional = require('./functional-D545J0Ba.cjs');
|
|
3
3
|
|
|
4
4
|
exports.ctx = require_functional.ctx;
|
|
5
5
|
exports.getActiveTraceContext = require_functional.getActiveTraceContext;
|
package/dist/functional.d.cts
CHANGED
|
@@ -430,5 +430,4 @@ interface WithBaggageOptions<T = unknown> {
|
|
|
430
430
|
*/
|
|
431
431
|
declare function withBaggage<T = unknown>(options: WithBaggageOptions<T>): T | Promise<T>;
|
|
432
432
|
//#endregion
|
|
433
|
-
export { InstrumentOptions, SingleInstrumentOptions, SpanOptions, type TraceContext, TracingOptions, WithBaggageOptions, WithNewContextOptions, ctx, getActiveTraceContext, instrument, span, trace, withBaggage, withNewContext, withTracing };
|
|
434
|
-
//# sourceMappingURL=functional.d.cts.map
|
|
433
|
+
export { InstrumentOptions, SingleInstrumentOptions, SpanOptions, type TraceContext, TracingOptions, WithBaggageOptions, WithNewContextOptions, ctx, getActiveTraceContext, instrument, span, trace, withBaggage, withNewContext, withTracing };
|
package/dist/functional.d.ts
CHANGED
|
@@ -430,5 +430,4 @@ interface WithBaggageOptions<T = unknown> {
|
|
|
430
430
|
*/
|
|
431
431
|
declare function withBaggage<T = unknown>(options: WithBaggageOptions<T>): T | Promise<T>;
|
|
432
432
|
//#endregion
|
|
433
|
-
export { InstrumentOptions, SingleInstrumentOptions, SpanOptions, type TraceContext, TracingOptions, WithBaggageOptions, WithNewContextOptions, ctx, getActiveTraceContext, instrument, span, trace, withBaggage, withNewContext, withTracing };
|
|
434
|
-
//# sourceMappingURL=functional.d.ts.map
|
|
433
|
+
export { InstrumentOptions, SingleInstrumentOptions, SpanOptions, type TraceContext, TracingOptions, WithBaggageOptions, WithNewContextOptions, ctx, getActiveTraceContext, instrument, span, trace, withBaggage, withNewContext, withTracing };
|
package/dist/functional.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as trace, c as withTracing, i as span, n as getActiveTraceContext, o as withBaggage, r as instrument, s as withNewContext, t as ctx } from "./functional-
|
|
1
|
+
import { a as trace, c as withTracing, i as span, n as getActiveTraceContext, o as withBaggage, r as instrument, s as withNewContext, t as ctx } from "./functional-DYAZiYxr.js";
|
|
2
2
|
|
|
3
3
|
export { ctx, getActiveTraceContext, instrument, span, trace, withBaggage, withNewContext, withTracing };
|
package/dist/http.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/http.ts
|
|
@@ -295,5 +295,4 @@ function extractTraceContext(headers) {
|
|
|
295
295
|
exports.HttpInstrumented = HttpInstrumented;
|
|
296
296
|
exports.extractTraceContext = extractTraceContext;
|
|
297
297
|
exports.injectTraceContext = injectTraceContext;
|
|
298
|
-
exports.traceHttpRequest = traceHttpRequest;
|
|
299
|
-
//# sourceMappingURL=http.cjs.map
|
|
298
|
+
exports.traceHttpRequest = traceHttpRequest;
|
package/dist/http.d.cts
CHANGED
|
@@ -144,5 +144,4 @@ declare function injectTraceContext(headers?: Record<string, string>): Record<st
|
|
|
144
144
|
*/
|
|
145
145
|
declare function extractTraceContext(headers: Record<string, string | string[] | undefined>): ReturnType<typeof context.active>;
|
|
146
146
|
//#endregion
|
|
147
|
-
export { HttpInstrumented, HttpInstrumentedOptions, extractTraceContext, injectTraceContext, traceHttpRequest };
|
|
148
|
-
//# sourceMappingURL=http.d.cts.map
|
|
147
|
+
export { HttpInstrumented, HttpInstrumentedOptions, extractTraceContext, injectTraceContext, traceHttpRequest };
|
package/dist/http.d.ts
CHANGED
|
@@ -144,5 +144,4 @@ declare function injectTraceContext(headers?: Record<string, string>): Record<st
|
|
|
144
144
|
*/
|
|
145
145
|
declare function extractTraceContext(headers: Record<string, string | string[] | undefined>): ReturnType<typeof context.active>;
|
|
146
146
|
//#endregion
|
|
147
|
-
export { HttpInstrumented, HttpInstrumentedOptions, extractTraceContext, injectTraceContext, traceHttpRequest };
|
|
148
|
-
//# sourceMappingURL=http.d.ts.map
|
|
147
|
+
export { HttpInstrumented, HttpInstrumentedOptions, extractTraceContext, injectTraceContext, traceHttpRequest };
|
package/dist/http.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getConfig } from "./config.js";
|
|
2
|
-
import { D as getActiveContextWithBaggage } from "./init-
|
|
2
|
+
import { D as getActiveContextWithBaggage } from "./init-DDkh2brw.js";
|
|
3
3
|
import { SpanStatusCode, context, propagation } from "@opentelemetry/api";
|
|
4
4
|
|
|
5
5
|
//#region src/http.ts
|
|
@@ -291,5 +291,4 @@ function extractTraceContext(headers) {
|
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
//#endregion
|
|
294
|
-
export { HttpInstrumented, extractTraceContext, injectTraceContext, traceHttpRequest };
|
|
295
|
-
//# sourceMappingURL=http.js.map
|
|
294
|
+
export { HttpInstrumented, extractTraceContext, injectTraceContext, traceHttpRequest };
|
|
@@ -673,5 +673,4 @@ type AttributeSetter = {
|
|
|
673
673
|
declare function mergeAttrs(...attrSets: Array<Record<string, unknown> | undefined>): Record<string, unknown>;
|
|
674
674
|
declare function safeSetAttributes(span: AttributeSetter, attrs: Record<string, unknown>, policy?: AttributePolicy): void;
|
|
675
675
|
//#endregion
|
|
676
|
-
export { ExceptionAttrs as A, PeerAttrs as B, CloudAttrs as C, DeploymentAttrs as D, DBAttrs as E, HTTPServerAttrs as F, SessionAttrs as G, RPCAttrs as H, K8sAttrs as I, URLAttrs as J, TLSAttrs as K, MessagingAttrs as L, FeatureFlagAttrs as M, GraphQLAttrs as N, DeviceAttrs as O, HTTPClientAttrs as P, NetworkAttrs as R, ClientAttrs as S, ContainerAttrs as T, ServerAddressAttrs as U, ProcessAttrs as V, ServiceAttrs as W, UserAttrs as Y, autoRedactPII as _, httpClient as a, validateAttribute as b, mergeServiceResource as c, setError as d, setException as f, AttributePolicy as g, AttributeGuardrails as h, dbClient as i, FaaSAttrs as j, ErrorAttrs as k, request as l, setUser as m, safeSetAttributes as n, httpServer as o, setSession as p, ThreadAttrs as q, transaction as r, identify as s, mergeAttrs as t, setDevice as u, checkDeprecatedAttribute as v, CodeAttrs as w, attrs as x, defaultGuardrails as y, OTelAttrs as z };
|
|
677
|
-
//# sourceMappingURL=index-BPcxVucm.d.cts.map
|
|
676
|
+
export { ExceptionAttrs as A, PeerAttrs as B, CloudAttrs as C, DeploymentAttrs as D, DBAttrs as E, HTTPServerAttrs as F, SessionAttrs as G, RPCAttrs as H, K8sAttrs as I, URLAttrs as J, TLSAttrs as K, MessagingAttrs as L, FeatureFlagAttrs as M, GraphQLAttrs as N, DeviceAttrs as O, HTTPClientAttrs as P, NetworkAttrs as R, ClientAttrs as S, ContainerAttrs as T, ServerAddressAttrs as U, ProcessAttrs as V, ServiceAttrs as W, UserAttrs as Y, autoRedactPII as _, httpClient as a, validateAttribute as b, mergeServiceResource as c, setError as d, setException as f, AttributePolicy as g, AttributeGuardrails as h, dbClient as i, FaaSAttrs as j, ErrorAttrs as k, request as l, setUser as m, safeSetAttributes as n, httpServer as o, setSession as p, ThreadAttrs as q, transaction as r, identify as s, mergeAttrs as t, setDevice as u, checkDeprecatedAttribute as v, CodeAttrs as w, attrs as x, defaultGuardrails as y, OTelAttrs as z };
|
package/dist/index-DolOVX6F.d.ts
CHANGED
|
@@ -673,5 +673,4 @@ type AttributeSetter = {
|
|
|
673
673
|
declare function mergeAttrs(...attrSets: Array<Record<string, unknown> | undefined>): Record<string, unknown>;
|
|
674
674
|
declare function safeSetAttributes(span: AttributeSetter, attrs: Record<string, unknown>, policy?: AttributePolicy): void;
|
|
675
675
|
//#endregion
|
|
676
|
-
export { ExceptionAttrs as A, PeerAttrs as B, CloudAttrs as C, DeploymentAttrs as D, DBAttrs as E, HTTPServerAttrs as F, SessionAttrs as G, RPCAttrs as H, K8sAttrs as I, URLAttrs as J, TLSAttrs as K, MessagingAttrs as L, FeatureFlagAttrs as M, GraphQLAttrs as N, DeviceAttrs as O, HTTPClientAttrs as P, NetworkAttrs as R, ClientAttrs as S, ContainerAttrs as T, ServerAddressAttrs as U, ProcessAttrs as V, ServiceAttrs as W, UserAttrs as Y, autoRedactPII as _, httpClient as a, validateAttribute as b, mergeServiceResource as c, setError as d, setException as f, AttributePolicy as g, AttributeGuardrails as h, dbClient as i, FaaSAttrs as j, ErrorAttrs as k, request as l, setUser as m, safeSetAttributes as n, httpServer as o, setSession as p, ThreadAttrs as q, transaction as r, identify as s, mergeAttrs as t, setDevice as u, checkDeprecatedAttribute as v, CodeAttrs as w, attrs as x, defaultGuardrails as y, OTelAttrs as z };
|
|
677
|
-
//# sourceMappingURL=index-DolOVX6F.d.ts.map
|
|
676
|
+
export { ExceptionAttrs as A, PeerAttrs as B, CloudAttrs as C, DeploymentAttrs as D, DBAttrs as E, HTTPServerAttrs as F, SessionAttrs as G, RPCAttrs as H, K8sAttrs as I, URLAttrs as J, TLSAttrs as K, MessagingAttrs as L, FeatureFlagAttrs as M, GraphQLAttrs as N, DeviceAttrs as O, HTTPClientAttrs as P, NetworkAttrs as R, ClientAttrs as S, ContainerAttrs as T, ServerAddressAttrs as U, ProcessAttrs as V, ServiceAttrs as W, UserAttrs as Y, autoRedactPII as _, httpClient as a, validateAttribute as b, mergeServiceResource as c, setError as d, setException as f, AttributePolicy as g, AttributeGuardrails as h, dbClient as i, FaaSAttrs as j, ErrorAttrs as k, request as l, setUser as m, safeSetAttributes as n, httpServer as o, setSession as p, ThreadAttrs as q, transaction as r, identify as s, mergeAttrs as t, setDevice as u, checkDeprecatedAttribute as v, CodeAttrs as w, attrs as x, defaultGuardrails as y, OTelAttrs as z };
|
package/dist/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2
2
|
const require_rolldown_runtime = require('./rolldown-runtime-C_NdSu1c.cjs');
|
|
3
3
|
const require_tracer_provider = require('./tracer-provider.cjs');
|
|
4
4
|
const require_sampling = require('./sampling.cjs');
|
|
5
|
-
const require_init = require('./init-
|
|
5
|
+
const require_init = require('./init-CzNFWUd8.cjs');
|
|
6
6
|
const require_filtering_span_processor = require('./filtering-span-processor.cjs');
|
|
7
7
|
const require_span_name_normalizer = require('./span-name-normalizer.cjs');
|
|
8
8
|
const require_attribute_redacting_processor = require('./attribute-redacting-processor.cjs');
|
|
@@ -10,7 +10,7 @@ const require_canonical_log_line_processor = require('./canonical-log-line-proce
|
|
|
10
10
|
const require_structured_error = require('./structured-error-CHg7DoIQ.cjs');
|
|
11
11
|
const require_metric = require('./metric.cjs');
|
|
12
12
|
const require_trace_helpers = require('./trace-helpers.cjs');
|
|
13
|
-
const require_functional = require('./functional-
|
|
13
|
+
const require_functional = require('./functional-D545J0Ba.cjs');
|
|
14
14
|
const require_stable_hash = require('./stable-hash-CS9BxvVQ.cjs');
|
|
15
15
|
const require_correlated_events = require('./correlated-events-kSwLo3mi.cjs');
|
|
16
16
|
const require_parse_error = require('./parse-error.cjs');
|
|
@@ -108,6 +108,7 @@ function getRequestLogger(ctx, options) {
|
|
|
108
108
|
const contextState = {};
|
|
109
109
|
let emitted = false;
|
|
110
110
|
let lastSnapshot = null;
|
|
111
|
+
let hasExplicitLevel = false;
|
|
111
112
|
const addLogEvent = (level, message, fields) => {
|
|
112
113
|
const attrs = fields ? require_structured_error.flattenToAttributes(fields) : void 0;
|
|
113
114
|
require_correlated_events.emitCorrelatedEvent(activeContext, `log.${level}`, {
|
|
@@ -125,6 +126,12 @@ function getRequestLogger(ctx, options) {
|
|
|
125
126
|
mergeInto$1(contextState, fields);
|
|
126
127
|
activeContext.setAttributes(require_structured_error.flattenToAttributes(fields));
|
|
127
128
|
},
|
|
129
|
+
setLevel(level) {
|
|
130
|
+
sealCheck("log.setLevel()", ["autotel.log.level"]);
|
|
131
|
+
if (emitted) return;
|
|
132
|
+
hasExplicitLevel = true;
|
|
133
|
+
activeContext.setAttribute("autotel.log.level", level);
|
|
134
|
+
},
|
|
128
135
|
info(message, fields) {
|
|
129
136
|
const keys = fields ? ["message", ...Object.keys(fields).filter((k) => k !== "requestLogs")] : ["message"];
|
|
130
137
|
sealCheck("log.info()", keys);
|
|
@@ -140,7 +147,7 @@ function getRequestLogger(ctx, options) {
|
|
|
140
147
|
sealCheck("log.warn()", keys);
|
|
141
148
|
if (emitted) return;
|
|
142
149
|
addLogEvent("warn", message, fields);
|
|
143
|
-
activeContext.setAttribute("autotel.log.level", "warn");
|
|
150
|
+
if (!hasExplicitLevel) activeContext.setAttribute("autotel.log.level", "warn");
|
|
144
151
|
if (fields) {
|
|
145
152
|
mergeInto$1(contextState, fields);
|
|
146
153
|
activeContext.setAttributes(require_structured_error.flattenToAttributes(fields));
|
|
@@ -157,7 +164,7 @@ function getRequestLogger(ctx, options) {
|
|
|
157
164
|
mergeInto$1(contextState, fields);
|
|
158
165
|
activeContext.setAttributes(require_structured_error.flattenToAttributes(fields));
|
|
159
166
|
}
|
|
160
|
-
activeContext.setAttribute("autotel.log.level", "error");
|
|
167
|
+
if (!hasExplicitLevel) activeContext.setAttribute("autotel.log.level", "error");
|
|
161
168
|
},
|
|
162
169
|
getContext() {
|
|
163
170
|
return { ...contextState };
|
|
@@ -261,6 +268,7 @@ function createNoopRequestLogger() {
|
|
|
261
268
|
});
|
|
262
269
|
return {
|
|
263
270
|
set() {},
|
|
271
|
+
setLevel() {},
|
|
264
272
|
info() {},
|
|
265
273
|
warn() {},
|
|
266
274
|
error() {},
|
|
@@ -666,5 +674,4 @@ exports.track = require_init.track;
|
|
|
666
674
|
exports.validateAttribute = require_attributes.validateAttribute;
|
|
667
675
|
exports.withBaggage = require_functional.withBaggage;
|
|
668
676
|
exports.withNewContext = require_functional.withNewContext;
|
|
669
|
-
exports.withTracing = require_functional.withTracing;
|
|
670
|
-
//# sourceMappingURL=index.cjs.map
|
|
677
|
+
exports.withTracing = require_functional.withTracing;
|
package/dist/index.d.cts
CHANGED
|
@@ -9,7 +9,7 @@ import { DrainPipelineOptions, PipelineDrainFn, createDrainPipeline } from "./dr
|
|
|
9
9
|
import { a as EventSubscriber, c as OutcomeStatus, i as EventSchemaMetadata, n as EventAttributes, o as EventTrackingOptions, s as FunnelStatus, t as AutotelEventContext } from "./event-subscriber-CWh8sTGh.cjs";
|
|
10
10
|
import { Event, EventsOptions, getEvents, resetEvents } from "./event.cjs";
|
|
11
11
|
import { n as FilteringSpanProcessorOptions, r as SpanFilterPredicate, t as FilteringSpanProcessor } from "./filtering-span-processor-BpDagWNa.cjs";
|
|
12
|
-
import { a as isLoggerLocked, c as StringRedactor, i as isInitialized, l as createStringRedactor, o as lockLogger, r as init, s as ProcessHandlersConfig, t as AutotelConfig } from "./init-
|
|
12
|
+
import { a as isLoggerLocked, c as StringRedactor, i as isInitialized, l as createStringRedactor, o as lockLogger, r as init, s as ProcessHandlersConfig, t as AutotelConfig } from "./init-BoIYyB6Q.cjs";
|
|
13
13
|
import { a as SpanNameNormalizerPreset, i as SpanNameNormalizerFn, n as NORMALIZER_PRESETS, o as SpanNameNormalizingProcessor, r as SpanNameNormalizerConfig, s as SpanNameNormalizingProcessorOptions, t as NORMALIZER_PATTERNS } from "./span-name-normalizer-CN1-8C76.cjs";
|
|
14
14
|
import "./canonical-log-line-processor-B4WgG-VS.cjs";
|
|
15
15
|
import { i as defineEvent, n as DefinedEvent, r as SchemaLike, t as DefineEventOptions } from "./define-event-CGG048HE.cjs";
|
|
@@ -391,6 +391,8 @@ declare function shutdown(): Promise<void>;
|
|
|
391
391
|
declare function runWithRequestContext<T>(ctx: TraceContext$1, fn: () => T): T;
|
|
392
392
|
interface RequestLogger {
|
|
393
393
|
set(fields: Record<string, unknown>): void;
|
|
394
|
+
/** Set snapshot severity without adding a log event or exception. */
|
|
395
|
+
setLevel(level: RequestLogLevel): void;
|
|
394
396
|
info(message: string, fields?: Record<string, unknown>): void;
|
|
395
397
|
warn(message: string, fields?: Record<string, unknown>): void;
|
|
396
398
|
error(error: Error | string, fields?: Record<string, unknown>): void;
|
|
@@ -398,6 +400,7 @@ interface RequestLogger {
|
|
|
398
400
|
emitNow(overrides?: Record<string, unknown>): RequestLogSnapshot;
|
|
399
401
|
fork(label: string, fn: () => void | Promise<void>, options?: ForkOptions): void;
|
|
400
402
|
}
|
|
403
|
+
type RequestLogLevel = 'debug' | 'info' | 'warn' | 'error';
|
|
401
404
|
interface RequestLogSnapshot {
|
|
402
405
|
timestamp: string;
|
|
403
406
|
traceId: string;
|
|
@@ -634,5 +637,4 @@ declare function defineEnricher<TEvent extends Record<string, unknown>, TValue e
|
|
|
634
637
|
*/
|
|
635
638
|
declare function formatDuration(ms: number): string;
|
|
636
639
|
//#endregion
|
|
637
|
-
export { AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, AdaptiveSampler, AlwaysSampler, type AttributeGuardrails, type AttributePolicy, AttributeRedactingProcessor, type AttributeRedactingProcessorOptions, type AttributeRedactorConfig, type AttributeRedactorFn, type AttributeRedactorPreset, type AttributeValue, type Attributes, type AuditAction, type AuditCatalog, type AuditCatalogEntry, type AuditDescriptor, type AuditSeverity, type AutotelConfig, type Baggage, type BaggageEntry, type BaggageError, type BaggageFieldDefinition, type BaggageFieldType, BaggageSpanProcessor, type BaggageSpanProcessorOptions, type BuiltinPatternName, BusinessBaggage, type BusinessBaggageValues, CORRELATION_ID_BAGGAGE_KEY, type ClientAttrs, type CloudAttrs, type CodeAttrs, type ConsumerConfig, type ConsumerContext, type ContainerAttrs, type Context, type DBAttrs, type DBConfig, type DefineEventOptions, type DefinedEvent, type DeploymentAttrs, type DeviceAttrs, type DrainOptions, type DrainPipelineOptions, type EnrichContext, type EnricherDefinition, type EnricherOptions, type ErrorAttrs, type ErrorBuildOptions, type ErrorBuilder, type ErrorCatalog, type ErrorCatalogEntry, Event, type EventAttributes, type EventSubscriber, type EventsOptions, type Exception, type ExceptionAttrs, type FaaSAttrs, type FeatureFlagAttrs, FilteringSpanProcessor, type FilteringSpanProcessorOptions, type ForkLifecycle, type ForkOptions, type FunnelStatus, type GraphQLAttrs, HTTPAttributes, type HTTPClientAttrs, type HTTPConfig, type HTTPServerAttrs, type HrTime, type HttpDrainOptions, type HttpDrainRequest, type InstrumentOptions, type K8sAttrs, type LagMetricsConfig, type Link, type MaskFn, type MessagingAttrs, type MessagingConfig, type MessagingOperation, type MessagingSystem, Metric, type MetricsOptions, NORMALIZER_PATTERNS, NORMALIZER_PRESETS, type NetworkAttrs, NeverSampler, type OTelAttrs, type OperationContext, type TraceContext as OtelTraceContext, type OutcomeStatus, type ParsedError, type PeerAttrs, type PipelineDrainFn, type ProcessAttrs, type ProcessHandlersConfig, type ProducerConfig, type ProducerContext, REDACTOR_PATTERNS, REDACTOR_PRESETS, ROOT_CONTEXT, type RPCAttrs, RandomSampler, type RequestLogSnapshot, type RequestLogger, type RequestLoggerOptions, type SafeBaggageOptions, type SafeBaggageSchema, type Sampler, type SamplingContext, type SamplingPreset, type SchemaLike, type ServerAddressAttrs, ServiceAttributes, type ServiceAttrs, type SessionAttrs, type SingleInstrumentOptions, type Span, type SpanAttributes, type SpanContext, type SpanFilterPredicate, SpanKind, type SpanLink, type SpanNameNormalizerConfig, type SpanNameNormalizerFn, type SpanNameNormalizerPreset, SpanNameNormalizingProcessor, type SpanNameNormalizingProcessorOptions, type SpanOptions, SpanStatusCode, type StepConfig, type StepContext, type StepStatus, type StringRedactor, type StructuredError, type StructuredErrorInput, type TLSAttrs, type TextMapGetter, type TextMapSetter, type ThreadAttrs, type TimeInput, type TraceContext$1 as TraceContext, type TraceFlags, type TraceState, type Tracer, type TracerProvider, URLAttributes, type URLAttrs, type UserAttrs, UserIdSampler, type ValuePatternConfig, type WithBaggageOptions, type WithNewContextOptions, type WorkflowConfig, type WorkflowContext, type WorkflowStatus, attrs, autoRedactPII, builtinPatterns, context, createAttributeRedactor, createCounter, createDeterministicTraceId, createDrainPipeline, createHistogram, createLinkFromHeaders, createNoopRequestLogger, createObservableGauge, createRedactedSpan, createSafeBaggageSchema, createStringRedactor, createStructuredError, createUpDownCounter, ctx, dbClient, defineAuditCatalog, defineBaggageSchema, defineDrain, defineEnricher, defineErrorCatalog, defineEvent, defineHttpDrain, enrichWithTraceContext, extractLinksFromBatch, finalizeSpan, flattenMetadata, flattenToAttributes, flush, formatDuration, generateCorrelationId, getActiveContext, getActiveSpan, getActiveTraceContext, getAutotelTracer, getAutotelTracerProvider, getCatalogCode, getCorrelationId, getCurrentWorkflowContext, getEventQueue, getEvents, getMeter, getMetrics, getOperationContext, getOrCreateCorrelationId, getRequestLogger, getRequestLoggerSafe, getStructuredErrorAttributes, getTraceContext, getTracer, hasRequestContext, httpClient, httpRequestHeaderAttribute, httpResponseHeaderAttribute, httpServer, identify, init, instrument, isCatalogError, isInWorkflow, isInitialized, isLoggerLocked, isTracing, lockLogger, mergeAttrs, mergeServiceResource, normalizeAttributeRedactorConfig, otelTrace, parseError, propagation, recordStructuredError, request, resetEvents, resetMetrics, resolveSamplingPreset, resolveTraceUrl, runInOperationContext, runWithCorrelationId, runWithRequestContext, runWithSpan, safeSetAttributes, samplingPresets, setAutotelTracerProvider, setCorrelationId, setCorrelationIdInBaggage, setDevice, setError, setException, setSession, setUser, shutdown, span, structuredErrorToJSON, toAttributeValue, trace, traceConsumer, traceDB, traceHTTP, traceMessaging, traceProducer, traceStep, traceWorkflow, track, validateAttribute, withBaggage, withNewContext, withTracing };
|
|
638
|
-
//# sourceMappingURL=index.d.cts.map
|
|
640
|
+
export { AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, AdaptiveSampler, AlwaysSampler, type AttributeGuardrails, type AttributePolicy, AttributeRedactingProcessor, type AttributeRedactingProcessorOptions, type AttributeRedactorConfig, type AttributeRedactorFn, type AttributeRedactorPreset, type AttributeValue, type Attributes, type AuditAction, type AuditCatalog, type AuditCatalogEntry, type AuditDescriptor, type AuditSeverity, type AutotelConfig, type Baggage, type BaggageEntry, type BaggageError, type BaggageFieldDefinition, type BaggageFieldType, BaggageSpanProcessor, type BaggageSpanProcessorOptions, type BuiltinPatternName, BusinessBaggage, type BusinessBaggageValues, CORRELATION_ID_BAGGAGE_KEY, type ClientAttrs, type CloudAttrs, type CodeAttrs, type ConsumerConfig, type ConsumerContext, type ContainerAttrs, type Context, type DBAttrs, type DBConfig, type DefineEventOptions, type DefinedEvent, type DeploymentAttrs, type DeviceAttrs, type DrainOptions, type DrainPipelineOptions, type EnrichContext, type EnricherDefinition, type EnricherOptions, type ErrorAttrs, type ErrorBuildOptions, type ErrorBuilder, type ErrorCatalog, type ErrorCatalogEntry, Event, type EventAttributes, type EventSubscriber, type EventsOptions, type Exception, type ExceptionAttrs, type FaaSAttrs, type FeatureFlagAttrs, FilteringSpanProcessor, type FilteringSpanProcessorOptions, type ForkLifecycle, type ForkOptions, type FunnelStatus, type GraphQLAttrs, HTTPAttributes, type HTTPClientAttrs, type HTTPConfig, type HTTPServerAttrs, type HrTime, type HttpDrainOptions, type HttpDrainRequest, type InstrumentOptions, type K8sAttrs, type LagMetricsConfig, type Link, type MaskFn, type MessagingAttrs, type MessagingConfig, type MessagingOperation, type MessagingSystem, Metric, type MetricsOptions, NORMALIZER_PATTERNS, NORMALIZER_PRESETS, type NetworkAttrs, NeverSampler, type OTelAttrs, type OperationContext, type TraceContext as OtelTraceContext, type OutcomeStatus, type ParsedError, type PeerAttrs, type PipelineDrainFn, type ProcessAttrs, type ProcessHandlersConfig, type ProducerConfig, type ProducerContext, REDACTOR_PATTERNS, REDACTOR_PRESETS, ROOT_CONTEXT, type RPCAttrs, RandomSampler, type RequestLogLevel, type RequestLogSnapshot, type RequestLogger, type RequestLoggerOptions, type SafeBaggageOptions, type SafeBaggageSchema, type Sampler, type SamplingContext, type SamplingPreset, type SchemaLike, type ServerAddressAttrs, ServiceAttributes, type ServiceAttrs, type SessionAttrs, type SingleInstrumentOptions, type Span, type SpanAttributes, type SpanContext, type SpanFilterPredicate, SpanKind, type SpanLink, type SpanNameNormalizerConfig, type SpanNameNormalizerFn, type SpanNameNormalizerPreset, SpanNameNormalizingProcessor, type SpanNameNormalizingProcessorOptions, type SpanOptions, SpanStatusCode, type StepConfig, type StepContext, type StepStatus, type StringRedactor, type StructuredError, type StructuredErrorInput, type TLSAttrs, type TextMapGetter, type TextMapSetter, type ThreadAttrs, type TimeInput, type TraceContext$1 as TraceContext, type TraceFlags, type TraceState, type Tracer, type TracerProvider, URLAttributes, type URLAttrs, type UserAttrs, UserIdSampler, type ValuePatternConfig, type WithBaggageOptions, type WithNewContextOptions, type WorkflowConfig, type WorkflowContext, type WorkflowStatus, attrs, autoRedactPII, builtinPatterns, context, createAttributeRedactor, createCounter, createDeterministicTraceId, createDrainPipeline, createHistogram, createLinkFromHeaders, createNoopRequestLogger, createObservableGauge, createRedactedSpan, createSafeBaggageSchema, createStringRedactor, createStructuredError, createUpDownCounter, ctx, dbClient, defineAuditCatalog, defineBaggageSchema, defineDrain, defineEnricher, defineErrorCatalog, defineEvent, defineHttpDrain, enrichWithTraceContext, extractLinksFromBatch, finalizeSpan, flattenMetadata, flattenToAttributes, flush, formatDuration, generateCorrelationId, getActiveContext, getActiveSpan, getActiveTraceContext, getAutotelTracer, getAutotelTracerProvider, getCatalogCode, getCorrelationId, getCurrentWorkflowContext, getEventQueue, getEvents, getMeter, getMetrics, getOperationContext, getOrCreateCorrelationId, getRequestLogger, getRequestLoggerSafe, getStructuredErrorAttributes, getTraceContext, getTracer, hasRequestContext, httpClient, httpRequestHeaderAttribute, httpResponseHeaderAttribute, httpServer, identify, init, instrument, isCatalogError, isInWorkflow, isInitialized, isLoggerLocked, isTracing, lockLogger, mergeAttrs, mergeServiceResource, normalizeAttributeRedactorConfig, otelTrace, parseError, propagation, recordStructuredError, request, resetEvents, resetMetrics, resolveSamplingPreset, resolveTraceUrl, runInOperationContext, runWithCorrelationId, runWithRequestContext, runWithSpan, safeSetAttributes, samplingPresets, setAutotelTracerProvider, setCorrelationId, setCorrelationIdInBaggage, setDevice, setError, setException, setSession, setUser, shutdown, span, structuredErrorToJSON, toAttributeValue, trace, traceConsumer, traceDB, traceHTTP, traceMessaging, traceProducer, traceStep, traceWorkflow, track, validateAttribute, withBaggage, withNewContext, withTracing };
|
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { DrainPipelineOptions, PipelineDrainFn, createDrainPipeline } from "./dr
|
|
|
9
9
|
import { a as EventSubscriber, c as OutcomeStatus, i as EventSchemaMetadata, n as EventAttributes, o as EventTrackingOptions, s as FunnelStatus, t as AutotelEventContext } from "./event-subscriber-CWh8sTGh.js";
|
|
10
10
|
import { Event, EventsOptions, getEvents, resetEvents } from "./event.js";
|
|
11
11
|
import { n as FilteringSpanProcessorOptions, r as SpanFilterPredicate, t as FilteringSpanProcessor } from "./filtering-span-processor-BpDagWNa.js";
|
|
12
|
-
import { a as isLoggerLocked, c as StringRedactor, i as isInitialized, l as createStringRedactor, o as lockLogger, r as init, s as ProcessHandlersConfig, t as AutotelConfig } from "./init-
|
|
12
|
+
import { a as isLoggerLocked, c as StringRedactor, i as isInitialized, l as createStringRedactor, o as lockLogger, r as init, s as ProcessHandlersConfig, t as AutotelConfig } from "./init-BHp-kqLJ.js";
|
|
13
13
|
import { a as SpanNameNormalizerPreset, i as SpanNameNormalizerFn, n as NORMALIZER_PRESETS, o as SpanNameNormalizingProcessor, r as SpanNameNormalizerConfig, s as SpanNameNormalizingProcessorOptions, t as NORMALIZER_PATTERNS } from "./span-name-normalizer-CN1-8C76.js";
|
|
14
14
|
import "./canonical-log-line-processor-CL_J7gb5.js";
|
|
15
15
|
import { i as defineEvent, n as DefinedEvent, r as SchemaLike, t as DefineEventOptions } from "./define-event-B2z1SBe7.js";
|
|
@@ -391,6 +391,8 @@ declare function shutdown(): Promise<void>;
|
|
|
391
391
|
declare function runWithRequestContext<T>(ctx: TraceContext$1, fn: () => T): T;
|
|
392
392
|
interface RequestLogger {
|
|
393
393
|
set(fields: Record<string, unknown>): void;
|
|
394
|
+
/** Set snapshot severity without adding a log event or exception. */
|
|
395
|
+
setLevel(level: RequestLogLevel): void;
|
|
394
396
|
info(message: string, fields?: Record<string, unknown>): void;
|
|
395
397
|
warn(message: string, fields?: Record<string, unknown>): void;
|
|
396
398
|
error(error: Error | string, fields?: Record<string, unknown>): void;
|
|
@@ -398,6 +400,7 @@ interface RequestLogger {
|
|
|
398
400
|
emitNow(overrides?: Record<string, unknown>): RequestLogSnapshot;
|
|
399
401
|
fork(label: string, fn: () => void | Promise<void>, options?: ForkOptions): void;
|
|
400
402
|
}
|
|
403
|
+
type RequestLogLevel = 'debug' | 'info' | 'warn' | 'error';
|
|
401
404
|
interface RequestLogSnapshot {
|
|
402
405
|
timestamp: string;
|
|
403
406
|
traceId: string;
|
|
@@ -634,5 +637,4 @@ declare function defineEnricher<TEvent extends Record<string, unknown>, TValue e
|
|
|
634
637
|
*/
|
|
635
638
|
declare function formatDuration(ms: number): string;
|
|
636
639
|
//#endregion
|
|
637
|
-
export { AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, AdaptiveSampler, AlwaysSampler, type AttributeGuardrails, type AttributePolicy, AttributeRedactingProcessor, type AttributeRedactingProcessorOptions, type AttributeRedactorConfig, type AttributeRedactorFn, type AttributeRedactorPreset, type AttributeValue, type Attributes, type AuditAction, type AuditCatalog, type AuditCatalogEntry, type AuditDescriptor, type AuditSeverity, type AutotelConfig, type Baggage, type BaggageEntry, type BaggageError, type BaggageFieldDefinition, type BaggageFieldType, BaggageSpanProcessor, type BaggageSpanProcessorOptions, type BuiltinPatternName, BusinessBaggage, type BusinessBaggageValues, CORRELATION_ID_BAGGAGE_KEY, type ClientAttrs, type CloudAttrs, type CodeAttrs, type ConsumerConfig, type ConsumerContext, type ContainerAttrs, type Context, type DBAttrs, type DBConfig, type DefineEventOptions, type DefinedEvent, type DeploymentAttrs, type DeviceAttrs, type DrainOptions, type DrainPipelineOptions, type EnrichContext, type EnricherDefinition, type EnricherOptions, type ErrorAttrs, type ErrorBuildOptions, type ErrorBuilder, type ErrorCatalog, type ErrorCatalogEntry, Event, type EventAttributes, type EventSubscriber, type EventsOptions, type Exception, type ExceptionAttrs, type FaaSAttrs, type FeatureFlagAttrs, FilteringSpanProcessor, type FilteringSpanProcessorOptions, type ForkLifecycle, type ForkOptions, type FunnelStatus, type GraphQLAttrs, HTTPAttributes, type HTTPClientAttrs, type HTTPConfig, type HTTPServerAttrs, type HrTime, type HttpDrainOptions, type HttpDrainRequest, type InstrumentOptions, type K8sAttrs, type LagMetricsConfig, type Link, type MaskFn, type MessagingAttrs, type MessagingConfig, type MessagingOperation, type MessagingSystem, Metric, type MetricsOptions, NORMALIZER_PATTERNS, NORMALIZER_PRESETS, type NetworkAttrs, NeverSampler, type OTelAttrs, type OperationContext, type TraceContext as OtelTraceContext, type OutcomeStatus, type ParsedError, type PeerAttrs, type PipelineDrainFn, type ProcessAttrs, type ProcessHandlersConfig, type ProducerConfig, type ProducerContext, REDACTOR_PATTERNS, REDACTOR_PRESETS, ROOT_CONTEXT, type RPCAttrs, RandomSampler, type RequestLogSnapshot, type RequestLogger, type RequestLoggerOptions, type SafeBaggageOptions, type SafeBaggageSchema, type Sampler, type SamplingContext, type SamplingPreset, type SchemaLike, type ServerAddressAttrs, ServiceAttributes, type ServiceAttrs, type SessionAttrs, type SingleInstrumentOptions, type Span, type SpanAttributes, type SpanContext, type SpanFilterPredicate, SpanKind, type SpanLink, type SpanNameNormalizerConfig, type SpanNameNormalizerFn, type SpanNameNormalizerPreset, SpanNameNormalizingProcessor, type SpanNameNormalizingProcessorOptions, type SpanOptions, SpanStatusCode, type StepConfig, type StepContext, type StepStatus, type StringRedactor, type StructuredError, type StructuredErrorInput, type TLSAttrs, type TextMapGetter, type TextMapSetter, type ThreadAttrs, type TimeInput, type TraceContext$1 as TraceContext, type TraceFlags, type TraceState, type Tracer, type TracerProvider, URLAttributes, type URLAttrs, type UserAttrs, UserIdSampler, type ValuePatternConfig, type WithBaggageOptions, type WithNewContextOptions, type WorkflowConfig, type WorkflowContext, type WorkflowStatus, attrs, autoRedactPII, builtinPatterns, context, createAttributeRedactor, createCounter, createDeterministicTraceId, createDrainPipeline, createHistogram, createLinkFromHeaders, createNoopRequestLogger, createObservableGauge, createRedactedSpan, createSafeBaggageSchema, createStringRedactor, createStructuredError, createUpDownCounter, ctx, dbClient, defineAuditCatalog, defineBaggageSchema, defineDrain, defineEnricher, defineErrorCatalog, defineEvent, defineHttpDrain, enrichWithTraceContext, extractLinksFromBatch, finalizeSpan, flattenMetadata, flattenToAttributes, flush, formatDuration, generateCorrelationId, getActiveContext, getActiveSpan, getActiveTraceContext, getAutotelTracer, getAutotelTracerProvider, getCatalogCode, getCorrelationId, getCurrentWorkflowContext, getEventQueue, getEvents, getMeter, getMetrics, getOperationContext, getOrCreateCorrelationId, getRequestLogger, getRequestLoggerSafe, getStructuredErrorAttributes, getTraceContext, getTracer, hasRequestContext, httpClient, httpRequestHeaderAttribute, httpResponseHeaderAttribute, httpServer, identify, init, instrument, isCatalogError, isInWorkflow, isInitialized, isLoggerLocked, isTracing, lockLogger, mergeAttrs, mergeServiceResource, normalizeAttributeRedactorConfig, otelTrace, parseError, propagation, recordStructuredError, request, resetEvents, resetMetrics, resolveSamplingPreset, resolveTraceUrl, runInOperationContext, runWithCorrelationId, runWithRequestContext, runWithSpan, safeSetAttributes, samplingPresets, setAutotelTracerProvider, setCorrelationId, setCorrelationIdInBaggage, setDevice, setError, setException, setSession, setUser, shutdown, span, structuredErrorToJSON, toAttributeValue, trace, traceConsumer, traceDB, traceHTTP, traceMessaging, traceProducer, traceStep, traceWorkflow, track, validateAttribute, withBaggage, withNewContext, withTracing };
|
|
638
|
-
//# sourceMappingURL=index.d.ts.map
|
|
640
|
+
export { AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, AdaptiveSampler, AlwaysSampler, type AttributeGuardrails, type AttributePolicy, AttributeRedactingProcessor, type AttributeRedactingProcessorOptions, type AttributeRedactorConfig, type AttributeRedactorFn, type AttributeRedactorPreset, type AttributeValue, type Attributes, type AuditAction, type AuditCatalog, type AuditCatalogEntry, type AuditDescriptor, type AuditSeverity, type AutotelConfig, type Baggage, type BaggageEntry, type BaggageError, type BaggageFieldDefinition, type BaggageFieldType, BaggageSpanProcessor, type BaggageSpanProcessorOptions, type BuiltinPatternName, BusinessBaggage, type BusinessBaggageValues, CORRELATION_ID_BAGGAGE_KEY, type ClientAttrs, type CloudAttrs, type CodeAttrs, type ConsumerConfig, type ConsumerContext, type ContainerAttrs, type Context, type DBAttrs, type DBConfig, type DefineEventOptions, type DefinedEvent, type DeploymentAttrs, type DeviceAttrs, type DrainOptions, type DrainPipelineOptions, type EnrichContext, type EnricherDefinition, type EnricherOptions, type ErrorAttrs, type ErrorBuildOptions, type ErrorBuilder, type ErrorCatalog, type ErrorCatalogEntry, Event, type EventAttributes, type EventSubscriber, type EventsOptions, type Exception, type ExceptionAttrs, type FaaSAttrs, type FeatureFlagAttrs, FilteringSpanProcessor, type FilteringSpanProcessorOptions, type ForkLifecycle, type ForkOptions, type FunnelStatus, type GraphQLAttrs, HTTPAttributes, type HTTPClientAttrs, type HTTPConfig, type HTTPServerAttrs, type HrTime, type HttpDrainOptions, type HttpDrainRequest, type InstrumentOptions, type K8sAttrs, type LagMetricsConfig, type Link, type MaskFn, type MessagingAttrs, type MessagingConfig, type MessagingOperation, type MessagingSystem, Metric, type MetricsOptions, NORMALIZER_PATTERNS, NORMALIZER_PRESETS, type NetworkAttrs, NeverSampler, type OTelAttrs, type OperationContext, type TraceContext as OtelTraceContext, type OutcomeStatus, type ParsedError, type PeerAttrs, type PipelineDrainFn, type ProcessAttrs, type ProcessHandlersConfig, type ProducerConfig, type ProducerContext, REDACTOR_PATTERNS, REDACTOR_PRESETS, ROOT_CONTEXT, type RPCAttrs, RandomSampler, type RequestLogLevel, type RequestLogSnapshot, type RequestLogger, type RequestLoggerOptions, type SafeBaggageOptions, type SafeBaggageSchema, type Sampler, type SamplingContext, type SamplingPreset, type SchemaLike, type ServerAddressAttrs, ServiceAttributes, type ServiceAttrs, type SessionAttrs, type SingleInstrumentOptions, type Span, type SpanAttributes, type SpanContext, type SpanFilterPredicate, SpanKind, type SpanLink, type SpanNameNormalizerConfig, type SpanNameNormalizerFn, type SpanNameNormalizerPreset, SpanNameNormalizingProcessor, type SpanNameNormalizingProcessorOptions, type SpanOptions, SpanStatusCode, type StepConfig, type StepContext, type StepStatus, type StringRedactor, type StructuredError, type StructuredErrorInput, type TLSAttrs, type TextMapGetter, type TextMapSetter, type ThreadAttrs, type TimeInput, type TraceContext$1 as TraceContext, type TraceFlags, type TraceState, type Tracer, type TracerProvider, URLAttributes, type URLAttrs, type UserAttrs, UserIdSampler, type ValuePatternConfig, type WithBaggageOptions, type WithNewContextOptions, type WorkflowConfig, type WorkflowContext, type WorkflowStatus, attrs, autoRedactPII, builtinPatterns, context, createAttributeRedactor, createCounter, createDeterministicTraceId, createDrainPipeline, createHistogram, createLinkFromHeaders, createNoopRequestLogger, createObservableGauge, createRedactedSpan, createSafeBaggageSchema, createStringRedactor, createStructuredError, createUpDownCounter, ctx, dbClient, defineAuditCatalog, defineBaggageSchema, defineDrain, defineEnricher, defineErrorCatalog, defineEvent, defineHttpDrain, enrichWithTraceContext, extractLinksFromBatch, finalizeSpan, flattenMetadata, flattenToAttributes, flush, formatDuration, generateCorrelationId, getActiveContext, getActiveSpan, getActiveTraceContext, getAutotelTracer, getAutotelTracerProvider, getCatalogCode, getCorrelationId, getCurrentWorkflowContext, getEventQueue, getEvents, getMeter, getMetrics, getOperationContext, getOrCreateCorrelationId, getRequestLogger, getRequestLoggerSafe, getStructuredErrorAttributes, getTraceContext, getTracer, hasRequestContext, httpClient, httpRequestHeaderAttribute, httpResponseHeaderAttribute, httpServer, identify, init, instrument, isCatalogError, isInWorkflow, isInitialized, isLoggerLocked, isTracing, lockLogger, mergeAttrs, mergeServiceResource, normalizeAttributeRedactorConfig, otelTrace, parseError, propagation, recordStructuredError, request, resetEvents, resetMetrics, resolveSamplingPreset, resolveTraceUrl, runInOperationContext, runWithCorrelationId, runWithRequestContext, runWithSpan, safeSetAttributes, samplingPresets, setAutotelTracerProvider, setCorrelationId, setCorrelationIdInBaggage, setDevice, setError, setException, setSession, setUser, shutdown, span, structuredErrorToJSON, toAttributeValue, trace, traceConsumer, traceDB, traceHTTP, traceMessaging, traceProducer, traceStep, traceWorkflow, track, validateAttribute, withBaggage, withNewContext, withTracing };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getAutotelTracer, getAutotelTracerProvider, setAutotelTracerProvider } from "./tracer-provider.js";
|
|
2
2
|
import { AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, AdaptiveSampler, AlwaysSampler, NeverSampler, RandomSampler, UserIdSampler, createLinkFromHeaders, extractLinksFromBatch, resolveSamplingPreset, samplingPresets } from "./sampling.js";
|
|
3
|
-
import { A as BaggageSpanProcessor, C as setCorrelationId, E as defineBaggageSchema, S as runWithCorrelationId, T as createTraceContext, _ as CORRELATION_ID_BAGGAGE_KEY, a as isInitialized, c as flush, d as getEvents, f as resetEvents, g as track, h as getEventQueue, i as init, k as createStringRedactor, l as shutdown, m as runInOperationContext, o as isLoggerLocked, p as getOperationContext, s as lockLogger, u as Event, v as generateCorrelationId, w as setCorrelationIdInBaggage, x as getOrCreateCorrelationId, y as getCorrelationId } from "./init-
|
|
3
|
+
import { A as BaggageSpanProcessor, C as setCorrelationId, E as defineBaggageSchema, S as runWithCorrelationId, T as createTraceContext, _ as CORRELATION_ID_BAGGAGE_KEY, a as isInitialized, c as flush, d as getEvents, f as resetEvents, g as track, h as getEventQueue, i as init, k as createStringRedactor, l as shutdown, m as runInOperationContext, o as isLoggerLocked, p as getOperationContext, s as lockLogger, u as Event, v as generateCorrelationId, w as setCorrelationIdInBaggage, x as getOrCreateCorrelationId, y as getCorrelationId } from "./init-DDkh2brw.js";
|
|
4
4
|
import { FilteringSpanProcessor } from "./filtering-span-processor.js";
|
|
5
5
|
import { NORMALIZER_PATTERNS, NORMALIZER_PRESETS, SpanNameNormalizingProcessor } from "./span-name-normalizer.js";
|
|
6
6
|
import { AttributeRedactingProcessor, REDACTOR_PATTERNS, REDACTOR_PRESETS, builtinPatterns, createAttributeRedactor, createRedactedSpan, normalizeAttributeRedactorConfig } from "./attribute-redacting-processor.js";
|
|
@@ -8,7 +8,7 @@ import { n as formatDuration } from "./canonical-log-line-processor-mKABvGP0.js"
|
|
|
8
8
|
import { a as flattenToAttributes, i as structuredErrorToJSON, n as getStructuredErrorAttributes, o as toAttributeValue, r as recordStructuredError, t as createStructuredError } from "./structured-error-9--cxBay.js";
|
|
9
9
|
import { Metric, getMetrics, resetMetrics } from "./metric.js";
|
|
10
10
|
import { createDeterministicTraceId, enrichWithTraceContext, finalizeSpan, flattenMetadata, getActiveContext, getActiveSpan, getTraceContext, getTracer, isTracing, resolveTraceUrl, runWithSpan } from "./trace-helpers.js";
|
|
11
|
-
import { a as trace$2, c as withTracing, i as span, n as getActiveTraceContext, o as withBaggage, r as instrument, s as withNewContext, t as ctx } from "./functional-
|
|
11
|
+
import { a as trace$2, c as withTracing, i as span, n as getActiveTraceContext, o as withBaggage, r as instrument, s as withNewContext, t as ctx } from "./functional-DYAZiYxr.js";
|
|
12
12
|
import { t as hashJson } from "./stable-hash-ChFBIhNt.js";
|
|
13
13
|
import { t as emitCorrelatedEvent } from "./correlated-events-Bzh5y-UB.js";
|
|
14
14
|
import { parseError } from "./parse-error.js";
|
|
@@ -105,6 +105,7 @@ function getRequestLogger(ctx, options) {
|
|
|
105
105
|
const contextState = {};
|
|
106
106
|
let emitted = false;
|
|
107
107
|
let lastSnapshot = null;
|
|
108
|
+
let hasExplicitLevel = false;
|
|
108
109
|
const addLogEvent = (level, message, fields) => {
|
|
109
110
|
const attrs = fields ? flattenToAttributes(fields) : void 0;
|
|
110
111
|
emitCorrelatedEvent(activeContext, `log.${level}`, {
|
|
@@ -122,6 +123,12 @@ function getRequestLogger(ctx, options) {
|
|
|
122
123
|
mergeInto$1(contextState, fields);
|
|
123
124
|
activeContext.setAttributes(flattenToAttributes(fields));
|
|
124
125
|
},
|
|
126
|
+
setLevel(level) {
|
|
127
|
+
sealCheck("log.setLevel()", ["autotel.log.level"]);
|
|
128
|
+
if (emitted) return;
|
|
129
|
+
hasExplicitLevel = true;
|
|
130
|
+
activeContext.setAttribute("autotel.log.level", level);
|
|
131
|
+
},
|
|
125
132
|
info(message, fields) {
|
|
126
133
|
const keys = fields ? ["message", ...Object.keys(fields).filter((k) => k !== "requestLogs")] : ["message"];
|
|
127
134
|
sealCheck("log.info()", keys);
|
|
@@ -137,7 +144,7 @@ function getRequestLogger(ctx, options) {
|
|
|
137
144
|
sealCheck("log.warn()", keys);
|
|
138
145
|
if (emitted) return;
|
|
139
146
|
addLogEvent("warn", message, fields);
|
|
140
|
-
activeContext.setAttribute("autotel.log.level", "warn");
|
|
147
|
+
if (!hasExplicitLevel) activeContext.setAttribute("autotel.log.level", "warn");
|
|
141
148
|
if (fields) {
|
|
142
149
|
mergeInto$1(contextState, fields);
|
|
143
150
|
activeContext.setAttributes(flattenToAttributes(fields));
|
|
@@ -154,7 +161,7 @@ function getRequestLogger(ctx, options) {
|
|
|
154
161
|
mergeInto$1(contextState, fields);
|
|
155
162
|
activeContext.setAttributes(flattenToAttributes(fields));
|
|
156
163
|
}
|
|
157
|
-
activeContext.setAttribute("autotel.log.level", "error");
|
|
164
|
+
if (!hasExplicitLevel) activeContext.setAttribute("autotel.log.level", "error");
|
|
158
165
|
},
|
|
159
166
|
getContext() {
|
|
160
167
|
return { ...contextState };
|
|
@@ -258,6 +265,7 @@ function createNoopRequestLogger() {
|
|
|
258
265
|
});
|
|
259
266
|
return {
|
|
260
267
|
set() {},
|
|
268
|
+
setLevel() {},
|
|
261
269
|
info() {},
|
|
262
270
|
warn() {},
|
|
263
271
|
error() {},
|
|
@@ -499,5 +507,4 @@ function defineEnricher(def, options = {}) {
|
|
|
499
507
|
}
|
|
500
508
|
|
|
501
509
|
//#endregion
|
|
502
|
-
export { AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, AdaptiveSampler, AlwaysSampler, AttributeRedactingProcessor, BaggageSpanProcessor, BusinessBaggage, CORRELATION_ID_BAGGAGE_KEY, Event, FilteringSpanProcessor, HTTPAttributes, Metric, NORMALIZER_PATTERNS, NORMALIZER_PRESETS, NeverSampler, REDACTOR_PATTERNS, REDACTOR_PRESETS, ROOT_CONTEXT, RandomSampler, ServiceAttributes, SpanKind, SpanNameNormalizingProcessor, SpanStatusCode, URLAttributes, UserIdSampler, attrs, autoRedactPII, builtinPatterns, context, createAttributeRedactor, createCounter, createDeterministicTraceId, createDrainPipeline, createHistogram, createLinkFromHeaders, createNoopRequestLogger, createObservableGauge, createRedactedSpan, createSafeBaggageSchema, createStringRedactor, createStructuredError, createUpDownCounter, ctx, dbClient, defineAuditCatalog, defineBaggageSchema, defineDrain, defineEnricher, defineErrorCatalog, defineEvent, defineHttpDrain, enrichWithTraceContext, extractLinksFromBatch, finalizeSpan, flattenMetadata, flattenToAttributes, flush, formatDuration, generateCorrelationId, getActiveContext, getActiveSpan, getActiveTraceContext, getAutotelTracer, getAutotelTracerProvider, getCatalogCode, getCorrelationId, getCurrentWorkflowContext, getEventQueue, getEvents, getMeter, getMetrics, getOperationContext, getOrCreateCorrelationId, getRequestLogger, getRequestLoggerSafe, getStructuredErrorAttributes, getTraceContext, getTracer, hasRequestContext, httpClient, httpRequestHeaderAttribute, httpResponseHeaderAttribute, httpServer, identify, init, instrument, isCatalogError, isInWorkflow, isInitialized, isLoggerLocked, isTracing, lockLogger, mergeAttrs, mergeServiceResource, normalizeAttributeRedactorConfig, otelTrace, parseError, propagation, recordStructuredError, request, resetEvents, resetMetrics, resolveSamplingPreset, resolveTraceUrl, runInOperationContext, runWithCorrelationId, runWithRequestContext, runWithSpan, safeSetAttributes, samplingPresets, setAutotelTracerProvider, setCorrelationId, setCorrelationIdInBaggage, setDevice, setError, setException, setSession, setUser, shutdown, span, structuredErrorToJSON, toAttributeValue, trace, traceConsumer, traceDB, traceHTTP, traceMessaging, traceProducer, traceStep, traceWorkflow, track, validateAttribute, withBaggage, withNewContext, withTracing };
|
|
503
|
-
//# sourceMappingURL=index.js.map
|
|
510
|
+
export { AUTOTEL_SAMPLING_TAIL_EVALUATED, AUTOTEL_SAMPLING_TAIL_KEEP, AdaptiveSampler, AlwaysSampler, AttributeRedactingProcessor, BaggageSpanProcessor, BusinessBaggage, CORRELATION_ID_BAGGAGE_KEY, Event, FilteringSpanProcessor, HTTPAttributes, Metric, NORMALIZER_PATTERNS, NORMALIZER_PRESETS, NeverSampler, REDACTOR_PATTERNS, REDACTOR_PRESETS, ROOT_CONTEXT, RandomSampler, ServiceAttributes, SpanKind, SpanNameNormalizingProcessor, SpanStatusCode, URLAttributes, UserIdSampler, attrs, autoRedactPII, builtinPatterns, context, createAttributeRedactor, createCounter, createDeterministicTraceId, createDrainPipeline, createHistogram, createLinkFromHeaders, createNoopRequestLogger, createObservableGauge, createRedactedSpan, createSafeBaggageSchema, createStringRedactor, createStructuredError, createUpDownCounter, ctx, dbClient, defineAuditCatalog, defineBaggageSchema, defineDrain, defineEnricher, defineErrorCatalog, defineEvent, defineHttpDrain, enrichWithTraceContext, extractLinksFromBatch, finalizeSpan, flattenMetadata, flattenToAttributes, flush, formatDuration, generateCorrelationId, getActiveContext, getActiveSpan, getActiveTraceContext, getAutotelTracer, getAutotelTracerProvider, getCatalogCode, getCorrelationId, getCurrentWorkflowContext, getEventQueue, getEvents, getMeter, getMetrics, getOperationContext, getOrCreateCorrelationId, getRequestLogger, getRequestLoggerSafe, getStructuredErrorAttributes, getTraceContext, getTracer, hasRequestContext, httpClient, httpRequestHeaderAttribute, httpResponseHeaderAttribute, httpServer, identify, init, instrument, isCatalogError, isInWorkflow, isInitialized, isLoggerLocked, isTracing, lockLogger, mergeAttrs, mergeServiceResource, normalizeAttributeRedactorConfig, otelTrace, parseError, propagation, recordStructuredError, request, resetEvents, resetMetrics, resolveSamplingPreset, resolveTraceUrl, runInOperationContext, runWithCorrelationId, runWithRequestContext, runWithSpan, safeSetAttributes, samplingPresets, setAutotelTracerProvider, setCorrelationId, setCorrelationIdInBaggage, setDevice, setError, setException, setSession, setUser, shutdown, span, structuredErrorToJSON, toAttributeValue, trace, traceConsumer, traceDB, traceHTTP, traceMessaging, traceProducer, traceStep, traceWorkflow, track, validateAttribute, withBaggage, withNewContext, withTracing };
|
|
@@ -238,13 +238,22 @@ interface OtlpDestinationConfig {
|
|
|
238
238
|
/**
|
|
239
239
|
* Protocol for this destination. Falls back to top-level `protocol`.
|
|
240
240
|
*/
|
|
241
|
-
protocol?:
|
|
241
|
+
protocol?: AutotelProtocol;
|
|
242
242
|
/**
|
|
243
243
|
* Signals to send to this destination.
|
|
244
244
|
* Defaults to all signals supported by the current init() config.
|
|
245
245
|
*/
|
|
246
246
|
signals?: OtlpSignal[];
|
|
247
247
|
}
|
|
248
|
+
/**
|
|
249
|
+
* OTLP wire protocols.
|
|
250
|
+
*
|
|
251
|
+
* `http` is OTLP/HTTP with a JSON body; `http/protobuf` is OTLP/HTTP with a
|
|
252
|
+
* protobuf body. They are not interchangeable: several vendors (Pydantic
|
|
253
|
+
* Logfire, PostHog) accept protobuf only and drop JSON silently, which looks
|
|
254
|
+
* exactly like emitting no telemetry at all.
|
|
255
|
+
*/
|
|
256
|
+
type AutotelProtocol = 'http' | 'http/protobuf' | 'grpc';
|
|
248
257
|
interface AutotelConfig {
|
|
249
258
|
/** Service name (required) */
|
|
250
259
|
service: string;
|
|
@@ -576,7 +585,7 @@ interface AutotelConfig {
|
|
|
576
585
|
*
|
|
577
586
|
* @default 'http'
|
|
578
587
|
*/
|
|
579
|
-
protocol?:
|
|
588
|
+
protocol?: AutotelProtocol;
|
|
580
589
|
/**
|
|
581
590
|
* Optional factory to build a customised NodeSDK instance from our defaults.
|
|
582
591
|
*/
|
|
@@ -1234,5 +1243,4 @@ declare function init(cfg: AutotelConfig): void;
|
|
|
1234
1243
|
*/
|
|
1235
1244
|
declare function isInitialized(): boolean;
|
|
1236
1245
|
//#endregion
|
|
1237
|
-
export { isLoggerLocked as a, StringRedactor as c, isInitialized as i, createStringRedactor as l, OtlpSignal as n, lockLogger as o, init as r, ProcessHandlersConfig as s, AutotelConfig as t };
|
|
1238
|
-
//# sourceMappingURL=init-D6n2diBy.d.ts.map
|
|
1246
|
+
export { isLoggerLocked as a, StringRedactor as c, isInitialized as i, createStringRedactor as l, OtlpSignal as n, lockLogger as o, init as r, ProcessHandlersConfig as s, AutotelConfig as t };
|
|
@@ -238,13 +238,22 @@ interface OtlpDestinationConfig {
|
|
|
238
238
|
/**
|
|
239
239
|
* Protocol for this destination. Falls back to top-level `protocol`.
|
|
240
240
|
*/
|
|
241
|
-
protocol?:
|
|
241
|
+
protocol?: AutotelProtocol;
|
|
242
242
|
/**
|
|
243
243
|
* Signals to send to this destination.
|
|
244
244
|
* Defaults to all signals supported by the current init() config.
|
|
245
245
|
*/
|
|
246
246
|
signals?: OtlpSignal[];
|
|
247
247
|
}
|
|
248
|
+
/**
|
|
249
|
+
* OTLP wire protocols.
|
|
250
|
+
*
|
|
251
|
+
* `http` is OTLP/HTTP with a JSON body; `http/protobuf` is OTLP/HTTP with a
|
|
252
|
+
* protobuf body. They are not interchangeable: several vendors (Pydantic
|
|
253
|
+
* Logfire, PostHog) accept protobuf only and drop JSON silently, which looks
|
|
254
|
+
* exactly like emitting no telemetry at all.
|
|
255
|
+
*/
|
|
256
|
+
type AutotelProtocol = 'http' | 'http/protobuf' | 'grpc';
|
|
248
257
|
interface AutotelConfig {
|
|
249
258
|
/** Service name (required) */
|
|
250
259
|
service: string;
|
|
@@ -576,7 +585,7 @@ interface AutotelConfig {
|
|
|
576
585
|
*
|
|
577
586
|
* @default 'http'
|
|
578
587
|
*/
|
|
579
|
-
protocol?:
|
|
588
|
+
protocol?: AutotelProtocol;
|
|
580
589
|
/**
|
|
581
590
|
* Optional factory to build a customised NodeSDK instance from our defaults.
|
|
582
591
|
*/
|
|
@@ -1234,5 +1243,4 @@ declare function init(cfg: AutotelConfig): void;
|
|
|
1234
1243
|
*/
|
|
1235
1244
|
declare function isInitialized(): boolean;
|
|
1236
1245
|
//#endregion
|
|
1237
|
-
export { isLoggerLocked as a, StringRedactor as c, isInitialized as i, createStringRedactor as l, OtlpSignal as n, lockLogger as o, init as r, ProcessHandlersConfig as s, AutotelConfig as t };
|
|
1238
|
-
//# sourceMappingURL=init-XzXzrarP.d.cts.map
|
|
1246
|
+
export { isLoggerLocked as a, StringRedactor as c, isInitialized as i, createStringRedactor as l, OtlpSignal as n, lockLogger as o, init as r, ProcessHandlersConfig as s, AutotelConfig as t };
|