@runtypelabs/flue-otel 0.5.5 → 0.5.6
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/dist/index.cjs +1 -1
- package/dist/index.d.cts +46 -46
- package/dist/index.d.ts +46 -46
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -400,29 +400,29 @@ export declare function runtypeFlueResourceAttributes(resource?: {
|
|
|
400
400
|
* from Flue's STABLE observation plane.
|
|
401
401
|
*/
|
|
402
402
|
export declare const GEN_AI: {
|
|
403
|
-
readonly operationName:
|
|
404
|
-
readonly providerName:
|
|
405
|
-
readonly agentName:
|
|
406
|
-
readonly conversationId:
|
|
407
|
-
readonly requestModel:
|
|
408
|
-
readonly responseModel:
|
|
409
|
-
readonly responseId:
|
|
410
|
-
readonly requestStream:
|
|
411
|
-
readonly reasoningLevel:
|
|
412
|
-
readonly maxTokens:
|
|
413
|
-
readonly temperature:
|
|
414
|
-
readonly finishReasons:
|
|
415
|
-
readonly usageInputTokens:
|
|
416
|
-
readonly usageOutputTokens:
|
|
417
|
-
readonly usageCacheReadTokens:
|
|
418
|
-
readonly usageCacheCreationTokens:
|
|
419
|
-
readonly toolName:
|
|
420
|
-
readonly toolCallId:
|
|
421
|
-
readonly toolType:
|
|
422
|
-
readonly conversationCompacted:
|
|
423
|
-
readonly errorType:
|
|
424
|
-
readonly serverAddress:
|
|
425
|
-
readonly serverPort:
|
|
403
|
+
readonly operationName: 'gen_ai.operation.name';
|
|
404
|
+
readonly providerName: 'gen_ai.provider.name';
|
|
405
|
+
readonly agentName: 'gen_ai.agent.name';
|
|
406
|
+
readonly conversationId: 'gen_ai.conversation.id';
|
|
407
|
+
readonly requestModel: 'gen_ai.request.model';
|
|
408
|
+
readonly responseModel: 'gen_ai.response.model';
|
|
409
|
+
readonly responseId: 'gen_ai.response.id';
|
|
410
|
+
readonly requestStream: 'gen_ai.request.stream';
|
|
411
|
+
readonly reasoningLevel: 'gen_ai.request.reasoning.level';
|
|
412
|
+
readonly maxTokens: 'gen_ai.request.max_tokens';
|
|
413
|
+
readonly temperature: 'gen_ai.request.temperature';
|
|
414
|
+
readonly finishReasons: 'gen_ai.response.finish_reasons';
|
|
415
|
+
readonly usageInputTokens: 'gen_ai.usage.input_tokens';
|
|
416
|
+
readonly usageOutputTokens: 'gen_ai.usage.output_tokens';
|
|
417
|
+
readonly usageCacheReadTokens: 'gen_ai.usage.cache_read.input_tokens';
|
|
418
|
+
readonly usageCacheCreationTokens: 'gen_ai.usage.cache_creation.input_tokens';
|
|
419
|
+
readonly toolName: 'gen_ai.tool.name';
|
|
420
|
+
readonly toolCallId: 'gen_ai.tool.call.id';
|
|
421
|
+
readonly toolType: 'gen_ai.tool.type';
|
|
422
|
+
readonly conversationCompacted: 'gen_ai.conversation.compacted';
|
|
423
|
+
readonly errorType: 'error.type';
|
|
424
|
+
readonly serverAddress: 'server.address';
|
|
425
|
+
readonly serverPort: 'server.port';
|
|
426
426
|
};
|
|
427
427
|
/**
|
|
428
428
|
* Content attribute names, separate from the structural GEN_AI set. Tool content goes on
|
|
@@ -430,11 +430,11 @@ export declare const GEN_AI: {
|
|
|
430
430
|
* off through the content options. Mirrored in shared ingest semconv.
|
|
431
431
|
*/
|
|
432
432
|
export declare const GEN_AI_CONTENT: {
|
|
433
|
-
readonly inputMessages:
|
|
434
|
-
readonly outputMessages:
|
|
435
|
-
readonly systemInstructions:
|
|
436
|
-
readonly toolCallArguments:
|
|
437
|
-
readonly toolCallResult:
|
|
433
|
+
readonly inputMessages: 'gen_ai.input.messages';
|
|
434
|
+
readonly outputMessages: 'gen_ai.output.messages';
|
|
435
|
+
readonly systemInstructions: 'gen_ai.system_instructions';
|
|
436
|
+
readonly toolCallArguments: 'gen_ai.tool.call.arguments';
|
|
437
|
+
readonly toolCallResult: 'gen_ai.tool.call.result';
|
|
438
438
|
};
|
|
439
439
|
/**
|
|
440
440
|
* Runtype's extension vocabulary. Placement is part of the contract and the
|
|
@@ -442,22 +442,22 @@ export declare const GEN_AI_CONTENT: {
|
|
|
442
442
|
* module for which level each name belongs on.
|
|
443
443
|
*/
|
|
444
444
|
export declare const RUNTYPE: {
|
|
445
|
-
readonly agentId:
|
|
446
|
-
readonly schemaVersion:
|
|
447
|
-
readonly adapterName:
|
|
448
|
-
readonly adapterVersion:
|
|
449
|
-
readonly executionId:
|
|
450
|
-
readonly iteration:
|
|
451
|
-
readonly iterations:
|
|
452
|
-
readonly totalCost:
|
|
453
|
-
readonly stopReason:
|
|
454
|
-
readonly toolsReported:
|
|
455
|
-
readonly toolType:
|
|
456
|
-
readonly turnId:
|
|
457
|
-
readonly turnIndex:
|
|
458
|
-
readonly providerFinishReason:
|
|
459
|
-
readonly providerServiceTier:
|
|
460
|
-
readonly gatewayLogId:
|
|
445
|
+
readonly agentId: 'runtype.agent.id';
|
|
446
|
+
readonly schemaVersion: 'runtype.schema.version';
|
|
447
|
+
readonly adapterName: 'runtype.adapter.name';
|
|
448
|
+
readonly adapterVersion: 'runtype.adapter.version';
|
|
449
|
+
readonly executionId: 'runtype.execution.id';
|
|
450
|
+
readonly iteration: 'runtype.iteration';
|
|
451
|
+
readonly iterations: 'runtype.iterations';
|
|
452
|
+
readonly totalCost: 'runtype.total_cost';
|
|
453
|
+
readonly stopReason: 'runtype.stop_reason';
|
|
454
|
+
readonly toolsReported: 'runtype.tools.reported';
|
|
455
|
+
readonly toolType: 'runtype.tool.type';
|
|
456
|
+
readonly turnId: 'runtype.turn.id';
|
|
457
|
+
readonly turnIndex: 'runtype.turn.index';
|
|
458
|
+
readonly providerFinishReason: 'runtype.provider.finish_reason';
|
|
459
|
+
readonly providerServiceTier: 'runtype.provider.service_tier';
|
|
460
|
+
readonly gatewayLogId: 'runtype.gateway.log_id';
|
|
461
461
|
};
|
|
462
462
|
/**
|
|
463
463
|
* `runtype.tool.type` values — the closed domain that drives display and
|
|
@@ -465,7 +465,7 @@ export declare const RUNTYPE: {
|
|
|
465
465
|
* members this instrumentation can honestly assert are ever emitted (see
|
|
466
466
|
* `projection.ts`).
|
|
467
467
|
*/
|
|
468
|
-
export declare const RUNTYPE_TOOL_TYPES: readonly [
|
|
468
|
+
export declare const RUNTYPE_TOOL_TYPES: readonly ['flow', 'mcp', 'builtin', 'custom', 'external', 'advisor', 'subagent', 'local', 'data_connection', 'search'];
|
|
469
469
|
type RuntypeToolType = (typeof RUNTYPE_TOOL_TYPES)[number];
|
|
470
470
|
/**
|
|
471
471
|
* Terminal stop reasons, in Runtype's own wire vocabulary
|
|
@@ -473,7 +473,7 @@ type RuntypeToolType = (typeof RUNTYPE_TOOL_TYPES)[number];
|
|
|
473
473
|
* `runtype.stop_reason` is written to the run row verbatim, so an invented
|
|
474
474
|
* value would render in the dashboard as a real fact.
|
|
475
475
|
*/
|
|
476
|
-
export declare const RUNTYPE_STOP_REASONS: readonly [
|
|
476
|
+
export declare const RUNTYPE_STOP_REASONS: readonly ['end_turn', 'max_tool_calls', 'length', 'content_filter', 'error', 'unknown'];
|
|
477
477
|
type RuntypeStopReason = (typeof RUNTYPE_STOP_REASONS)[number];
|
|
478
478
|
/** The version of the `runtype.*` vocabulary this package was built against. */
|
|
479
479
|
export declare const RUNTYPE_SCHEMA_VERSION = "1";
|
package/dist/index.d.ts
CHANGED
|
@@ -400,29 +400,29 @@ export declare function runtypeFlueResourceAttributes(resource?: {
|
|
|
400
400
|
* from Flue's STABLE observation plane.
|
|
401
401
|
*/
|
|
402
402
|
export declare const GEN_AI: {
|
|
403
|
-
readonly operationName:
|
|
404
|
-
readonly providerName:
|
|
405
|
-
readonly agentName:
|
|
406
|
-
readonly conversationId:
|
|
407
|
-
readonly requestModel:
|
|
408
|
-
readonly responseModel:
|
|
409
|
-
readonly responseId:
|
|
410
|
-
readonly requestStream:
|
|
411
|
-
readonly reasoningLevel:
|
|
412
|
-
readonly maxTokens:
|
|
413
|
-
readonly temperature:
|
|
414
|
-
readonly finishReasons:
|
|
415
|
-
readonly usageInputTokens:
|
|
416
|
-
readonly usageOutputTokens:
|
|
417
|
-
readonly usageCacheReadTokens:
|
|
418
|
-
readonly usageCacheCreationTokens:
|
|
419
|
-
readonly toolName:
|
|
420
|
-
readonly toolCallId:
|
|
421
|
-
readonly toolType:
|
|
422
|
-
readonly conversationCompacted:
|
|
423
|
-
readonly errorType:
|
|
424
|
-
readonly serverAddress:
|
|
425
|
-
readonly serverPort:
|
|
403
|
+
readonly operationName: 'gen_ai.operation.name';
|
|
404
|
+
readonly providerName: 'gen_ai.provider.name';
|
|
405
|
+
readonly agentName: 'gen_ai.agent.name';
|
|
406
|
+
readonly conversationId: 'gen_ai.conversation.id';
|
|
407
|
+
readonly requestModel: 'gen_ai.request.model';
|
|
408
|
+
readonly responseModel: 'gen_ai.response.model';
|
|
409
|
+
readonly responseId: 'gen_ai.response.id';
|
|
410
|
+
readonly requestStream: 'gen_ai.request.stream';
|
|
411
|
+
readonly reasoningLevel: 'gen_ai.request.reasoning.level';
|
|
412
|
+
readonly maxTokens: 'gen_ai.request.max_tokens';
|
|
413
|
+
readonly temperature: 'gen_ai.request.temperature';
|
|
414
|
+
readonly finishReasons: 'gen_ai.response.finish_reasons';
|
|
415
|
+
readonly usageInputTokens: 'gen_ai.usage.input_tokens';
|
|
416
|
+
readonly usageOutputTokens: 'gen_ai.usage.output_tokens';
|
|
417
|
+
readonly usageCacheReadTokens: 'gen_ai.usage.cache_read.input_tokens';
|
|
418
|
+
readonly usageCacheCreationTokens: 'gen_ai.usage.cache_creation.input_tokens';
|
|
419
|
+
readonly toolName: 'gen_ai.tool.name';
|
|
420
|
+
readonly toolCallId: 'gen_ai.tool.call.id';
|
|
421
|
+
readonly toolType: 'gen_ai.tool.type';
|
|
422
|
+
readonly conversationCompacted: 'gen_ai.conversation.compacted';
|
|
423
|
+
readonly errorType: 'error.type';
|
|
424
|
+
readonly serverAddress: 'server.address';
|
|
425
|
+
readonly serverPort: 'server.port';
|
|
426
426
|
};
|
|
427
427
|
/**
|
|
428
428
|
* Content attribute names, separate from the structural GEN_AI set. Tool content goes on
|
|
@@ -430,11 +430,11 @@ export declare const GEN_AI: {
|
|
|
430
430
|
* off through the content options. Mirrored in shared ingest semconv.
|
|
431
431
|
*/
|
|
432
432
|
export declare const GEN_AI_CONTENT: {
|
|
433
|
-
readonly inputMessages:
|
|
434
|
-
readonly outputMessages:
|
|
435
|
-
readonly systemInstructions:
|
|
436
|
-
readonly toolCallArguments:
|
|
437
|
-
readonly toolCallResult:
|
|
433
|
+
readonly inputMessages: 'gen_ai.input.messages';
|
|
434
|
+
readonly outputMessages: 'gen_ai.output.messages';
|
|
435
|
+
readonly systemInstructions: 'gen_ai.system_instructions';
|
|
436
|
+
readonly toolCallArguments: 'gen_ai.tool.call.arguments';
|
|
437
|
+
readonly toolCallResult: 'gen_ai.tool.call.result';
|
|
438
438
|
};
|
|
439
439
|
/**
|
|
440
440
|
* Runtype's extension vocabulary. Placement is part of the contract and the
|
|
@@ -442,22 +442,22 @@ export declare const GEN_AI_CONTENT: {
|
|
|
442
442
|
* module for which level each name belongs on.
|
|
443
443
|
*/
|
|
444
444
|
export declare const RUNTYPE: {
|
|
445
|
-
readonly agentId:
|
|
446
|
-
readonly schemaVersion:
|
|
447
|
-
readonly adapterName:
|
|
448
|
-
readonly adapterVersion:
|
|
449
|
-
readonly executionId:
|
|
450
|
-
readonly iteration:
|
|
451
|
-
readonly iterations:
|
|
452
|
-
readonly totalCost:
|
|
453
|
-
readonly stopReason:
|
|
454
|
-
readonly toolsReported:
|
|
455
|
-
readonly toolType:
|
|
456
|
-
readonly turnId:
|
|
457
|
-
readonly turnIndex:
|
|
458
|
-
readonly providerFinishReason:
|
|
459
|
-
readonly providerServiceTier:
|
|
460
|
-
readonly gatewayLogId:
|
|
445
|
+
readonly agentId: 'runtype.agent.id';
|
|
446
|
+
readonly schemaVersion: 'runtype.schema.version';
|
|
447
|
+
readonly adapterName: 'runtype.adapter.name';
|
|
448
|
+
readonly adapterVersion: 'runtype.adapter.version';
|
|
449
|
+
readonly executionId: 'runtype.execution.id';
|
|
450
|
+
readonly iteration: 'runtype.iteration';
|
|
451
|
+
readonly iterations: 'runtype.iterations';
|
|
452
|
+
readonly totalCost: 'runtype.total_cost';
|
|
453
|
+
readonly stopReason: 'runtype.stop_reason';
|
|
454
|
+
readonly toolsReported: 'runtype.tools.reported';
|
|
455
|
+
readonly toolType: 'runtype.tool.type';
|
|
456
|
+
readonly turnId: 'runtype.turn.id';
|
|
457
|
+
readonly turnIndex: 'runtype.turn.index';
|
|
458
|
+
readonly providerFinishReason: 'runtype.provider.finish_reason';
|
|
459
|
+
readonly providerServiceTier: 'runtype.provider.service_tier';
|
|
460
|
+
readonly gatewayLogId: 'runtype.gateway.log_id';
|
|
461
461
|
};
|
|
462
462
|
/**
|
|
463
463
|
* `runtype.tool.type` values — the closed domain that drives display and
|
|
@@ -465,7 +465,7 @@ export declare const RUNTYPE: {
|
|
|
465
465
|
* members this instrumentation can honestly assert are ever emitted (see
|
|
466
466
|
* `projection.ts`).
|
|
467
467
|
*/
|
|
468
|
-
export declare const RUNTYPE_TOOL_TYPES: readonly [
|
|
468
|
+
export declare const RUNTYPE_TOOL_TYPES: readonly ['flow', 'mcp', 'builtin', 'custom', 'external', 'advisor', 'subagent', 'local', 'data_connection', 'search'];
|
|
469
469
|
type RuntypeToolType = (typeof RUNTYPE_TOOL_TYPES)[number];
|
|
470
470
|
/**
|
|
471
471
|
* Terminal stop reasons, in Runtype's own wire vocabulary
|
|
@@ -473,7 +473,7 @@ type RuntypeToolType = (typeof RUNTYPE_TOOL_TYPES)[number];
|
|
|
473
473
|
* `runtype.stop_reason` is written to the run row verbatim, so an invented
|
|
474
474
|
* value would render in the dashboard as a real fact.
|
|
475
475
|
*/
|
|
476
|
-
export declare const RUNTYPE_STOP_REASONS: readonly [
|
|
476
|
+
export declare const RUNTYPE_STOP_REASONS: readonly ['end_turn', 'max_tool_calls', 'length', 'content_filter', 'error', 'unknown'];
|
|
477
477
|
type RuntypeStopReason = (typeof RUNTYPE_STOP_REASONS)[number];
|
|
478
478
|
/** The version of the `runtype.*` vocabulary this package was built against. */
|
|
479
479
|
export declare const RUNTYPE_SCHEMA_VERSION = "1";
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runtypelabs/flue-otel",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.6",
|
|
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.13
|
|
36
|
-
"@runtypelabs/shared": "3.
|
|
35
|
+
"@runtypelabs/execution-ingest": "0.15.13",
|
|
36
|
+
"@runtypelabs/shared": "3.75.3",
|
|
37
37
|
"tsdown": "^0.23.0",
|
|
38
38
|
"typescript": "^6.0.3",
|
|
39
39
|
"vitest": "^5.0.2"
|