ctxflow-semconv 0.2.2__py3-none-any.whl
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.
- ctxflow_semconv/__init__.py +53 -0
- ctxflow_semconv/_generated.py +1072 -0
- ctxflow_semconv/conformance/chunk-id.json +51 -0
- ctxflow_semconv/conformance/config.json +116 -0
- ctxflow_semconv/conformance/identity.json +548 -0
- ctxflow_semconv/conformance/source-hash.json +37 -0
- ctxflow_semconv/conformance/text-hash.json +90 -0
- ctxflow_semconv/py.typed +0 -0
- ctxflow_semconv/schema/adapter.schema.json +263 -0
- ctxflow_semconv/schema/content-keys.json +639 -0
- ctxflow_semconv/schema/ctxflow-attributes.schema.json +468 -0
- ctxflow_semconv-0.2.2.dist-info/METADATA +33 -0
- ctxflow_semconv-0.2.2.dist-info/RECORD +15 -0
- ctxflow_semconv-0.2.2.dist-info/WHEEL +4 -0
- ctxflow_semconv-0.2.2.dist-info/licenses/LICENSE +202 -0
|
@@ -0,0 +1,468 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "urn:ctxflow:semconv:0.2.2:attributes",
|
|
4
|
+
"title": "ctxflow span attributes",
|
|
5
|
+
"description": "Generated by tools/semconv_gen.py from packages/semconv/registry. Do not edit.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"ctxflow.source_id": {
|
|
9
|
+
"description": "Stable id of the document in its source system.",
|
|
10
|
+
"type": "string"
|
|
11
|
+
},
|
|
12
|
+
"ctxflow.source_version": {
|
|
13
|
+
"description": "Version in which the current content of the document first appeared. Without an explicit version, a content-derived label: `h:<12 hex>` of a plain sha256.",
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"ctxflow.source_hash": {
|
|
17
|
+
"description": "sha256 (64 hex) of the original document bytes as they are (no normalization).",
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"ctxflow.chunker_version": {
|
|
21
|
+
"description": "Parser and splitter with their settings, e.g. docling-<ver>/llamaindex-<splitter>-<size>-<overlap>.",
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"ctxflow.embed_model": {
|
|
25
|
+
"description": "Name of the embedding model.",
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"ctxflow.ingest.skipped": {
|
|
29
|
+
"description": "The document was left in the index unchanged.",
|
|
30
|
+
"type": "boolean"
|
|
31
|
+
},
|
|
32
|
+
"ctxflow.ingest.skip_reason": {
|
|
33
|
+
"description": "Why the document was skipped.",
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
"ctxflow.reingest": {
|
|
37
|
+
"description": "The run rebuilds an index that already had chunks.",
|
|
38
|
+
"type": "boolean"
|
|
39
|
+
},
|
|
40
|
+
"ctxflow.parse.chars": {
|
|
41
|
+
"description": "Length of the parsed text, in characters.",
|
|
42
|
+
"type": "integer"
|
|
43
|
+
},
|
|
44
|
+
"ctxflow.chunks.count": {
|
|
45
|
+
"description": "Number of chunks a step produced or wrote.",
|
|
46
|
+
"type": "integer"
|
|
47
|
+
},
|
|
48
|
+
"ctxflow.chunks.ids": {
|
|
49
|
+
"description": "Ids of the chunks a step produced or wrote, as the vector store holds them (the same ones the read side emits).",
|
|
50
|
+
"type": "array",
|
|
51
|
+
"items": {
|
|
52
|
+
"type": "string"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"ctxflow.chunks.text_hashes": {
|
|
56
|
+
"description": "Write-side chunk identity (ADR-013): sha256 (64 hex) of the normalized text of each chunk as stored (the same hash as ctxflow.retrieval.item_hashes: Unicode NFC, whitespace runs as one space, trim), same order as ctxflow.chunks.ids. An empty string where the chunk has no text.",
|
|
57
|
+
"type": "array",
|
|
58
|
+
"items": {
|
|
59
|
+
"type": "string"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"ctxflow.id_mode": {
|
|
63
|
+
"description": "How the chunk ids of the index are produced.",
|
|
64
|
+
"type": "string",
|
|
65
|
+
"enum": [
|
|
66
|
+
"default",
|
|
67
|
+
"deterministic",
|
|
68
|
+
"unstructured"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"session.id": {
|
|
72
|
+
"description": "Conversation id.",
|
|
73
|
+
"type": "string"
|
|
74
|
+
},
|
|
75
|
+
"gen_ai.conversation.id": {
|
|
76
|
+
"description": "Conversation id, OTel GenAI name.",
|
|
77
|
+
"type": "string"
|
|
78
|
+
},
|
|
79
|
+
"user.id": {
|
|
80
|
+
"description": "End user of the agent, as sent by the app.",
|
|
81
|
+
"type": "string"
|
|
82
|
+
},
|
|
83
|
+
"ctxflow.turn": {
|
|
84
|
+
"description": "Index of the turn in the conversation.",
|
|
85
|
+
"type": "integer"
|
|
86
|
+
},
|
|
87
|
+
"ctxflow.semconv.version": {
|
|
88
|
+
"description": "Resource attribute. The SEMCONV_VERSION of the contract the SDK was built with.",
|
|
89
|
+
"type": "string"
|
|
90
|
+
},
|
|
91
|
+
"tool.name": {
|
|
92
|
+
"description": "Name of the tool called.",
|
|
93
|
+
"type": "string"
|
|
94
|
+
},
|
|
95
|
+
"ctxflow.action.target": {
|
|
96
|
+
"description": "Destination of an action without content (collection name or recipient domain, never an address).",
|
|
97
|
+
"type": "string"
|
|
98
|
+
},
|
|
99
|
+
"ctxflow.action.params_hash": {
|
|
100
|
+
"description": "Hash of the action parameters as recorded on the span (`gen_ai.tool.call.arguments` or `input.value`), same rule as ctxflow.data.result_hash.",
|
|
101
|
+
"type": "string"
|
|
102
|
+
},
|
|
103
|
+
"ctxflow.action.status": {
|
|
104
|
+
"description": "Outcome of the action (server side).",
|
|
105
|
+
"type": "string",
|
|
106
|
+
"enum": [
|
|
107
|
+
"OK",
|
|
108
|
+
"ERROR"
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
"ctxflow.tool.status": {
|
|
112
|
+
"description": "Outcome of the tool call (client side).",
|
|
113
|
+
"type": "string",
|
|
114
|
+
"enum": [
|
|
115
|
+
"OK",
|
|
116
|
+
"ERROR"
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
"ctxflow.agent.id": {
|
|
120
|
+
"description": "Which agent or workflow, from the MCP gateway token.",
|
|
121
|
+
"type": "string"
|
|
122
|
+
},
|
|
123
|
+
"gen_ai.agent.id": {
|
|
124
|
+
"description": "Agent id, OTel GenAI name.",
|
|
125
|
+
"type": "string"
|
|
126
|
+
},
|
|
127
|
+
"ctxflow.agent.backend": {
|
|
128
|
+
"description": "Agent runtime that produced the turn (e.g. codex).",
|
|
129
|
+
"type": "string"
|
|
130
|
+
},
|
|
131
|
+
"ctxflow.agent.propagated": {
|
|
132
|
+
"description": "Trace context and baggage were propagated to the MCP server.",
|
|
133
|
+
"type": "boolean"
|
|
134
|
+
},
|
|
135
|
+
"ctxflow.agent.tool_calls_seen": {
|
|
136
|
+
"description": "Tool calls seen in the agent events of the turn.",
|
|
137
|
+
"type": "integer"
|
|
138
|
+
},
|
|
139
|
+
"ctxflow.agent.events_invalid": {
|
|
140
|
+
"description": "Agent events of the turn that could not be parsed.",
|
|
141
|
+
"type": "integer"
|
|
142
|
+
},
|
|
143
|
+
"gen_ai.operation.name": {
|
|
144
|
+
"description": "OTel GenAI operation name.",
|
|
145
|
+
"type": "string"
|
|
146
|
+
},
|
|
147
|
+
"n8n.execution.id": {
|
|
148
|
+
"description": "n8n execution id; join key of the n8n connector.",
|
|
149
|
+
"type": "string"
|
|
150
|
+
},
|
|
151
|
+
"ctxflow.retrieval.item_ids": {
|
|
152
|
+
"description": "Read-side item identity (ADR-013): the id of each item the vector store returned, in order, measured at the retrieval call before any reranker, compressor or snippet; the same id as ctxflow.chunks.ids, as the vector store holds it. An empty string where the item had no id.",
|
|
153
|
+
"type": "array",
|
|
154
|
+
"items": {
|
|
155
|
+
"type": "string"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"ctxflow.retrieval.item_hashes": {
|
|
159
|
+
"description": "sha256 (64 hex) of the normalized text of each returned item (Unicode NFC, whitespace runs as one space, trimmed), same order as the ids; the same hash the write side computes. An empty string where the item had no text.",
|
|
160
|
+
"type": "array",
|
|
161
|
+
"items": {
|
|
162
|
+
"type": "string"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"ctxflow.retrieval.item_verifiable": {
|
|
166
|
+
"description": "Same order as the ids. False for an item with neither an id nor a text (for example a summary): it cannot be checked against the index and counts as neither up to date nor stale.",
|
|
167
|
+
"type": "array",
|
|
168
|
+
"items": {
|
|
169
|
+
"type": "boolean"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"ctxflow.retrieval.tool": {
|
|
173
|
+
"description": "True on a ctxflow tool-call span (`agent.tool_call`, `tool.<name>`, `mcp.tool <name>`, or a span with `ctxflow.action.*` attributes) whose result lists retrieved items, for example an MCP search tool: the call then counts as a retrieval call. It does not deliver chunks (those come from `retrieval.documents.*` and `reranker.output_documents.*`), and OpenInference TOOL and GenAI `execute_tool` spans ignore it.",
|
|
174
|
+
"type": "boolean"
|
|
175
|
+
},
|
|
176
|
+
"ctxflow.observe.index": {
|
|
177
|
+
"description": "Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that data from pre-release builds can be read. Name of the observed index (the adapter name). Present on every `index.change` span; `kind` of the event id is `index`.",
|
|
178
|
+
"type": "string"
|
|
179
|
+
},
|
|
180
|
+
"ctxflow.observe.chunk_id": {
|
|
181
|
+
"description": "Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that data from pre-release builds can be read. Id of the chunk as the index stores it.",
|
|
182
|
+
"type": "string"
|
|
183
|
+
},
|
|
184
|
+
"ctxflow.observe.op": {
|
|
185
|
+
"description": "Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that data from pre-release builds can be read. Change seen (C4).",
|
|
186
|
+
"type": "string",
|
|
187
|
+
"enum": [
|
|
188
|
+
"insert",
|
|
189
|
+
"update",
|
|
190
|
+
"delete"
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
"ctxflow.observe.version": {
|
|
194
|
+
"description": "Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that data from pre-release builds can be read. Version of the chunk (index) or of the original (source) as the observed system reports it. For a delete, the last version seen.",
|
|
195
|
+
"type": "string"
|
|
196
|
+
},
|
|
197
|
+
"ctxflow.observe.text_hash": {
|
|
198
|
+
"description": "Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that data from pre-release builds can be read. sha256 of the chunk text, computed inside the customer's database (level N2 only).",
|
|
199
|
+
"type": "string"
|
|
200
|
+
},
|
|
201
|
+
"ctxflow.observe.level": {
|
|
202
|
+
"description": "Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that data from pre-release builds can be read. Observation level that produced the span.",
|
|
203
|
+
"type": "string",
|
|
204
|
+
"enum": [
|
|
205
|
+
"N1",
|
|
206
|
+
"N2"
|
|
207
|
+
]
|
|
208
|
+
},
|
|
209
|
+
"ctxflow.observe.observed_at": {
|
|
210
|
+
"description": "Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that data from pre-release builds can be read. UTC time of the poll that saw the change (RFC 3339, microseconds). The change happened at or before it.",
|
|
211
|
+
"type": "string"
|
|
212
|
+
},
|
|
213
|
+
"ctxflow.observe.poll_interval_s": {
|
|
214
|
+
"description": "Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that data from pre-release builds can be read. Configured seconds between polls. A change that lasts less than this can be missed (C4 granularity).",
|
|
215
|
+
"type": "number"
|
|
216
|
+
},
|
|
217
|
+
"ctxflow.observe.config_version": {
|
|
218
|
+
"description": "Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that data from pre-release builds can be read. Adapter that produced the span: `<name>@<version>+<digest>`. The digest is the first 16 hex chars of the sha256 of the adapter document canonicalized with RFC 8785 (JCS), so the control plane can compute the same value.",
|
|
219
|
+
"type": "string"
|
|
220
|
+
},
|
|
221
|
+
"ctxflow.observe.resync": {
|
|
222
|
+
"description": "Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that data from pre-release builds can be read. The event belongs to a baseline. The observer had no usable state (first run, lost state file, changed adapter layout or connection), so it emitted an `insert` for every chunk that existed and a `delete` for every chunk of the old state that is gone. `observed_at` is only an upper bound of when such a chunk appeared; consumers must not read it as a publication time.",
|
|
223
|
+
"type": "boolean"
|
|
224
|
+
},
|
|
225
|
+
"ctxflow.observe.since": {
|
|
226
|
+
"description": "Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that data from pre-release builds can be read. Start (RFC 3339 UTC) of the previous successful poll of the same observed system. The change happened between `since` and `observed_at`, so this is the real granularity after downtime. Absent when there was no previous poll.",
|
|
227
|
+
"type": "string"
|
|
228
|
+
},
|
|
229
|
+
"ctxflow.observe.event_id": {
|
|
230
|
+
"description": "Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that data from pre-release builds can be read. Idempotency key, sha256 hex of (kind, index, chunk_id, op, anchor, previous fingerprint, new fingerprint); the anchor is `since`, or the poll time when there is no previous poll. A poll re-emitted after a crash repeats the same ids (the outbox stores them); a later genuine delete or insert of the same chunk and version, or a baseline after a lost state, has another anchor, so another id. Fingerprints are internal hashes, never sent.",
|
|
231
|
+
"type": "string"
|
|
232
|
+
},
|
|
233
|
+
"ctxflow.usage.chunk_ids": {
|
|
234
|
+
"description": "Deprecated (context usage judgement removed): the core ignores it; SDK 0.2.0/0.2.1 and the 0.2.0/0.2.1 collector still emit it. Ids of the retrieved chunks that the usage evaluator scored, as in ctxflow.retrieval.item_ids (as the vector store holds them).",
|
|
235
|
+
"type": "array",
|
|
236
|
+
"items": {
|
|
237
|
+
"type": "string"
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"ctxflow.usage.scores": {
|
|
241
|
+
"description": "Deprecated (context usage judgement removed): the core ignores it; SDK 0.2.0/0.2.1 and the 0.2.0/0.2.1 collector still emit it. Usage score of each id, same order as the ids.",
|
|
242
|
+
"type": "array",
|
|
243
|
+
"items": {
|
|
244
|
+
"type": "number"
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"ctxflow.usage.used_chunk_ids": {
|
|
248
|
+
"description": "Deprecated (context usage judgement removed): the core ignores it; SDK 0.2.0/0.2.1 and the 0.2.0/0.2.1 collector still emit it. Ids of the chunks with a score at or above the threshold, in the same form as ctxflow.usage.chunk_ids.",
|
|
249
|
+
"type": "array",
|
|
250
|
+
"items": {
|
|
251
|
+
"type": "string"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"ctxflow.usage.method": {
|
|
255
|
+
"description": "Deprecated (context usage judgement removed): the core ignores it; SDK 0.2.0/0.2.1 and the 0.2.0/0.2.1 collector still emit it. Usage scoring method and version.",
|
|
256
|
+
"type": "string"
|
|
257
|
+
},
|
|
258
|
+
"ctxflow.usage.threshold": {
|
|
259
|
+
"description": "Deprecated (context usage judgement removed): the core ignores it; SDK 0.2.0/0.2.1 and the 0.2.0/0.2.1 collector still emit it. Score at or above which a chunk or record counts as used.",
|
|
260
|
+
"type": "number"
|
|
261
|
+
},
|
|
262
|
+
"ctxflow.usage.complete": {
|
|
263
|
+
"description": "Deprecated (context usage judgement removed): the core ignores it; SDK 0.2.0/0.2.1 and the 0.2.0/0.2.1 collector still emit it. All expected retrievals of the turn were found.",
|
|
264
|
+
"type": "boolean"
|
|
265
|
+
},
|
|
266
|
+
"ctxflow.usage.expected_retrievals": {
|
|
267
|
+
"description": "Deprecated (context usage judgement removed): the core ignores it; SDK 0.2.0/0.2.1 and the 0.2.0/0.2.1 collector still emit it. Retrieval spans seen in the turn (the usage evaluator counts them in the trace).",
|
|
268
|
+
"type": "integer"
|
|
269
|
+
},
|
|
270
|
+
"ctxflow.usage.found_retrievals": {
|
|
271
|
+
"description": "Deprecated (context usage judgement removed): the core ignores it; SDK 0.2.0/0.2.1 and the 0.2.0/0.2.1 collector still emit it. Retrieval spans of the turn whose item text the usage evaluator found (spans with no items count as found).",
|
|
272
|
+
"type": "integer"
|
|
273
|
+
},
|
|
274
|
+
"ctxflow.observe.source": {
|
|
275
|
+
"description": "Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that data from pre-release builds can be read. Name of the observed source. Present on every `source.version` span. The document id is `ctxflow.source_id` (C1).",
|
|
276
|
+
"type": "string"
|
|
277
|
+
},
|
|
278
|
+
"ctxflow.observe.etag": {
|
|
279
|
+
"description": "Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that data from pre-release builds can be read. Native checksum of the original as the store reports it (S3 ETag). Level N1.",
|
|
280
|
+
"type": "string"
|
|
281
|
+
},
|
|
282
|
+
"ctxflow.observe.last_modified": {
|
|
283
|
+
"description": "Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that data from pre-release builds can be read. Last-modified time of the original as the store reports it (RFC 3339 UTC). Level N1.",
|
|
284
|
+
"type": "string"
|
|
285
|
+
},
|
|
286
|
+
"ctxflow.observe.size": {
|
|
287
|
+
"description": "Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that data from pre-release builds can be read. Size of the original in bytes. Level N1.",
|
|
288
|
+
"type": "integer"
|
|
289
|
+
},
|
|
290
|
+
"ctxflow.data.kind": {
|
|
291
|
+
"description": "Kind of client system the tool result came from.",
|
|
292
|
+
"type": "string",
|
|
293
|
+
"enum": [
|
|
294
|
+
"sql",
|
|
295
|
+
"api"
|
|
296
|
+
]
|
|
297
|
+
},
|
|
298
|
+
"ctxflow.data.source": {
|
|
299
|
+
"description": "Table or endpoint template, e.g. client.orders or GET /customers/{id}.",
|
|
300
|
+
"type": "string"
|
|
301
|
+
},
|
|
302
|
+
"ctxflow.data.record_ids": {
|
|
303
|
+
"description": "Primary keys or resource ids read.",
|
|
304
|
+
"type": "array",
|
|
305
|
+
"items": {
|
|
306
|
+
"type": "string"
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
"ctxflow.data.record_versions": {
|
|
310
|
+
"description": "Row version or ETag of each record, same order as the ids.",
|
|
311
|
+
"type": "array",
|
|
312
|
+
"items": {
|
|
313
|
+
"type": "string"
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
"ctxflow.data.record_tags": {
|
|
317
|
+
"description": "JSON object {id -> tags of its values, as the app sets them}.",
|
|
318
|
+
"type": "string"
|
|
319
|
+
},
|
|
320
|
+
"ctxflow.data.result_hash": {
|
|
321
|
+
"description": "sha256 (64 hex) of the result text (`output.value` on the span), normalized as the chunk text hashes (NFC, whitespace runs as one space, trim). Compute it with `ctxflow_otel.content_hash`.",
|
|
322
|
+
"type": "string"
|
|
323
|
+
},
|
|
324
|
+
"ctxflow.data.query_hash": {
|
|
325
|
+
"description": "Hash of the SQL text or the request line (`db.query.text` or `db.statement` on the span), same rule as ctxflow.data.result_hash.",
|
|
326
|
+
"type": "string"
|
|
327
|
+
},
|
|
328
|
+
"ctxflow.data.row_count": {
|
|
329
|
+
"description": "Rows or resources returned.",
|
|
330
|
+
"type": "integer"
|
|
331
|
+
},
|
|
332
|
+
"ctxflow.data.truncated": {
|
|
333
|
+
"description": "The row cap was hit.",
|
|
334
|
+
"type": "boolean"
|
|
335
|
+
},
|
|
336
|
+
"ctxflow.data.status": {
|
|
337
|
+
"description": "Outcome of the read.",
|
|
338
|
+
"type": "string",
|
|
339
|
+
"enum": [
|
|
340
|
+
"OK",
|
|
341
|
+
"EMPTY",
|
|
342
|
+
"DENIED",
|
|
343
|
+
"ERROR"
|
|
344
|
+
]
|
|
345
|
+
},
|
|
346
|
+
"ctxflow.usage.record_ids": {
|
|
347
|
+
"description": "Deprecated (context usage judgement removed): the core no longer produces or reads it. Record ids that the usage evaluator scored.",
|
|
348
|
+
"type": "array",
|
|
349
|
+
"items": {
|
|
350
|
+
"type": "string"
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
"ctxflow.usage.used_record_ids": {
|
|
354
|
+
"description": "Deprecated (context usage judgement removed): the core no longer produces or reads it. Record ids with a score at or above the threshold.",
|
|
355
|
+
"type": "array",
|
|
356
|
+
"items": {
|
|
357
|
+
"type": "string"
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
"ctxflow.usage.stale_records": {
|
|
361
|
+
"description": "Records that changed before the turn ended, as <read span id>:<record id>.",
|
|
362
|
+
"type": "array",
|
|
363
|
+
"items": {
|
|
364
|
+
"type": "string"
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
"ctxflow.usage.unknown_records": {
|
|
368
|
+
"description": "Records whose currency could not be determined.",
|
|
369
|
+
"type": "array",
|
|
370
|
+
"items": {
|
|
371
|
+
"type": "string"
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
"patternProperties": {
|
|
376
|
+
"^retrieval\\.documents\\.[0-9]+\\.document\\.id$": {
|
|
377
|
+
"description": "Id of the i-th retrieved document, as the vector store holds it.",
|
|
378
|
+
"type": "string"
|
|
379
|
+
},
|
|
380
|
+
"^retrieval\\.documents\\.[0-9]+\\.document\\.score$": {
|
|
381
|
+
"description": "Retrieval score of the i-th retrieved document.",
|
|
382
|
+
"type": "number"
|
|
383
|
+
},
|
|
384
|
+
"^retrieval\\.documents\\.[0-9]+\\.document\\.metadata$": {
|
|
385
|
+
"description": "JSON metadata of the i-th retrieved document (C1 attributes, no content).",
|
|
386
|
+
"type": "string"
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
"propertyNames": {
|
|
390
|
+
"anyOf": [
|
|
391
|
+
{
|
|
392
|
+
"not": {
|
|
393
|
+
"pattern": "^ctxflow\\."
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"enum": [
|
|
398
|
+
"ctxflow.action.params_hash",
|
|
399
|
+
"ctxflow.action.status",
|
|
400
|
+
"ctxflow.action.target",
|
|
401
|
+
"ctxflow.agent.backend",
|
|
402
|
+
"ctxflow.agent.events_invalid",
|
|
403
|
+
"ctxflow.agent.id",
|
|
404
|
+
"ctxflow.agent.propagated",
|
|
405
|
+
"ctxflow.agent.tool_calls_seen",
|
|
406
|
+
"ctxflow.chunker_version",
|
|
407
|
+
"ctxflow.chunks.count",
|
|
408
|
+
"ctxflow.chunks.ids",
|
|
409
|
+
"ctxflow.chunks.text_hashes",
|
|
410
|
+
"ctxflow.data.kind",
|
|
411
|
+
"ctxflow.data.query_hash",
|
|
412
|
+
"ctxflow.data.record_ids",
|
|
413
|
+
"ctxflow.data.record_tags",
|
|
414
|
+
"ctxflow.data.record_versions",
|
|
415
|
+
"ctxflow.data.result_hash",
|
|
416
|
+
"ctxflow.data.row_count",
|
|
417
|
+
"ctxflow.data.source",
|
|
418
|
+
"ctxflow.data.status",
|
|
419
|
+
"ctxflow.data.truncated",
|
|
420
|
+
"ctxflow.embed_model",
|
|
421
|
+
"ctxflow.id_mode",
|
|
422
|
+
"ctxflow.ingest.skip_reason",
|
|
423
|
+
"ctxflow.ingest.skipped",
|
|
424
|
+
"ctxflow.observe.chunk_id",
|
|
425
|
+
"ctxflow.observe.config_version",
|
|
426
|
+
"ctxflow.observe.etag",
|
|
427
|
+
"ctxflow.observe.event_id",
|
|
428
|
+
"ctxflow.observe.index",
|
|
429
|
+
"ctxflow.observe.last_modified",
|
|
430
|
+
"ctxflow.observe.level",
|
|
431
|
+
"ctxflow.observe.observed_at",
|
|
432
|
+
"ctxflow.observe.op",
|
|
433
|
+
"ctxflow.observe.poll_interval_s",
|
|
434
|
+
"ctxflow.observe.resync",
|
|
435
|
+
"ctxflow.observe.since",
|
|
436
|
+
"ctxflow.observe.size",
|
|
437
|
+
"ctxflow.observe.source",
|
|
438
|
+
"ctxflow.observe.text_hash",
|
|
439
|
+
"ctxflow.observe.version",
|
|
440
|
+
"ctxflow.parse.chars",
|
|
441
|
+
"ctxflow.reingest",
|
|
442
|
+
"ctxflow.retrieval.item_hashes",
|
|
443
|
+
"ctxflow.retrieval.item_ids",
|
|
444
|
+
"ctxflow.retrieval.item_verifiable",
|
|
445
|
+
"ctxflow.retrieval.tool",
|
|
446
|
+
"ctxflow.semconv.version",
|
|
447
|
+
"ctxflow.source_hash",
|
|
448
|
+
"ctxflow.source_id",
|
|
449
|
+
"ctxflow.source_version",
|
|
450
|
+
"ctxflow.tool.status",
|
|
451
|
+
"ctxflow.turn",
|
|
452
|
+
"ctxflow.usage.chunk_ids",
|
|
453
|
+
"ctxflow.usage.complete",
|
|
454
|
+
"ctxflow.usage.expected_retrievals",
|
|
455
|
+
"ctxflow.usage.found_retrievals",
|
|
456
|
+
"ctxflow.usage.method",
|
|
457
|
+
"ctxflow.usage.record_ids",
|
|
458
|
+
"ctxflow.usage.scores",
|
|
459
|
+
"ctxflow.usage.stale_records",
|
|
460
|
+
"ctxflow.usage.threshold",
|
|
461
|
+
"ctxflow.usage.unknown_records",
|
|
462
|
+
"ctxflow.usage.used_chunk_ids",
|
|
463
|
+
"ctxflow.usage.used_record_ids"
|
|
464
|
+
]
|
|
465
|
+
}
|
|
466
|
+
]
|
|
467
|
+
}
|
|
468
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ctxflow-semconv
|
|
3
|
+
Version: 0.2.2
|
|
4
|
+
Summary: ctxflow semantic conventions: C1-C7 constants, JSON Schema and dialect maps.
|
|
5
|
+
Keywords: opentelemetry,semantic-conventions,ctxflow
|
|
6
|
+
Author: ctxflow
|
|
7
|
+
License-Expression: Apache-2.0
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Classifier: Development Status :: 4 - Beta
|
|
10
|
+
Classifier: Framework :: OpenTelemetry
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Topic :: System :: Monitoring
|
|
18
|
+
Classifier: Typing :: Typed
|
|
19
|
+
Requires-Python: >=3.12
|
|
20
|
+
Project-URL: Homepage, https://ctxflow.sh
|
|
21
|
+
Project-URL: Documentation, https://docs.ctxflow.sh
|
|
22
|
+
Project-URL: Changelog, https://docs.ctxflow.sh/reference/changelogs/
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
|
|
25
|
+
# ctxflow-semconv
|
|
26
|
+
|
|
27
|
+
ctxflow semantic conventions (C1-C7): Python constants, JSON Schema of span attributes and the content-key maps of OpenInference, OTel GenAI and OpenLLMetry. Generated from a single registry; no runtime dependencies.
|
|
28
|
+
|
|
29
|
+
```python
|
|
30
|
+
from ctxflow_semconv import SOURCE_ID, content_kind, attributes_schema
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Documentation and the attribute reference: https://docs.ctxflow.sh. Release notes: `CHANGELOG.md` in the source distribution. Apache-2.0.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
ctxflow_semconv/__init__.py,sha256=iT7-Hk6WhCeY_rf9IuZ1eFt4VHrvFyu2b3xIzpMHR-w,1777
|
|
2
|
+
ctxflow_semconv/_generated.py,sha256=8sJnI75lnyNQrCNHBzF3ao8o1BiVHTrwlR5WwBWp9vs,47996
|
|
3
|
+
ctxflow_semconv/conformance/chunk-id.json,sha256=LHPdiR4GpycNqvCsEg8Fl5UQ-Kuml2fyZyf_CJP13gI,1860
|
|
4
|
+
ctxflow_semconv/conformance/config.json,sha256=31LKOKa1MBWWF6HHIdQyFCNueHJk3bg5BCyYu1tEZYs,2898
|
|
5
|
+
ctxflow_semconv/conformance/identity.json,sha256=a4Ii0FK0TVLmAGygO-rAD6LMt3l1wrQxhHGd5aLz4Ak,20622
|
|
6
|
+
ctxflow_semconv/conformance/source-hash.json,sha256=qyeFrKE6rN2x1eyu-4eO-Ds0NWzGvzQCq5sISdLQw0s,1432
|
|
7
|
+
ctxflow_semconv/conformance/text-hash.json,sha256=KEGPkioOPT3VlJKkNy1xVWqXyDJOf-ioBXU_1pbRuJY,3133
|
|
8
|
+
ctxflow_semconv/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
+
ctxflow_semconv/schema/adapter.schema.json,sha256=fIVBCmJsKnrS_pbZ-Fl8C9Cx60VfVe1cBV9sTrxBBSI,8499
|
|
10
|
+
ctxflow_semconv/schema/content-keys.json,sha256=5vpAMaGa1YFxvOc-a8NMfdob7mRbNF7_bk7Fk3hB-es,23341
|
|
11
|
+
ctxflow_semconv/schema/ctxflow-attributes.schema.json,sha256=-_9gq9u8Xql3k1KTCDfe_-j8P5kt7tKjv1FpqCjZrXU,21084
|
|
12
|
+
ctxflow_semconv-0.2.2.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
13
|
+
ctxflow_semconv-0.2.2.dist-info/WHEEL,sha256=-gI5GRFdiNNn2CFz-ptlExISMINC-k8bFxeojAlHbrM,81
|
|
14
|
+
ctxflow_semconv-0.2.2.dist-info/METADATA,sha256=ZmwaYuyEeJ63mMK5qEIp3Z9uvCFXp0lvrsN9EGW6QTo,1406
|
|
15
|
+
ctxflow_semconv-0.2.2.dist-info/RECORD,,
|