@osfactory/otel-hook 0.13.0 → 0.13.2
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 +51 -3
- package/dist/cli.js +907 -164
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +5 -3
- package/dist/config.js +39 -5
- package/dist/config.js.map +1 -1
- package/dist/{destinations-DvqsPulb.d.ts → destinations-C4sSKjDO.d.ts} +1 -1
- package/dist/{export-destinations-Bey2djRk.d.ts → export-destinations-BjRXDots.d.ts} +37 -5
- package/dist/{hook-D5imE0Qc.d.ts → hook-CKLpgrYP.d.ts} +2 -2
- package/dist/index.d.ts +9 -9
- package/dist/index.js +921 -182
- package/dist/index.js.map +1 -1
- package/dist/install.d.ts +1 -1
- package/dist/install.js +5 -1
- package/dist/install.js.map +1 -1
- package/dist/integration.d.ts +15 -8
- package/dist/integration.js +998 -160
- package/dist/integration.js.map +1 -1
- package/dist/lifecycle.d.ts +8 -1
- package/dist/lifecycle.js +10 -3
- package/dist/lifecycle.js.map +1 -1
- package/dist/{metric-model-CFIeUwqd.d.ts → metric-model-B4lIuk6i.d.ts} +8 -0
- package/dist/{payload-CdDKeRpH.d.ts → payload-DLK7QaBB.d.ts} +17 -1
- package/dist/providers.d.ts +91 -6
- package/dist/providers.js +311 -4
- package/dist/providers.js.map +1 -1
- package/dist/{registry-BKQhhIO3.d.ts → registry-DM-4YvIA.d.ts} +1 -1
- package/dist/runtime.d.ts +3 -3
- package/dist/runtime.js +23 -3
- package/dist/runtime.js.map +1 -1
- package/dist/{schema-SpFM6YQY.d.ts → schema-CD61uW99.d.ts} +32 -3
- package/dist/state.js +20 -6
- package/dist/state.js.map +1 -1
- package/dist/telemetry.d.ts +4 -4
- package/dist/telemetry.js +865 -472
- package/dist/telemetry.js.map +1 -1
- package/dist/testing.d.ts +3 -3
- package/dist/testing.js +61 -21
- package/dist/testing.js.map +1 -1
- package/package.json +2 -1
package/dist/integration.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { O as OtelHookConfig } from './schema-
|
|
1
|
+
import { O as OtelHookConfig } from './schema-CD61uW99.js';
|
|
2
2
|
import { OverallHealth } from './diagnostics.js';
|
|
3
3
|
import { OtelHookErrorInfo } from './errors.js';
|
|
4
4
|
import { DeliveryClaimOutcome, UsageAccumulatorSnapshot, LifecycleCleanupReport, CallbackDeduplicator, UsageAccumulator, SpanCorrelator, MetricSeriesStore, LifecycleJanitor } from './lifecycle.js';
|
|
5
5
|
import { P as PrivacyService } from './service-CbI9CObT.js';
|
|
6
|
-
import { P as ProviderRegistry } from './registry-
|
|
7
|
-
import { a as DeliveryOrigin, c as DeliveryUnavailableReason, H as HookIngestInput, e as HookIngestOutcome, U as UsageObservation, O as OtelHook } from './hook-
|
|
6
|
+
import { P as ProviderRegistry } from './registry-DM-4YvIA.js';
|
|
7
|
+
import { a as DeliveryOrigin, c as DeliveryUnavailableReason, H as HookIngestInput, e as HookIngestOutcome, U as UsageObservation, O as OtelHook } from './hook-CKLpgrYP.js';
|
|
8
8
|
import { C as Clock, I as IdGenerator, d as Logger, W as WorktreeLocator, P as PayloadEnricher, S as SessionContextReader } from './ports-DhpSDIkp.js';
|
|
9
9
|
import { F as FilesystemStateStore } from './filesystem-store-B3CpiIRl.js';
|
|
10
|
-
import { w as OtlpTelemetrySink, t as OtlpLogTelemetrySink, d as DurableSpool, D as DurableLogSpool, E as ExportDestinationSinks, B as SkippedExportDestination } from './export-destinations-
|
|
10
|
+
import { w as OtlpTelemetrySink, t as OtlpLogTelemetrySink, d as DurableSpool, D as DurableLogSpool, E as ExportDestinationSinks, B as SkippedExportDestination } from './export-destinations-BjRXDots.js';
|
|
11
11
|
import 'zod';
|
|
12
12
|
import './primitives-CJ8-rn-f.js';
|
|
13
13
|
import './taxonomy-DwhTtuWd.js';
|
|
14
14
|
import '@opentelemetry/api';
|
|
15
15
|
import './events-fcomX6d5.js';
|
|
16
|
-
import './metric-model-
|
|
16
|
+
import './metric-model-B4lIuk6i.js';
|
|
17
17
|
import '@opentelemetry/core';
|
|
18
18
|
import '@opentelemetry/resources';
|
|
19
19
|
import '@opentelemetry/sdk-trace';
|
|
@@ -22,7 +22,7 @@ import './policy-CimmCfRp.js';
|
|
|
22
22
|
import './adapter-DyCb7y1N.js';
|
|
23
23
|
import './identity-BrVBs901.js';
|
|
24
24
|
import './keys-Dej5bN3L.js';
|
|
25
|
-
import './destinations-
|
|
25
|
+
import './destinations-C4sSKjDO.js';
|
|
26
26
|
import '@opentelemetry/sdk-logs';
|
|
27
27
|
|
|
28
28
|
/**
|
|
@@ -323,10 +323,17 @@ type HookRuntimeOptions = {
|
|
|
323
323
|
/**
|
|
324
324
|
* Payload enrichers run before the adapter parses (see `PayloadEnricher`).
|
|
325
325
|
* When absent, the configuration decides: `providers.claudeCode.readTranscriptUsage`
|
|
326
|
-
* adds the Claude Code transcript-usage enricher,
|
|
327
|
-
* Pass `[]` to run
|
|
326
|
+
* adds the Claude Code transcript-usage enricher, `providers.codex.readRolloutUsage`
|
|
327
|
+
* the Codex rollout-usage enricher, and nothing else is added. Pass `[]` to run
|
|
328
|
+
* none regardless of configuration.
|
|
328
329
|
*/
|
|
329
330
|
readonly payloadEnrichers?: readonly PayloadEnricher[];
|
|
331
|
+
/**
|
|
332
|
+
* `$CODEX_HOME/sessions`, where the Codex rollout-usage enricher looks a
|
|
333
|
+
* rollout up by session id when a payload names no `transcript_path`. Absent,
|
|
334
|
+
* such payloads get no usage. The runtime never derives it from the environment.
|
|
335
|
+
*/
|
|
336
|
+
readonly codexSessionsRoot?: string;
|
|
330
337
|
/**
|
|
331
338
|
* Reads session context files (`docs/session-context.md`). When absent, the
|
|
332
339
|
* configuration decides: `sessionContext.dir` adds the directory reader, and
|