@runtypelabs/flue-otel 0.5.1 → 0.5.3

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 CHANGED
@@ -80,7 +80,7 @@ provider.register()
80
80
  instrument(createRuntypeFlueInstrumentation())
81
81
 
82
82
  // Flush before exit. See "Shutdown" below.
83
- process.on('beforeExit', () => void provider.shutdown())
83
+ process.once('beforeExit', () => void provider.shutdown().catch(console.error))
84
84
  ```
85
85
 
86
86
  ## Configuration
package/dist/index.cjs CHANGED
@@ -298,7 +298,7 @@ function isHighSurrogate(code) {
298
298
  }
299
299
 
300
300
  // package.json
301
- var version = "0.5.1";
301
+ var version = "0.5.3";
302
302
 
303
303
  // src/semconv.ts
304
304
  var GEN_AI = {
@@ -343,12 +343,15 @@ var RUNTYPE = {
343
343
  adapterVersion: "runtype.adapter.version",
344
344
  executionId: "runtype.execution.id",
345
345
  iteration: "runtype.iteration",
346
+ iterations: "runtype.iterations",
347
+ totalCost: "runtype.total_cost",
346
348
  stopReason: "runtype.stop_reason",
347
349
  toolsReported: "runtype.tools.reported",
348
350
  toolType: "runtype.tool.type",
349
351
  turnId: "runtype.turn.id",
350
352
  turnIndex: "runtype.turn.index",
351
353
  providerFinishReason: "runtype.provider.finish_reason",
354
+ providerServiceTier: "runtype.provider.service_tier",
352
355
  gatewayLogId: "runtype.gateway.log_id"
353
356
  };
354
357
  var FLUE = {
package/dist/index.d.cts CHANGED
@@ -444,12 +444,15 @@ declare const RUNTYPE: {
444
444
  readonly adapterVersion: "runtype.adapter.version";
445
445
  readonly executionId: "runtype.execution.id";
446
446
  readonly iteration: "runtype.iteration";
447
+ readonly iterations: "runtype.iterations";
448
+ readonly totalCost: "runtype.total_cost";
447
449
  readonly stopReason: "runtype.stop_reason";
448
450
  readonly toolsReported: "runtype.tools.reported";
449
451
  readonly toolType: "runtype.tool.type";
450
452
  readonly turnId: "runtype.turn.id";
451
453
  readonly turnIndex: "runtype.turn.index";
452
454
  readonly providerFinishReason: "runtype.provider.finish_reason";
455
+ readonly providerServiceTier: "runtype.provider.service_tier";
453
456
  readonly gatewayLogId: "runtype.gateway.log_id";
454
457
  };
455
458
  /**
package/dist/index.d.ts CHANGED
@@ -444,12 +444,15 @@ declare const RUNTYPE: {
444
444
  readonly adapterVersion: "runtype.adapter.version";
445
445
  readonly executionId: "runtype.execution.id";
446
446
  readonly iteration: "runtype.iteration";
447
+ readonly iterations: "runtype.iterations";
448
+ readonly totalCost: "runtype.total_cost";
447
449
  readonly stopReason: "runtype.stop_reason";
448
450
  readonly toolsReported: "runtype.tools.reported";
449
451
  readonly toolType: "runtype.tool.type";
450
452
  readonly turnId: "runtype.turn.id";
451
453
  readonly turnIndex: "runtype.turn.index";
452
454
  readonly providerFinishReason: "runtype.provider.finish_reason";
455
+ readonly providerServiceTier: "runtype.provider.service_tier";
453
456
  readonly gatewayLogId: "runtype.gateway.log_id";
454
457
  };
455
458
  /**
package/dist/index.mjs CHANGED
@@ -262,7 +262,7 @@ function isHighSurrogate(code) {
262
262
  }
263
263
 
264
264
  // package.json
265
- var version = "0.5.1";
265
+ var version = "0.5.3";
266
266
 
267
267
  // src/semconv.ts
268
268
  var GEN_AI = {
@@ -307,12 +307,15 @@ var RUNTYPE = {
307
307
  adapterVersion: "runtype.adapter.version",
308
308
  executionId: "runtype.execution.id",
309
309
  iteration: "runtype.iteration",
310
+ iterations: "runtype.iterations",
311
+ totalCost: "runtype.total_cost",
310
312
  stopReason: "runtype.stop_reason",
311
313
  toolsReported: "runtype.tools.reported",
312
314
  toolType: "runtype.tool.type",
313
315
  turnId: "runtype.turn.id",
314
316
  turnIndex: "runtype.turn.index",
315
317
  providerFinishReason: "runtype.provider.finish_reason",
318
+ providerServiceTier: "runtype.provider.service_tier",
316
319
  gatewayLogId: "runtype.gateway.log_id"
317
320
  };
318
321
  var FLUE = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/flue-otel",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "description": "OpenTelemetry instrumentation for Flue agents that emits GenAI semconv spans plus Runtype's runtype.* extension vocabulary, so a Flue run lands in Runtype at full fidelity.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -32,8 +32,8 @@
32
32
  "@opentelemetry/api": "^1.9.0",
33
33
  "@opentelemetry/context-async-hooks": "^2.1.0",
34
34
  "@opentelemetry/sdk-trace-base": "^2.1.0",
35
- "@runtypelabs/execution-ingest": "0.6.25",
36
- "@runtypelabs/shared": "3.41.0",
35
+ "@runtypelabs/execution-ingest": "0.12.0",
36
+ "@runtypelabs/shared": "3.55.0",
37
37
  "tsup": "^8.0.2",
38
38
  "typescript": "^6.0.3",
39
39
  "vitest": "^4.1.0"