@respan/respan-sdk 1.1.4 → 1.1.5
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.
|
@@ -10,6 +10,7 @@ export declare enum RespanSpanAttributes {
|
|
|
10
10
|
RESPAN_PROMPT = "respan.prompt",
|
|
11
11
|
RESPAN_ENVIRONMENT = "respan.environment",
|
|
12
12
|
RESPAN_LINK_TIMESTAMP = "respan.link.timestamp",
|
|
13
|
+
RESPAN_PROCESSORS = "respan.processors",
|
|
13
14
|
RESPAN_LOG_METHOD = "respan.entity.log_method",
|
|
14
15
|
RESPAN_LOG_TYPE = "respan.entity.log_type",
|
|
15
16
|
RESPAN_LOG_ID = "respan.entity.log_id",
|
|
@@ -17,6 +18,9 @@ export declare enum RespanSpanAttributes {
|
|
|
17
18
|
RESPAN_LOG_ROOT_ID = "respan.entity.log_root_id",
|
|
18
19
|
RESPAN_LOG_SOURCE = "respan.entity.log_source",
|
|
19
20
|
OPENINFERENCE_SPAN_KIND = "openinference.span.kind",
|
|
21
|
+
OPENINFERENCE_LLM_MODEL_NAME = "llm.model_name",
|
|
22
|
+
OPENINFERENCE_LLM_TOKEN_COUNT_PROMPT = "llm.token_count.prompt",
|
|
23
|
+
OPENINFERENCE_LLM_TOKEN_COUNT_COMPLETION = "llm.token_count.completion",
|
|
20
24
|
GEN_AI_SYSTEM = "gen_ai.system",
|
|
21
25
|
GEN_AI_REQUEST_MODEL = "gen_ai.request.model",
|
|
22
26
|
GEN_AI_USAGE_PROMPT_TOKENS = "gen_ai.usage.prompt_tokens",
|
package/dist/types/spanTypes.js
CHANGED
|
@@ -19,6 +19,8 @@ export var RespanSpanAttributes;
|
|
|
19
19
|
RespanSpanAttributes["RESPAN_ENVIRONMENT"] = "respan.environment";
|
|
20
20
|
// Span links
|
|
21
21
|
RespanSpanAttributes["RESPAN_LINK_TIMESTAMP"] = "respan.link.timestamp";
|
|
22
|
+
// Processor routing (used by decorators to target specific processors)
|
|
23
|
+
RespanSpanAttributes["RESPAN_PROCESSORS"] = "respan.processors";
|
|
22
24
|
// Logging
|
|
23
25
|
RespanSpanAttributes["RESPAN_LOG_METHOD"] = "respan.entity.log_method";
|
|
24
26
|
RespanSpanAttributes["RESPAN_LOG_TYPE"] = "respan.entity.log_type";
|
|
@@ -26,8 +28,11 @@ export var RespanSpanAttributes;
|
|
|
26
28
|
RespanSpanAttributes["RESPAN_LOG_PARENT_ID"] = "respan.entity.log_parent_id";
|
|
27
29
|
RespanSpanAttributes["RESPAN_LOG_ROOT_ID"] = "respan.entity.log_root_id";
|
|
28
30
|
RespanSpanAttributes["RESPAN_LOG_SOURCE"] = "respan.entity.log_source";
|
|
29
|
-
// OpenInference
|
|
31
|
+
// OpenInference attributes (used for OI → Traceloop/GenAI enrichment)
|
|
30
32
|
RespanSpanAttributes["OPENINFERENCE_SPAN_KIND"] = "openinference.span.kind";
|
|
33
|
+
RespanSpanAttributes["OPENINFERENCE_LLM_MODEL_NAME"] = "llm.model_name";
|
|
34
|
+
RespanSpanAttributes["OPENINFERENCE_LLM_TOKEN_COUNT_PROMPT"] = "llm.token_count.prompt";
|
|
35
|
+
RespanSpanAttributes["OPENINFERENCE_LLM_TOKEN_COUNT_COMPLETION"] = "llm.token_count.completion";
|
|
31
36
|
// GenAI / LLM semantic conventions (for packages that don't depend on @traceloop/ai-semantic-conventions)
|
|
32
37
|
RespanSpanAttributes["GEN_AI_SYSTEM"] = "gen_ai.system";
|
|
33
38
|
RespanSpanAttributes["GEN_AI_REQUEST_MODEL"] = "gen_ai.request.model";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spanTypes.js","sourceRoot":"","sources":["../../src/types/spanTypes.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"spanTypes.js","sourceRoot":"","sources":["../../src/types/spanTypes.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,oBAoDX;AApDD,WAAY,oBAAoB;I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C,MAAM,EAAE,oBAAoB,CAAC,aAAa;IAC1C,WAAW,EAAE,oBAAoB,CAAC,kBAAkB;CACvD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@respan/respan-sdk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.5",
|
|
5
5
|
"description": "Core types, constants, and utilities for the Respan SDK",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -32,4 +32,4 @@
|
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "^22.15.29"
|
|
34
34
|
}
|
|
35
|
-
}
|
|
35
|
+
}
|