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,1072 @@
|
|
|
1
|
+
"""Generated by tools/semconv_gen.py from packages/semconv/registry. Do not edit."""
|
|
2
|
+
|
|
3
|
+
from dataclasses import dataclass
|
|
4
|
+
from enum import StrEnum
|
|
5
|
+
from typing import Final, Literal
|
|
6
|
+
|
|
7
|
+
__all__ = [
|
|
8
|
+
"ACTION_PARAMS_HASH",
|
|
9
|
+
"ACTION_STATUS",
|
|
10
|
+
"ACTION_TARGET",
|
|
11
|
+
"AGENT_BACKEND",
|
|
12
|
+
"AGENT_EVENTS_INVALID",
|
|
13
|
+
"AGENT_ID",
|
|
14
|
+
"AGENT_PROPAGATED",
|
|
15
|
+
"AGENT_TOOL_CALLS_SEEN",
|
|
16
|
+
"AGENT_TOOL_CALL_SPAN",
|
|
17
|
+
"AGENT_TURN_SPAN",
|
|
18
|
+
"ActionStatus",
|
|
19
|
+
"CHUNKER_VERSION",
|
|
20
|
+
"CHUNKS_COUNT",
|
|
21
|
+
"CHUNKS_IDS",
|
|
22
|
+
"CHUNKS_TEXT_HASHES",
|
|
23
|
+
"Confidence",
|
|
24
|
+
"ContentKey",
|
|
25
|
+
"ContentKind",
|
|
26
|
+
"DATA_KIND",
|
|
27
|
+
"DATA_QUERY_HASH",
|
|
28
|
+
"DATA_RECORD_IDS",
|
|
29
|
+
"DATA_RECORD_TAGS",
|
|
30
|
+
"DATA_RECORD_VERSIONS",
|
|
31
|
+
"DATA_RESULT_HASH",
|
|
32
|
+
"DATA_ROW_COUNT",
|
|
33
|
+
"DATA_SOURCE",
|
|
34
|
+
"DATA_STATUS",
|
|
35
|
+
"DATA_TRUNCATED",
|
|
36
|
+
"DIALECTS",
|
|
37
|
+
"DataKind",
|
|
38
|
+
"DataOmissionKind",
|
|
39
|
+
"DataStatus",
|
|
40
|
+
"Dialect",
|
|
41
|
+
"EMBED_MODEL",
|
|
42
|
+
"FILTER_ALLOWED_KEYS",
|
|
43
|
+
"FILTER_ALLOWED_KEY_PATTERNS",
|
|
44
|
+
"GEN_AI_AGENT_ID",
|
|
45
|
+
"GEN_AI_CONVERSATION_ID",
|
|
46
|
+
"GEN_AI_OPERATION",
|
|
47
|
+
"ID_MODE",
|
|
48
|
+
"ID_MODE_HEADER",
|
|
49
|
+
"INDEX_CHANGE_SPAN",
|
|
50
|
+
"INGEST_CHUNK_SPAN",
|
|
51
|
+
"INGEST_DELETE_SPAN",
|
|
52
|
+
"INGEST_DOCUMENT_SPAN",
|
|
53
|
+
"INGEST_EMBED_SPAN",
|
|
54
|
+
"INGEST_PARSE_SPAN",
|
|
55
|
+
"INGEST_RUN_SPAN",
|
|
56
|
+
"INGEST_SKIPPED",
|
|
57
|
+
"INGEST_SKIP_REASON",
|
|
58
|
+
"INGEST_UPSERT_SPAN",
|
|
59
|
+
"INGRESS_SPAN",
|
|
60
|
+
"IdMode",
|
|
61
|
+
"IndexOp",
|
|
62
|
+
"MCP_TOOL_SPAN_FMT",
|
|
63
|
+
"N8N_EXECUTION_ID",
|
|
64
|
+
"N8N_EXECUTION_SPAN",
|
|
65
|
+
"N8N_NODE_SPAN",
|
|
66
|
+
"N8N_WORKFLOW_SPAN",
|
|
67
|
+
"NAMESPACE_NAME",
|
|
68
|
+
"OBSERVE_CHUNK_ID",
|
|
69
|
+
"OBSERVE_CONFIG_VERSION",
|
|
70
|
+
"OBSERVE_ETAG",
|
|
71
|
+
"OBSERVE_EVENT_ID",
|
|
72
|
+
"OBSERVE_INDEX",
|
|
73
|
+
"OBSERVE_LAST_MODIFIED",
|
|
74
|
+
"OBSERVE_LEVEL",
|
|
75
|
+
"OBSERVE_OBSERVED_AT",
|
|
76
|
+
"OBSERVE_OP",
|
|
77
|
+
"OBSERVE_POLL_INTERVAL_S",
|
|
78
|
+
"OBSERVE_RESYNC",
|
|
79
|
+
"OBSERVE_SINCE",
|
|
80
|
+
"OBSERVE_SIZE",
|
|
81
|
+
"OBSERVE_SOURCE",
|
|
82
|
+
"OBSERVE_TEXT_HASH",
|
|
83
|
+
"OBSERVE_VERSION",
|
|
84
|
+
"OPERATION_EXECUTE_TOOL",
|
|
85
|
+
"OPERATION_INVOKE_AGENT",
|
|
86
|
+
"ObserveLevel",
|
|
87
|
+
"OmissionKind",
|
|
88
|
+
"PARSE_CHARS",
|
|
89
|
+
"REINGEST",
|
|
90
|
+
"RESOURCE_SEMCONV_VERSION",
|
|
91
|
+
"RETRIEVAL_DOC_ID_FMT",
|
|
92
|
+
"RETRIEVAL_DOC_METADATA_FMT",
|
|
93
|
+
"RETRIEVAL_DOC_SCORE_FMT",
|
|
94
|
+
"RETRIEVAL_ITEM_HASHES",
|
|
95
|
+
"RETRIEVAL_ITEM_IDS",
|
|
96
|
+
"RETRIEVAL_ITEM_VERIFIABLE",
|
|
97
|
+
"RETRIEVAL_SPAN",
|
|
98
|
+
"RETRIEVAL_TOOL",
|
|
99
|
+
"SESSION_ID",
|
|
100
|
+
"SKIP_REASON_UNCHANGED_HASH",
|
|
101
|
+
"SOURCE_HASH",
|
|
102
|
+
"SOURCE_ID",
|
|
103
|
+
"SOURCE_VERSION",
|
|
104
|
+
"SOURCE_VERSION_SPAN",
|
|
105
|
+
"SQLCOMMENT_TRACEPARENT",
|
|
106
|
+
"SourceState",
|
|
107
|
+
"TOOL_NAME",
|
|
108
|
+
"TOOL_STATUS",
|
|
109
|
+
"TURN",
|
|
110
|
+
"USAGE_CHUNK_IDS",
|
|
111
|
+
"USAGE_COMPLETE",
|
|
112
|
+
"USAGE_EXPECTED_RETRIEVALS",
|
|
113
|
+
"USAGE_FOUND_RETRIEVALS",
|
|
114
|
+
"USAGE_METHOD",
|
|
115
|
+
"USAGE_METHOD_LEXICAL",
|
|
116
|
+
"USAGE_METHOD_VALUE_MATCH",
|
|
117
|
+
"USAGE_RECORD_IDS",
|
|
118
|
+
"USAGE_SCORES",
|
|
119
|
+
"USAGE_SPAN_NAME",
|
|
120
|
+
"USAGE_STALE_RECORDS",
|
|
121
|
+
"USAGE_THRESHOLD",
|
|
122
|
+
"USAGE_UNKNOWN_RECORDS",
|
|
123
|
+
"USAGE_USED_CHUNK_IDS",
|
|
124
|
+
"USAGE_USED_RECORD_IDS",
|
|
125
|
+
"USER_ID",
|
|
126
|
+
]
|
|
127
|
+
|
|
128
|
+
# --- C1: Source identity and version (ingest spans and chunk metadata) ---
|
|
129
|
+
|
|
130
|
+
# Stable id of the document in its source system.
|
|
131
|
+
SOURCE_ID: Final[str] = "ctxflow.source_id"
|
|
132
|
+
# Version in which the current content of the document first appeared. Without an explicit
|
|
133
|
+
# version, a content-derived label: `h:<12 hex>` of a plain sha256.
|
|
134
|
+
SOURCE_VERSION: Final[str] = "ctxflow.source_version"
|
|
135
|
+
# sha256 (64 hex) of the original document bytes as they are (no normalization).
|
|
136
|
+
SOURCE_HASH: Final[str] = "ctxflow.source_hash"
|
|
137
|
+
# Parser and splitter with their settings, e.g.
|
|
138
|
+
# docling-<ver>/llamaindex-<splitter>-<size>-<overlap>.
|
|
139
|
+
CHUNKER_VERSION: Final[str] = "ctxflow.chunker_version"
|
|
140
|
+
# Name of the embedding model.
|
|
141
|
+
EMBED_MODEL: Final[str] = "ctxflow.embed_model"
|
|
142
|
+
# The document was left in the index unchanged.
|
|
143
|
+
INGEST_SKIPPED: Final[str] = "ctxflow.ingest.skipped"
|
|
144
|
+
# Why the document was skipped.
|
|
145
|
+
INGEST_SKIP_REASON: Final[str] = "ctxflow.ingest.skip_reason"
|
|
146
|
+
# The run rebuilds an index that already had chunks.
|
|
147
|
+
REINGEST: Final[str] = "ctxflow.reingest"
|
|
148
|
+
# Length of the parsed text, in characters.
|
|
149
|
+
PARSE_CHARS: Final[str] = "ctxflow.parse.chars"
|
|
150
|
+
# Number of chunks a step produced or wrote.
|
|
151
|
+
CHUNKS_COUNT: Final[str] = "ctxflow.chunks.count"
|
|
152
|
+
# Ids of the chunks a step produced or wrote, as the vector store holds them (the same ones the
|
|
153
|
+
# read side emits).
|
|
154
|
+
CHUNKS_IDS: Final[str] = "ctxflow.chunks.ids"
|
|
155
|
+
# Write-side chunk identity (ADR-013): sha256 (64 hex) of the normalized text of each chunk as
|
|
156
|
+
# stored (the same hash as ctxflow.retrieval.item_hashes: Unicode NFC, whitespace runs as one
|
|
157
|
+
# space, trim), same order as ctxflow.chunks.ids. An empty string where the chunk has no text.
|
|
158
|
+
CHUNKS_TEXT_HASHES: Final[str] = "ctxflow.chunks.text_hashes"
|
|
159
|
+
# Skip reason when the source hash is already indexed.
|
|
160
|
+
SKIP_REASON_UNCHANGED_HASH: Final[str] = "unchanged_hash"
|
|
161
|
+
|
|
162
|
+
# --- C2: Chunk id mode (ingest spans and chunk metadata) ---
|
|
163
|
+
|
|
164
|
+
# How the chunk ids of the index are produced.
|
|
165
|
+
ID_MODE: Final[str] = "ctxflow.id_mode"
|
|
166
|
+
# Seed of the uuid5 namespace for deterministic chunk ids.
|
|
167
|
+
NAMESPACE_NAME: Final[str] = "ctxflow"
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
class IdMode(StrEnum):
|
|
171
|
+
"""Which index a chunk lives in, i.e. how its id is produced."""
|
|
172
|
+
|
|
173
|
+
# Ids from the ingestion framework defaults (random).
|
|
174
|
+
DEFAULT = "default"
|
|
175
|
+
# uuid5 of source id, source version, chunker version and chunk index.
|
|
176
|
+
DETERMINISTIC = "deterministic"
|
|
177
|
+
# Ids from a third-party ingestion stack, not from us.
|
|
178
|
+
UNSTRUCTURED = "unstructured"
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
# --- C3: Correlation keys (agent, MCP server and action spans) ---
|
|
182
|
+
|
|
183
|
+
# Conversation id.
|
|
184
|
+
SESSION_ID: Final[str] = "session.id"
|
|
185
|
+
# Conversation id, OTel GenAI name.
|
|
186
|
+
GEN_AI_CONVERSATION_ID: Final[str] = "gen_ai.conversation.id"
|
|
187
|
+
# End user of the agent, as sent by the app.
|
|
188
|
+
USER_ID: Final[str] = "user.id"
|
|
189
|
+
# Index of the turn in the conversation.
|
|
190
|
+
TURN: Final[str] = "ctxflow.turn"
|
|
191
|
+
# Resource attribute. The SEMCONV_VERSION of the contract the SDK was built with.
|
|
192
|
+
RESOURCE_SEMCONV_VERSION: Final[str] = "ctxflow.semconv.version"
|
|
193
|
+
# Name of the tool called.
|
|
194
|
+
TOOL_NAME: Final[str] = "tool.name"
|
|
195
|
+
# Destination of an action without content (collection name or recipient domain, never an
|
|
196
|
+
# address).
|
|
197
|
+
ACTION_TARGET: Final[str] = "ctxflow.action.target"
|
|
198
|
+
# Hash of the action parameters as recorded on the span (`gen_ai.tool.call.arguments` or
|
|
199
|
+
# `input.value`), same rule as ctxflow.data.result_hash.
|
|
200
|
+
ACTION_PARAMS_HASH: Final[str] = "ctxflow.action.params_hash"
|
|
201
|
+
# Outcome of the action (server side).
|
|
202
|
+
ACTION_STATUS: Final[str] = "ctxflow.action.status"
|
|
203
|
+
# Outcome of the tool call (client side).
|
|
204
|
+
TOOL_STATUS: Final[str] = "ctxflow.tool.status"
|
|
205
|
+
# Which agent or workflow, from the MCP gateway token.
|
|
206
|
+
AGENT_ID: Final[str] = "ctxflow.agent.id"
|
|
207
|
+
# Agent id, OTel GenAI name.
|
|
208
|
+
GEN_AI_AGENT_ID: Final[str] = "gen_ai.agent.id"
|
|
209
|
+
# Agent runtime that produced the turn (e.g. codex).
|
|
210
|
+
AGENT_BACKEND: Final[str] = "ctxflow.agent.backend"
|
|
211
|
+
# Trace context and baggage were propagated to the MCP server.
|
|
212
|
+
AGENT_PROPAGATED: Final[str] = "ctxflow.agent.propagated"
|
|
213
|
+
# Tool calls seen in the agent events of the turn.
|
|
214
|
+
AGENT_TOOL_CALLS_SEEN: Final[str] = "ctxflow.agent.tool_calls_seen"
|
|
215
|
+
# Agent events of the turn that could not be parsed.
|
|
216
|
+
AGENT_EVENTS_INVALID: Final[str] = "ctxflow.agent.events_invalid"
|
|
217
|
+
# OTel GenAI operation name.
|
|
218
|
+
GEN_AI_OPERATION: Final[str] = "gen_ai.operation.name"
|
|
219
|
+
# n8n execution id; join key of the n8n connector.
|
|
220
|
+
N8N_EXECUTION_ID: Final[str] = "n8n.execution.id"
|
|
221
|
+
# Id of the i-th retrieved document, as the vector store holds it.
|
|
222
|
+
RETRIEVAL_DOC_ID_FMT: Final[str] = "retrieval.documents.{i}.document.id"
|
|
223
|
+
# Retrieval score of the i-th retrieved document.
|
|
224
|
+
RETRIEVAL_DOC_SCORE_FMT: Final[str] = "retrieval.documents.{i}.document.score"
|
|
225
|
+
# JSON metadata of the i-th retrieved document (C1 attributes, no content).
|
|
226
|
+
RETRIEVAL_DOC_METADATA_FMT: Final[str] = "retrieval.documents.{i}.document.metadata"
|
|
227
|
+
# HTTP header from the agent to the MCP server with the index to query.
|
|
228
|
+
ID_MODE_HEADER: Final[str] = "x-ctxflow-id-mode"
|
|
229
|
+
# gen_ai.operation.name of an agent invocation.
|
|
230
|
+
OPERATION_INVOKE_AGENT: Final[str] = "invoke_agent"
|
|
231
|
+
# gen_ai.operation.name of a tool execution.
|
|
232
|
+
OPERATION_EXECUTE_TOOL: Final[str] = "execute_tool"
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
class ActionStatus(StrEnum):
|
|
236
|
+
"""Outcome of an action or tool call."""
|
|
237
|
+
|
|
238
|
+
# Succeeded.
|
|
239
|
+
OK = "OK"
|
|
240
|
+
# Failed.
|
|
241
|
+
ERROR = "ERROR"
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
# --- C4: Index observer events ---
|
|
245
|
+
|
|
246
|
+
# Read-side item identity (ADR-013): the id of each item the vector store returned, in order,
|
|
247
|
+
# measured at the retrieval call before any reranker, compressor or snippet; the same id as
|
|
248
|
+
# ctxflow.chunks.ids, as the vector store holds it. An empty string where the item had no id.
|
|
249
|
+
RETRIEVAL_ITEM_IDS: Final[str] = "ctxflow.retrieval.item_ids"
|
|
250
|
+
# sha256 (64 hex) of the normalized text of each returned item (Unicode NFC, whitespace runs as
|
|
251
|
+
# one space, trimmed), same order as the ids; the same hash the write side computes. An empty
|
|
252
|
+
# string where the item had no text.
|
|
253
|
+
RETRIEVAL_ITEM_HASHES: Final[str] = "ctxflow.retrieval.item_hashes"
|
|
254
|
+
# Same order as the ids. False for an item with neither an id nor a text (for example a
|
|
255
|
+
# summary): it cannot be checked against the index and counts as neither up to date nor stale.
|
|
256
|
+
RETRIEVAL_ITEM_VERIFIABLE: Final[str] = "ctxflow.retrieval.item_verifiable"
|
|
257
|
+
# True on a ctxflow tool-call span (`agent.tool_call`, `tool.<name>`, `mcp.tool <name>`, or a
|
|
258
|
+
# span with `ctxflow.action.*` attributes) whose result lists retrieved items, for example an
|
|
259
|
+
# MCP search tool: the call then counts as a retrieval call. It does not deliver chunks (those
|
|
260
|
+
# come from `retrieval.documents.*` and `reranker.output_documents.*`), and OpenInference TOOL
|
|
261
|
+
# and GenAI `execute_tool` spans ignore it.
|
|
262
|
+
RETRIEVAL_TOOL: Final[str] = "ctxflow.retrieval.tool"
|
|
263
|
+
# Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that
|
|
264
|
+
# data from pre-release builds can be read. Name of the observed index (the adapter name).
|
|
265
|
+
# Present on every `index.change` span; `kind` of the event id is `index`.
|
|
266
|
+
OBSERVE_INDEX: Final[str] = "ctxflow.observe.index"
|
|
267
|
+
# Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that
|
|
268
|
+
# data from pre-release builds can be read. Id of the chunk as the index stores it.
|
|
269
|
+
OBSERVE_CHUNK_ID: Final[str] = "ctxflow.observe.chunk_id"
|
|
270
|
+
# Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that
|
|
271
|
+
# data from pre-release builds can be read. Change seen (C4).
|
|
272
|
+
OBSERVE_OP: Final[str] = "ctxflow.observe.op"
|
|
273
|
+
# Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that
|
|
274
|
+
# data from pre-release builds can be read. Version of the chunk (index) or of the original
|
|
275
|
+
# (source) as the observed system reports it. For a delete, the last version seen.
|
|
276
|
+
OBSERVE_VERSION: Final[str] = "ctxflow.observe.version"
|
|
277
|
+
# Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that
|
|
278
|
+
# data from pre-release builds can be read. sha256 of the chunk text, computed inside the
|
|
279
|
+
# customer's database (level N2 only).
|
|
280
|
+
OBSERVE_TEXT_HASH: Final[str] = "ctxflow.observe.text_hash"
|
|
281
|
+
# Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that
|
|
282
|
+
# data from pre-release builds can be read. Observation level that produced the span.
|
|
283
|
+
OBSERVE_LEVEL: Final[str] = "ctxflow.observe.level"
|
|
284
|
+
# Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that
|
|
285
|
+
# data from pre-release builds can be read. UTC time of the poll that saw the change (RFC 3339,
|
|
286
|
+
# microseconds). The change happened at or before it.
|
|
287
|
+
OBSERVE_OBSERVED_AT: Final[str] = "ctxflow.observe.observed_at"
|
|
288
|
+
# Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that
|
|
289
|
+
# data from pre-release builds can be read. Configured seconds between polls. A change that
|
|
290
|
+
# lasts less than this can be missed (C4 granularity).
|
|
291
|
+
OBSERVE_POLL_INTERVAL_S: Final[str] = "ctxflow.observe.poll_interval_s"
|
|
292
|
+
# Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that
|
|
293
|
+
# data from pre-release builds can be read. Adapter that produced the span:
|
|
294
|
+
# `<name>@<version>+<digest>`. The digest is the first 16 hex chars of the sha256 of the adapter
|
|
295
|
+
# document canonicalized with RFC 8785 (JCS), so the control plane can compute the same value.
|
|
296
|
+
OBSERVE_CONFIG_VERSION: Final[str] = "ctxflow.observe.config_version"
|
|
297
|
+
# Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that
|
|
298
|
+
# data from pre-release builds can be read. The event belongs to a baseline. The observer had no
|
|
299
|
+
# usable state (first run, lost state file, changed adapter layout or connection), so it emitted
|
|
300
|
+
# an `insert` for every chunk that existed and a `delete` for every chunk of the old state that
|
|
301
|
+
# is gone. `observed_at` is only an upper bound of when such a chunk appeared; consumers must
|
|
302
|
+
# not read it as a publication time.
|
|
303
|
+
OBSERVE_RESYNC: Final[str] = "ctxflow.observe.resync"
|
|
304
|
+
# Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that
|
|
305
|
+
# data from pre-release builds can be read. Start (RFC 3339 UTC) of the previous successful poll
|
|
306
|
+
# of the same observed system. The change happened between `since` and `observed_at`, so this is
|
|
307
|
+
# the real granularity after downtime. Absent when there was no previous poll.
|
|
308
|
+
OBSERVE_SINCE: Final[str] = "ctxflow.observe.since"
|
|
309
|
+
# Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that
|
|
310
|
+
# data from pre-release builds can be read. Idempotency key, sha256 hex of (kind, index,
|
|
311
|
+
# chunk_id, op, anchor, previous fingerprint, new fingerprint); the anchor is `since`, or the
|
|
312
|
+
# poll time when there is no previous poll. A poll re-emitted after a crash repeats the same ids
|
|
313
|
+
# (the outbox stores them); a later genuine delete or insert of the same chunk and version, or a
|
|
314
|
+
# baseline after a lost state, has another anchor, so another id. Fingerprints are internal
|
|
315
|
+
# hashes, never sent.
|
|
316
|
+
OBSERVE_EVENT_ID: Final[str] = "ctxflow.observe.event_id"
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
class IndexOp(StrEnum):
|
|
320
|
+
"""Kind of change seen by an observer (index, source or rows)."""
|
|
321
|
+
|
|
322
|
+
# First seen.
|
|
323
|
+
INSERT = "insert"
|
|
324
|
+
# Content changed.
|
|
325
|
+
UPDATE = "update"
|
|
326
|
+
# Removed.
|
|
327
|
+
DELETE = "delete"
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
class ObserveLevel(StrEnum):
|
|
331
|
+
"""Deprecated (ADR-013): observers retired. What an observer read. Never content."""
|
|
332
|
+
|
|
333
|
+
# Metadata only - ids, versions and C1 keys (index) or ETag/lastModified/size (source).
|
|
334
|
+
N1 = "N1"
|
|
335
|
+
# Adds a hash computed inside the customer's system (text_hash of a chunk, sha256 of an
|
|
336
|
+
# original).
|
|
337
|
+
N2 = "N2"
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
# --- C5: Context usage and omissions ---
|
|
341
|
+
|
|
342
|
+
# Deprecated (context usage judgement removed): the core ignores it; SDK 0.2.0/0.2.1 and the
|
|
343
|
+
# 0.2.0/0.2.1 collector still emit it. Ids of the retrieved chunks that the usage evaluator
|
|
344
|
+
# scored, as in ctxflow.retrieval.item_ids (as the vector store holds them).
|
|
345
|
+
USAGE_CHUNK_IDS: Final[str] = "ctxflow.usage.chunk_ids"
|
|
346
|
+
# Deprecated (context usage judgement removed): the core ignores it; SDK 0.2.0/0.2.1 and the
|
|
347
|
+
# 0.2.0/0.2.1 collector still emit it. Usage score of each id, same order as the ids.
|
|
348
|
+
USAGE_SCORES: Final[str] = "ctxflow.usage.scores"
|
|
349
|
+
# Deprecated (context usage judgement removed): the core ignores it; SDK 0.2.0/0.2.1 and the
|
|
350
|
+
# 0.2.0/0.2.1 collector still emit it. Ids of the chunks with a score at or above the threshold,
|
|
351
|
+
# in the same form as ctxflow.usage.chunk_ids.
|
|
352
|
+
USAGE_USED_CHUNK_IDS: Final[str] = "ctxflow.usage.used_chunk_ids"
|
|
353
|
+
# Deprecated (context usage judgement removed): the core ignores it; SDK 0.2.0/0.2.1 and the
|
|
354
|
+
# 0.2.0/0.2.1 collector still emit it. Usage scoring method and version.
|
|
355
|
+
USAGE_METHOD: Final[str] = "ctxflow.usage.method"
|
|
356
|
+
# Deprecated (context usage judgement removed): the core ignores it; SDK 0.2.0/0.2.1 and the
|
|
357
|
+
# 0.2.0/0.2.1 collector still emit it. Score at or above which a chunk or record counts as used.
|
|
358
|
+
USAGE_THRESHOLD: Final[str] = "ctxflow.usage.threshold"
|
|
359
|
+
# Deprecated (context usage judgement removed): the core ignores it; SDK 0.2.0/0.2.1 and the
|
|
360
|
+
# 0.2.0/0.2.1 collector still emit it. All expected retrievals of the turn were found.
|
|
361
|
+
USAGE_COMPLETE: Final[str] = "ctxflow.usage.complete"
|
|
362
|
+
# Deprecated (context usage judgement removed): the core ignores it; SDK 0.2.0/0.2.1 and the
|
|
363
|
+
# 0.2.0/0.2.1 collector still emit it. Retrieval spans seen in the turn (the usage evaluator
|
|
364
|
+
# counts them in the trace).
|
|
365
|
+
USAGE_EXPECTED_RETRIEVALS: Final[str] = "ctxflow.usage.expected_retrievals"
|
|
366
|
+
# Deprecated (context usage judgement removed): the core ignores it; SDK 0.2.0/0.2.1 and the
|
|
367
|
+
# 0.2.0/0.2.1 collector still emit it. Retrieval spans of the turn whose item text the usage
|
|
368
|
+
# evaluator found (spans with no items count as found).
|
|
369
|
+
USAGE_FOUND_RETRIEVALS: Final[str] = "ctxflow.usage.found_retrievals"
|
|
370
|
+
# Deprecated (context usage judgement removed): the core ignores it; SDK 0.2.0/0.2.1 and the
|
|
371
|
+
# 0.2.0/0.2.1 collector still emit it. Usage method for chunks.
|
|
372
|
+
USAGE_METHOD_LEXICAL: Final[str] = "lexical-overlap-v1"
|
|
373
|
+
# Deprecated (context usage judgement removed): the core ignores it; SDK 0.2.0/0.2.1 and the
|
|
374
|
+
# 0.2.0/0.2.1 collector still emit it. Span emitted by the usage evaluator after each turn.
|
|
375
|
+
USAGE_SPAN_NAME: Final[str] = "ctxflow.usage"
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
class OmissionKind(StrEnum):
|
|
379
|
+
"""Observable context omissions computed from traces."""
|
|
380
|
+
|
|
381
|
+
# Turn without any retrieval span.
|
|
382
|
+
NO_RETRIEVAL = "no_retrieval"
|
|
383
|
+
# Deprecated (context usage judgement removed): the core no longer produces or reads it.
|
|
384
|
+
# Retrieved chunk with a score below the threshold.
|
|
385
|
+
CONTEXT_IGNORED = "context_ignored"
|
|
386
|
+
# Action span with status ERROR.
|
|
387
|
+
TOOL_FAILED = "tool_failed"
|
|
388
|
+
# Retrieved chunk whose source changed before the turn (C6).
|
|
389
|
+
STALE_CONTEXT = "stale_context"
|
|
390
|
+
# Retrieval or action span without session or user.
|
|
391
|
+
UNATTRIBUTED = "unattributed"
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
class Confidence(StrEnum):
|
|
395
|
+
"""Confidence of a reconstructed link."""
|
|
396
|
+
|
|
397
|
+
# Ids match the C1 metadata of a chunk valid at t (DB log, traceparent).
|
|
398
|
+
VERIFIED = "verified"
|
|
399
|
+
# Ids only match the observer history (DB log, time window).
|
|
400
|
+
OBSERVED = "observed"
|
|
401
|
+
# Ids match nothing known.
|
|
402
|
+
UNRESOLVED = "unresolved"
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
# --- C6: Source publication and staleness ---
|
|
406
|
+
|
|
407
|
+
# Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that
|
|
408
|
+
# data from pre-release builds can be read. Name of the observed source. Present on every
|
|
409
|
+
# `source.version` span. The document id is `ctxflow.source_id` (C1).
|
|
410
|
+
OBSERVE_SOURCE: Final[str] = "ctxflow.observe.source"
|
|
411
|
+
# Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that
|
|
412
|
+
# data from pre-release builds can be read. Native checksum of the original as the store reports
|
|
413
|
+
# it (S3 ETag). Level N1.
|
|
414
|
+
OBSERVE_ETAG: Final[str] = "ctxflow.observe.etag"
|
|
415
|
+
# Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that
|
|
416
|
+
# data from pre-release builds can be read. Last-modified time of the original as the store
|
|
417
|
+
# reports it (RFC 3339 UTC). Level N1.
|
|
418
|
+
OBSERVE_LAST_MODIFIED: Final[str] = "ctxflow.observe.last_modified"
|
|
419
|
+
# Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that
|
|
420
|
+
# data from pre-release builds can be read. Size of the original in bytes. Level N1.
|
|
421
|
+
OBSERVE_SIZE: Final[str] = "ctxflow.observe.size"
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
class SourceState(StrEnum):
|
|
425
|
+
"""Is what the agent was shown still what the source had published at t?"""
|
|
426
|
+
|
|
427
|
+
# Published hash equals the chunk source hash.
|
|
428
|
+
CURRENT = "current"
|
|
429
|
+
# The source changed or was deleted after the chunk was built.
|
|
430
|
+
STALE = "stale"
|
|
431
|
+
# No publication seen at t, or the span has no source hash. Never inferred.
|
|
432
|
+
UNKNOWN = "unknown"
|
|
433
|
+
# The evidence does not decide at t (t inside the poll window of the deciding event, a
|
|
434
|
+
# resync gap, or two sources disagree). Never counted as current or stale.
|
|
435
|
+
AMBIGUOUS = "ambiguous"
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
# --- C7: SQL and API reads (one span per read, ids and versions, never rows) ---
|
|
439
|
+
|
|
440
|
+
# Kind of client system the tool result came from.
|
|
441
|
+
DATA_KIND: Final[str] = "ctxflow.data.kind"
|
|
442
|
+
# Table or endpoint template, e.g. client.orders or GET /customers/{id}.
|
|
443
|
+
DATA_SOURCE: Final[str] = "ctxflow.data.source"
|
|
444
|
+
# Primary keys or resource ids read.
|
|
445
|
+
DATA_RECORD_IDS: Final[str] = "ctxflow.data.record_ids"
|
|
446
|
+
# Row version or ETag of each record, same order as the ids.
|
|
447
|
+
DATA_RECORD_VERSIONS: Final[str] = "ctxflow.data.record_versions"
|
|
448
|
+
# JSON object {id -> tags of its values, as the app sets them}.
|
|
449
|
+
DATA_RECORD_TAGS: Final[str] = "ctxflow.data.record_tags"
|
|
450
|
+
# sha256 (64 hex) of the result text (`output.value` on the span), normalized as the chunk text
|
|
451
|
+
# hashes (NFC, whitespace runs as one space, trim). Compute it with `ctxflow_otel.content_hash`.
|
|
452
|
+
DATA_RESULT_HASH: Final[str] = "ctxflow.data.result_hash"
|
|
453
|
+
# Hash of the SQL text or the request line (`db.query.text` or `db.statement` on the span), same
|
|
454
|
+
# rule as ctxflow.data.result_hash.
|
|
455
|
+
DATA_QUERY_HASH: Final[str] = "ctxflow.data.query_hash"
|
|
456
|
+
# Rows or resources returned.
|
|
457
|
+
DATA_ROW_COUNT: Final[str] = "ctxflow.data.row_count"
|
|
458
|
+
# The row cap was hit.
|
|
459
|
+
DATA_TRUNCATED: Final[str] = "ctxflow.data.truncated"
|
|
460
|
+
# Outcome of the read.
|
|
461
|
+
DATA_STATUS: Final[str] = "ctxflow.data.status"
|
|
462
|
+
# Deprecated (context usage judgement removed): the core no longer produces or reads it. Record
|
|
463
|
+
# ids that the usage evaluator scored.
|
|
464
|
+
USAGE_RECORD_IDS: Final[str] = "ctxflow.usage.record_ids"
|
|
465
|
+
# Deprecated (context usage judgement removed): the core no longer produces or reads it. Record
|
|
466
|
+
# ids with a score at or above the threshold.
|
|
467
|
+
USAGE_USED_RECORD_IDS: Final[str] = "ctxflow.usage.used_record_ids"
|
|
468
|
+
# Records that changed before the turn ended, as <read span id>:<record id>.
|
|
469
|
+
USAGE_STALE_RECORDS: Final[str] = "ctxflow.usage.stale_records"
|
|
470
|
+
# Records whose currency could not be determined.
|
|
471
|
+
USAGE_UNKNOWN_RECORDS: Final[str] = "ctxflow.usage.unknown_records"
|
|
472
|
+
# Deprecated (context usage judgement removed): the core no longer produces or reads it. Usage
|
|
473
|
+
# method for records.
|
|
474
|
+
USAGE_METHOD_VALUE_MATCH: Final[str] = "value-match-v1"
|
|
475
|
+
# Key of the sqlcommenter tag in the database log.
|
|
476
|
+
SQLCOMMENT_TRACEPARENT: Final[str] = "traceparent"
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
class DataKind(StrEnum):
|
|
480
|
+
"""Kind of client system a tool result came from."""
|
|
481
|
+
|
|
482
|
+
# SQL database.
|
|
483
|
+
SQL = "sql"
|
|
484
|
+
# REST API.
|
|
485
|
+
API = "api"
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
class DataStatus(StrEnum):
|
|
489
|
+
"""Outcome of a data read."""
|
|
490
|
+
|
|
491
|
+
# Succeeded with rows.
|
|
492
|
+
OK = "OK"
|
|
493
|
+
# Succeeded without rows, or 404.
|
|
494
|
+
EMPTY = "EMPTY"
|
|
495
|
+
# Permission denied (SQL privilege, HTTP 401/403).
|
|
496
|
+
DENIED = "DENIED"
|
|
497
|
+
# Any other failure.
|
|
498
|
+
ERROR = "ERROR"
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
class DataOmissionKind(StrEnum):
|
|
502
|
+
"""C5 omissions of SQL and API tool results."""
|
|
503
|
+
|
|
504
|
+
# The read succeeded and returned nothing.
|
|
505
|
+
EMPTY_RESULT = "empty_result"
|
|
506
|
+
# Row cap hit, the agent saw part of the data.
|
|
507
|
+
TRUNCATED_RESULT = "truncated_result"
|
|
508
|
+
# The role cannot read what the agent asked for.
|
|
509
|
+
PERMISSION_DENIED = "permission_denied"
|
|
510
|
+
# A record read changed before the turn ended.
|
|
511
|
+
STALE_DATA = "stale_data"
|
|
512
|
+
# The read failed for another reason.
|
|
513
|
+
TOOL_FAILED = "tool_failed"
|
|
514
|
+
# Deprecated (context usage judgement removed): the core no longer produces or reads it. A
|
|
515
|
+
# record read whose values the answer never uses.
|
|
516
|
+
CONTEXT_IGNORED = "context_ignored"
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
# --- Span names emitted by ctxflow components or read by the reconciler ---
|
|
520
|
+
|
|
521
|
+
# One turn of the agent.
|
|
522
|
+
AGENT_TURN_SPAN: Final[str] = "agent.turn"
|
|
523
|
+
# Tool call seen on the agent side.
|
|
524
|
+
AGENT_TOOL_CALL_SPAN: Final[str] = "agent.tool_call"
|
|
525
|
+
# Retrieval span (OpenInference RETRIEVER).
|
|
526
|
+
RETRIEVAL_SPAN: Final[str] = "retrieval"
|
|
527
|
+
# MCP server span of a tool call.
|
|
528
|
+
MCP_TOOL_SPAN_FMT: Final[str] = "mcp.tool {name}"
|
|
529
|
+
# Ingress proxy span; identity from the mapping file.
|
|
530
|
+
INGRESS_SPAN: Final[str] = "ingress.request"
|
|
531
|
+
# n8n connector span with the identity of an execution.
|
|
532
|
+
N8N_EXECUTION_SPAN: Final[str] = "ctxflow.n8n.execution"
|
|
533
|
+
# n8n node span.
|
|
534
|
+
N8N_NODE_SPAN: Final[str] = "node.execute"
|
|
535
|
+
# n8n workflow span.
|
|
536
|
+
N8N_WORKFLOW_SPAN: Final[str] = "workflow.execute"
|
|
537
|
+
# One ingestion run over a corpus version.
|
|
538
|
+
INGEST_RUN_SPAN: Final[str] = "ingest.run"
|
|
539
|
+
# Ingestion of one document.
|
|
540
|
+
INGEST_DOCUMENT_SPAN: Final[str] = "ingest.document"
|
|
541
|
+
# Parse of one document.
|
|
542
|
+
INGEST_PARSE_SPAN: Final[str] = "ingest.parse"
|
|
543
|
+
# Chunking of one document.
|
|
544
|
+
INGEST_CHUNK_SPAN: Final[str] = "ingest.chunk"
|
|
545
|
+
# Embedding of the chunks of one document.
|
|
546
|
+
INGEST_EMBED_SPAN: Final[str] = "ingest.embed"
|
|
547
|
+
# Write of the chunks of one document to the index.
|
|
548
|
+
INGEST_UPSERT_SPAN: Final[str] = "ingest.upsert"
|
|
549
|
+
# Removal of the chunks of a deleted document.
|
|
550
|
+
INGEST_DELETE_SPAN: Final[str] = "ingest.delete"
|
|
551
|
+
# Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that
|
|
552
|
+
# data from pre-release builds can be read. One change of one chunk seen by the index observer
|
|
553
|
+
# (C4). Attributes: ctxflow.observe.{index,chunk_id,op,version,text_hash,level,observed_at,since
|
|
554
|
+
# ,poll_interval_s,config_version,event_id,resync}, the C1 keys of the chunk. A baseline (first
|
|
555
|
+
# start or lost state) is a set of insert/delete events with ctxflow.observe.resync=true.
|
|
556
|
+
INDEX_CHANGE_SPAN: Final[str] = "index.change"
|
|
557
|
+
# Deprecated (ADR-013): no producer since the edge worker (observers) was retired; kept so that
|
|
558
|
+
# data from pre-release builds can be read. One publication of one original seen by the source
|
|
559
|
+
# observer (C6). Attributes: ctxflow.observe.{source,op,version,level,observed_at,since,poll_int
|
|
560
|
+
# erval_s,config_version,event_id,resync,etag,last_modified,size}, ctxflow.source_id,
|
|
561
|
+
# ctxflow.source_hash (level N2).
|
|
562
|
+
SOURCE_VERSION_SPAN: Final[str] = "source.version"
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
ContentKind = Literal["drop", "filter"]
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
@dataclass(frozen=True)
|
|
569
|
+
class ContentKey:
|
|
570
|
+
"""Pattern of a content key; `regex` is meant for `re.fullmatch`."""
|
|
571
|
+
|
|
572
|
+
pattern: str
|
|
573
|
+
regex: str
|
|
574
|
+
kind: ContentKind
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
@dataclass(frozen=True)
|
|
578
|
+
class Dialect:
|
|
579
|
+
"""A convention of another tool and the keys of it that carry content."""
|
|
580
|
+
|
|
581
|
+
name: str
|
|
582
|
+
version: str
|
|
583
|
+
spec: str
|
|
584
|
+
content: tuple[ContentKey, ...]
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
# Pattern syntax: see registry/README.md.
|
|
588
|
+
DIALECTS: Final[tuple[Dialect, ...]] = (
|
|
589
|
+
Dialect(
|
|
590
|
+
name="openinference",
|
|
591
|
+
version="0.1.46",
|
|
592
|
+
spec="https://github.com/Arize-ai/openinference/blob/python-openinference-semantic-conventions-v0.1.46/spec/attributes/semantic-conventions.md",
|
|
593
|
+
content=(
|
|
594
|
+
ContentKey("input.value", "^input\\.value(?:\\..+)?$", "drop"),
|
|
595
|
+
ContentKey("output.value", "^output\\.value(?:\\..+)?$", "drop"),
|
|
596
|
+
ContentKey(
|
|
597
|
+
"input.documents.*.document.content",
|
|
598
|
+
"^input\\.documents\\.[^.]+\\.document\\.content(?:\\..+)?$",
|
|
599
|
+
"drop",
|
|
600
|
+
),
|
|
601
|
+
ContentKey(
|
|
602
|
+
"input.documents.*.document.url",
|
|
603
|
+
"^input\\.documents\\.[^.]+\\.document\\.url(?:\\..+)?$",
|
|
604
|
+
"drop",
|
|
605
|
+
),
|
|
606
|
+
ContentKey(
|
|
607
|
+
"output.documents.*.document.content",
|
|
608
|
+
"^output\\.documents\\.[^.]+\\.document\\.content(?:\\..+)?$",
|
|
609
|
+
"drop",
|
|
610
|
+
),
|
|
611
|
+
ContentKey(
|
|
612
|
+
"output.documents.*.document.url",
|
|
613
|
+
"^output\\.documents\\.[^.]+\\.document\\.url(?:\\..+)?$",
|
|
614
|
+
"drop",
|
|
615
|
+
),
|
|
616
|
+
ContentKey(
|
|
617
|
+
"input.images.*.image.url",
|
|
618
|
+
"^input\\.images\\.[^.]+\\.image\\.url(?:\\..+)?$",
|
|
619
|
+
"drop",
|
|
620
|
+
),
|
|
621
|
+
ContentKey(
|
|
622
|
+
"output.images.*.image.url",
|
|
623
|
+
"^output\\.images\\.[^.]+\\.image\\.url(?:\\..+)?$",
|
|
624
|
+
"drop",
|
|
625
|
+
),
|
|
626
|
+
ContentKey(
|
|
627
|
+
"llm.input_messages.*.message.content",
|
|
628
|
+
"^llm\\.input_messages\\.[^.]+\\.message\\.content(?:\\..+)?$",
|
|
629
|
+
"drop",
|
|
630
|
+
),
|
|
631
|
+
ContentKey(
|
|
632
|
+
"llm.input_messages.*.message.contents.*.message_content.text",
|
|
633
|
+
"^llm\\.input_messages\\.[^.]+\\.message\\.contents\\.[^.]+\\.message_content\\.text(?:\\..+)?$",
|
|
634
|
+
"drop",
|
|
635
|
+
),
|
|
636
|
+
ContentKey(
|
|
637
|
+
"llm.input_messages.*.message.contents.*.message_content.data",
|
|
638
|
+
"^llm\\.input_messages\\.[^.]+\\.message\\.contents\\.[^.]+\\.message_content\\.data(?:\\..+)?$",
|
|
639
|
+
"drop",
|
|
640
|
+
),
|
|
641
|
+
ContentKey(
|
|
642
|
+
"llm.input_messages.*.message.contents.*.message_content.encrypted_content",
|
|
643
|
+
"^llm\\.input_messages\\.[^.]+\\.message\\.contents\\.[^.]+\\.message_content\\.encrypted_content(?:\\..+)?$",
|
|
644
|
+
"drop",
|
|
645
|
+
),
|
|
646
|
+
ContentKey(
|
|
647
|
+
"llm.input_messages.*.message.contents.*.message_content.image.image.url",
|
|
648
|
+
"^llm\\.input_messages\\.[^.]+\\.message\\.contents\\.[^.]+\\.message_content\\.image\\.image\\.url(?:\\..+)?$",
|
|
649
|
+
"drop",
|
|
650
|
+
),
|
|
651
|
+
ContentKey(
|
|
652
|
+
"llm.input_messages.*.message.contents.*.message_content.audio.audio.url",
|
|
653
|
+
"^llm\\.input_messages\\.[^.]+\\.message\\.contents\\.[^.]+\\.message_content\\.audio\\.audio\\.url(?:\\..+)?$",
|
|
654
|
+
"drop",
|
|
655
|
+
),
|
|
656
|
+
ContentKey(
|
|
657
|
+
"llm.input_messages.*.message.contents.*.message_content.audio.audio.transcript",
|
|
658
|
+
"^llm\\.input_messages\\.[^.]+\\.message\\.contents\\.[^.]+\\.message_content\\.audio\\.audio\\.transcript(?:\\..+)?$",
|
|
659
|
+
"drop",
|
|
660
|
+
),
|
|
661
|
+
ContentKey(
|
|
662
|
+
"llm.input_messages.*.message.contents.*.message_content.video.video.url",
|
|
663
|
+
"^llm\\.input_messages\\.[^.]+\\.message\\.contents\\.[^.]+\\.message_content\\.video\\.video\\.url(?:\\..+)?$",
|
|
664
|
+
"drop",
|
|
665
|
+
),
|
|
666
|
+
ContentKey(
|
|
667
|
+
"llm.input_messages.*.message.contents.*.message_content.document.document.content",
|
|
668
|
+
"^llm\\.input_messages\\.[^.]+\\.message\\.contents\\.[^.]+\\.message_content\\.document\\.document\\.content(?:\\..+)?$",
|
|
669
|
+
"drop",
|
|
670
|
+
),
|
|
671
|
+
ContentKey(
|
|
672
|
+
"llm.input_messages.*.message.contents.*.message_content.document.document.url",
|
|
673
|
+
"^llm\\.input_messages\\.[^.]+\\.message\\.contents\\.[^.]+\\.message_content\\.document\\.document\\.url(?:\\..+)?$",
|
|
674
|
+
"drop",
|
|
675
|
+
),
|
|
676
|
+
ContentKey(
|
|
677
|
+
"llm.input_messages.*.message.tool_calls.*.tool_call.function.arguments",
|
|
678
|
+
"^llm\\.input_messages\\.[^.]+\\.message\\.tool_calls\\.[^.]+\\.tool_call\\.function\\.arguments(?:\\..+)?$",
|
|
679
|
+
"drop",
|
|
680
|
+
),
|
|
681
|
+
ContentKey(
|
|
682
|
+
"llm.input_messages.*.message.function_call_arguments_json",
|
|
683
|
+
"^llm\\.input_messages\\.[^.]+\\.message\\.function_call_arguments_json(?:\\..+)?$",
|
|
684
|
+
"drop",
|
|
685
|
+
),
|
|
686
|
+
ContentKey(
|
|
687
|
+
"llm.output_messages.*.message.content",
|
|
688
|
+
"^llm\\.output_messages\\.[^.]+\\.message\\.content(?:\\..+)?$",
|
|
689
|
+
"drop",
|
|
690
|
+
),
|
|
691
|
+
ContentKey(
|
|
692
|
+
"llm.output_messages.*.message.contents.*.message_content.text",
|
|
693
|
+
"^llm\\.output_messages\\.[^.]+\\.message\\.contents\\.[^.]+\\.message_content\\.text(?:\\..+)?$",
|
|
694
|
+
"drop",
|
|
695
|
+
),
|
|
696
|
+
ContentKey(
|
|
697
|
+
"llm.output_messages.*.message.contents.*.message_content.data",
|
|
698
|
+
"^llm\\.output_messages\\.[^.]+\\.message\\.contents\\.[^.]+\\.message_content\\.data(?:\\..+)?$",
|
|
699
|
+
"drop",
|
|
700
|
+
),
|
|
701
|
+
ContentKey(
|
|
702
|
+
"llm.output_messages.*.message.contents.*.message_content.encrypted_content",
|
|
703
|
+
"^llm\\.output_messages\\.[^.]+\\.message\\.contents\\.[^.]+\\.message_content\\.encrypted_content(?:\\..+)?$",
|
|
704
|
+
"drop",
|
|
705
|
+
),
|
|
706
|
+
ContentKey(
|
|
707
|
+
"llm.output_messages.*.message.contents.*.message_content.image.image.url",
|
|
708
|
+
"^llm\\.output_messages\\.[^.]+\\.message\\.contents\\.[^.]+\\.message_content\\.image\\.image\\.url(?:\\..+)?$",
|
|
709
|
+
"drop",
|
|
710
|
+
),
|
|
711
|
+
ContentKey(
|
|
712
|
+
"llm.output_messages.*.message.contents.*.message_content.audio.audio.url",
|
|
713
|
+
"^llm\\.output_messages\\.[^.]+\\.message\\.contents\\.[^.]+\\.message_content\\.audio\\.audio\\.url(?:\\..+)?$",
|
|
714
|
+
"drop",
|
|
715
|
+
),
|
|
716
|
+
ContentKey(
|
|
717
|
+
"llm.output_messages.*.message.contents.*.message_content.audio.audio.transcript",
|
|
718
|
+
"^llm\\.output_messages\\.[^.]+\\.message\\.contents\\.[^.]+\\.message_content\\.audio\\.audio\\.transcript(?:\\..+)?$",
|
|
719
|
+
"drop",
|
|
720
|
+
),
|
|
721
|
+
ContentKey(
|
|
722
|
+
"llm.output_messages.*.message.contents.*.message_content.video.video.url",
|
|
723
|
+
"^llm\\.output_messages\\.[^.]+\\.message\\.contents\\.[^.]+\\.message_content\\.video\\.video\\.url(?:\\..+)?$",
|
|
724
|
+
"drop",
|
|
725
|
+
),
|
|
726
|
+
ContentKey(
|
|
727
|
+
"llm.output_messages.*.message.contents.*.message_content.document.document.content",
|
|
728
|
+
"^llm\\.output_messages\\.[^.]+\\.message\\.contents\\.[^.]+\\.message_content\\.document\\.document\\.content(?:\\..+)?$",
|
|
729
|
+
"drop",
|
|
730
|
+
),
|
|
731
|
+
ContentKey(
|
|
732
|
+
"llm.output_messages.*.message.contents.*.message_content.document.document.url",
|
|
733
|
+
"^llm\\.output_messages\\.[^.]+\\.message\\.contents\\.[^.]+\\.message_content\\.document\\.document\\.url(?:\\..+)?$",
|
|
734
|
+
"drop",
|
|
735
|
+
),
|
|
736
|
+
ContentKey(
|
|
737
|
+
"llm.output_messages.*.message.tool_calls.*.tool_call.function.arguments",
|
|
738
|
+
"^llm\\.output_messages\\.[^.]+\\.message\\.tool_calls\\.[^.]+\\.tool_call\\.function\\.arguments(?:\\..+)?$",
|
|
739
|
+
"drop",
|
|
740
|
+
),
|
|
741
|
+
ContentKey(
|
|
742
|
+
"llm.output_messages.*.message.function_call_arguments_json",
|
|
743
|
+
"^llm\\.output_messages\\.[^.]+\\.message\\.function_call_arguments_json(?:\\..+)?$",
|
|
744
|
+
"drop",
|
|
745
|
+
),
|
|
746
|
+
ContentKey("llm.function_call", "^llm\\.function_call(?:\\..+)?$", "drop"),
|
|
747
|
+
ContentKey("llm.prompts", "^llm\\.prompts(?:\\..+)?$", "drop"),
|
|
748
|
+
ContentKey("llm.choices", "^llm\\.choices(?:\\..+)?$", "drop"),
|
|
749
|
+
ContentKey(
|
|
750
|
+
"llm.prompt_template.template",
|
|
751
|
+
"^llm\\.prompt_template\\.template(?:\\..+)?$",
|
|
752
|
+
"drop",
|
|
753
|
+
),
|
|
754
|
+
ContentKey(
|
|
755
|
+
"llm.prompt_template.variables",
|
|
756
|
+
"^llm\\.prompt_template\\.variables(?:\\..+)?$",
|
|
757
|
+
"drop",
|
|
758
|
+
),
|
|
759
|
+
ContentKey(
|
|
760
|
+
"retrieval.documents.*.document.content",
|
|
761
|
+
"^retrieval\\.documents\\.[^.]+\\.document\\.content(?:\\..+)?$",
|
|
762
|
+
"drop",
|
|
763
|
+
),
|
|
764
|
+
ContentKey(
|
|
765
|
+
"retrieval.documents.*.document.url",
|
|
766
|
+
"^retrieval\\.documents\\.[^.]+\\.document\\.url(?:\\..+)?$",
|
|
767
|
+
"drop",
|
|
768
|
+
),
|
|
769
|
+
ContentKey("reranker.query", "^reranker\\.query(?:\\..+)?$", "drop"),
|
|
770
|
+
ContentKey(
|
|
771
|
+
"reranker.input_documents.*.document.content",
|
|
772
|
+
"^reranker\\.input_documents\\.[^.]+\\.document\\.content(?:\\..+)?$",
|
|
773
|
+
"drop",
|
|
774
|
+
),
|
|
775
|
+
ContentKey(
|
|
776
|
+
"reranker.input_documents.*.document.url",
|
|
777
|
+
"^reranker\\.input_documents\\.[^.]+\\.document\\.url(?:\\..+)?$",
|
|
778
|
+
"drop",
|
|
779
|
+
),
|
|
780
|
+
ContentKey(
|
|
781
|
+
"reranker.output_documents.*.document.content",
|
|
782
|
+
"^reranker\\.output_documents\\.[^.]+\\.document\\.content(?:\\..+)?$",
|
|
783
|
+
"drop",
|
|
784
|
+
),
|
|
785
|
+
ContentKey(
|
|
786
|
+
"reranker.output_documents.*.document.url",
|
|
787
|
+
"^reranker\\.output_documents\\.[^.]+\\.document\\.url(?:\\..+)?$",
|
|
788
|
+
"drop",
|
|
789
|
+
),
|
|
790
|
+
ContentKey(
|
|
791
|
+
"embedding.embeddings.*.embedding.text",
|
|
792
|
+
"^embedding\\.embeddings\\.[^.]+\\.embedding\\.text(?:\\..+)?$",
|
|
793
|
+
"drop",
|
|
794
|
+
),
|
|
795
|
+
ContentKey(
|
|
796
|
+
"embedding.embeddings.*.embedding.vector",
|
|
797
|
+
"^embedding\\.embeddings\\.[^.]+\\.embedding\\.vector(?:\\..+)?$",
|
|
798
|
+
"drop",
|
|
799
|
+
),
|
|
800
|
+
ContentKey(
|
|
801
|
+
"annotations.*.annotation.explanation",
|
|
802
|
+
"^annotations\\.[^.]+\\.annotation\\.explanation(?:\\..+)?$",
|
|
803
|
+
"drop",
|
|
804
|
+
),
|
|
805
|
+
ContentKey(
|
|
806
|
+
"evaluations.*.evaluation.explanation",
|
|
807
|
+
"^evaluations\\.[^.]+\\.evaluation\\.explanation(?:\\..+)?$",
|
|
808
|
+
"drop",
|
|
809
|
+
),
|
|
810
|
+
ContentKey(
|
|
811
|
+
"trace.annotations.*.annotation.explanation",
|
|
812
|
+
"^trace\\.annotations\\.[^.]+\\.annotation\\.explanation(?:\\..+)?$",
|
|
813
|
+
"drop",
|
|
814
|
+
),
|
|
815
|
+
ContentKey(
|
|
816
|
+
"trace.evaluations.*.evaluation.explanation",
|
|
817
|
+
"^trace\\.evaluations\\.[^.]+\\.evaluation\\.explanation(?:\\..+)?$",
|
|
818
|
+
"drop",
|
|
819
|
+
),
|
|
820
|
+
ContentKey(
|
|
821
|
+
"session.annotations.*.annotation.explanation",
|
|
822
|
+
"^session\\.annotations\\.[^.]+\\.annotation\\.explanation(?:\\..+)?$",
|
|
823
|
+
"drop",
|
|
824
|
+
),
|
|
825
|
+
ContentKey(
|
|
826
|
+
"session.evaluations.*.evaluation.explanation",
|
|
827
|
+
"^session\\.evaluations\\.[^.]+\\.evaluation\\.explanation(?:\\..+)?$",
|
|
828
|
+
"drop",
|
|
829
|
+
),
|
|
830
|
+
ContentKey("metadata", "^metadata(?:\\..+)?$", "filter"),
|
|
831
|
+
ContentKey(
|
|
832
|
+
"input.documents.*.document.metadata",
|
|
833
|
+
"^input\\.documents\\.[^.]+\\.document\\.metadata(?:\\..+)?$",
|
|
834
|
+
"filter",
|
|
835
|
+
),
|
|
836
|
+
ContentKey(
|
|
837
|
+
"output.documents.*.document.metadata",
|
|
838
|
+
"^output\\.documents\\.[^.]+\\.document\\.metadata(?:\\..+)?$",
|
|
839
|
+
"filter",
|
|
840
|
+
),
|
|
841
|
+
ContentKey(
|
|
842
|
+
"retrieval.documents.*.document.metadata",
|
|
843
|
+
"^retrieval\\.documents\\.[^.]+\\.document\\.metadata(?:\\..+)?$",
|
|
844
|
+
"filter",
|
|
845
|
+
),
|
|
846
|
+
ContentKey(
|
|
847
|
+
"reranker.input_documents.*.document.metadata",
|
|
848
|
+
"^reranker\\.input_documents\\.[^.]+\\.document\\.metadata(?:\\..+)?$",
|
|
849
|
+
"filter",
|
|
850
|
+
),
|
|
851
|
+
ContentKey(
|
|
852
|
+
"reranker.output_documents.*.document.metadata",
|
|
853
|
+
"^reranker\\.output_documents\\.[^.]+\\.document\\.metadata(?:\\..+)?$",
|
|
854
|
+
"filter",
|
|
855
|
+
),
|
|
856
|
+
),
|
|
857
|
+
),
|
|
858
|
+
Dialect(
|
|
859
|
+
name="openllmetry",
|
|
860
|
+
version="0.5.2",
|
|
861
|
+
spec="https://github.com/traceloop/openllmetry/tree/009f13fff4fe706c9f8d0654309758275387a782/packages/opentelemetry-semantic-conventions-ai",
|
|
862
|
+
content=(
|
|
863
|
+
ContentKey("traceloop.entity.input", "^traceloop\\.entity\\.input(?:\\..+)?$", "drop"),
|
|
864
|
+
ContentKey(
|
|
865
|
+
"traceloop.entity.output", "^traceloop\\.entity\\.output(?:\\..+)?$", "drop"
|
|
866
|
+
),
|
|
867
|
+
ContentKey(
|
|
868
|
+
"traceloop.prompt.template", "^traceloop\\.prompt\\.template(?:\\..+)?$", "drop"
|
|
869
|
+
),
|
|
870
|
+
ContentKey(
|
|
871
|
+
"traceloop.prompt.template_variables",
|
|
872
|
+
"^traceloop\\.prompt\\.template_variables(?:\\..+)?$",
|
|
873
|
+
"drop",
|
|
874
|
+
),
|
|
875
|
+
ContentKey("gen_ai.task.input", "^gen_ai\\.task\\.input(?:\\..+)?$", "drop"),
|
|
876
|
+
ContentKey("gen_ai.task.output", "^gen_ai\\.task\\.output(?:\\..+)?$", "drop"),
|
|
877
|
+
ContentKey("gen_ai.prompt", "^gen_ai\\.prompt(?:\\..+)?$", "drop"),
|
|
878
|
+
ContentKey("gen_ai.completion", "^gen_ai\\.completion(?:\\..+)?$", "drop"),
|
|
879
|
+
ContentKey("gen_ai.input.messages", "^gen_ai\\.input\\.messages(?:\\..+)?$", "drop"),
|
|
880
|
+
ContentKey("gen_ai.output.messages", "^gen_ai\\.output\\.messages(?:\\..+)?$", "drop"),
|
|
881
|
+
ContentKey(
|
|
882
|
+
"gen_ai.system_instructions", "^gen_ai\\.system_instructions(?:\\..+)?$", "drop"
|
|
883
|
+
),
|
|
884
|
+
ContentKey(
|
|
885
|
+
"gen_ai.content.completion.chunk",
|
|
886
|
+
"^gen_ai\\.content\\.completion\\.chunk(?:\\..+)?$",
|
|
887
|
+
"drop",
|
|
888
|
+
),
|
|
889
|
+
ContentKey(
|
|
890
|
+
"llm.content.completion.chunk",
|
|
891
|
+
"^llm\\.content\\.completion\\.chunk(?:\\..+)?$",
|
|
892
|
+
"drop",
|
|
893
|
+
),
|
|
894
|
+
ContentKey("mcp.request.argument", "^mcp\\.request\\.argument(?:\\..+)?$", "drop"),
|
|
895
|
+
ContentKey("mcp.response.value", "^mcp\\.response\\.value(?:\\..+)?$", "drop"),
|
|
896
|
+
ContentKey("db.marqo.search.query", "^db\\.marqo\\.search\\.query(?:\\..+)?$", "drop"),
|
|
897
|
+
ContentKey("pinecone.query.queries", "^pinecone\\.query\\.queries(?:\\..+)?$", "drop"),
|
|
898
|
+
ContentKey(
|
|
899
|
+
"db.query.result.document", "^db\\.query\\.result\\.document(?:\\..+)?$", "drop"
|
|
900
|
+
),
|
|
901
|
+
ContentKey(
|
|
902
|
+
"db.search.result.entity", "^db\\.search\\.result\\.entity(?:\\..+)?$", "drop"
|
|
903
|
+
),
|
|
904
|
+
ContentKey(
|
|
905
|
+
"db.query.embeddings.vector", "^db\\.query\\.embeddings\\.vector(?:\\..+)?$", "drop"
|
|
906
|
+
),
|
|
907
|
+
ContentKey(
|
|
908
|
+
"db.search.embeddings.vector",
|
|
909
|
+
"^db\\.search\\.embeddings\\.vector(?:\\..+)?$",
|
|
910
|
+
"drop",
|
|
911
|
+
),
|
|
912
|
+
ContentKey(
|
|
913
|
+
"db.query.result.vector", "^db\\.query\\.result\\.vector(?:\\..+)?$", "drop"
|
|
914
|
+
),
|
|
915
|
+
ContentKey("pinecone.query.filter", "^pinecone\\.query\\.filter(?:\\..+)?$", "drop"),
|
|
916
|
+
ContentKey(
|
|
917
|
+
"db.chroma.delete.where", "^db\\.chroma\\.delete\\.where(?:\\..+)?$", "drop"
|
|
918
|
+
),
|
|
919
|
+
ContentKey("db.chroma.get.where", "^db\\.chroma\\.get\\.where(?:\\..+)?$", "drop"),
|
|
920
|
+
ContentKey("db.chroma.query.where", "^db\\.chroma\\.query\\.where(?:\\..+)?$", "drop"),
|
|
921
|
+
ContentKey(
|
|
922
|
+
"db.chroma.delete.where_document",
|
|
923
|
+
"^db\\.chroma\\.delete\\.where_document(?:\\..+)?$",
|
|
924
|
+
"drop",
|
|
925
|
+
),
|
|
926
|
+
ContentKey(
|
|
927
|
+
"db.chroma.get.where_document",
|
|
928
|
+
"^db\\.chroma\\.get\\.where_document(?:\\..+)?$",
|
|
929
|
+
"drop",
|
|
930
|
+
),
|
|
931
|
+
ContentKey(
|
|
932
|
+
"db.chroma.query.where_document",
|
|
933
|
+
"^db\\.chroma\\.query\\.where_document(?:\\..+)?$",
|
|
934
|
+
"drop",
|
|
935
|
+
),
|
|
936
|
+
ContentKey(
|
|
937
|
+
"db.milvus.delete.filter", "^db\\.milvus\\.delete\\.filter(?:\\..+)?$", "drop"
|
|
938
|
+
),
|
|
939
|
+
ContentKey(
|
|
940
|
+
"db.milvus.query.filter", "^db\\.milvus\\.query\\.filter(?:\\..+)?$", "drop"
|
|
941
|
+
),
|
|
942
|
+
ContentKey(
|
|
943
|
+
"db.milvus.search.filter", "^db\\.milvus\\.search\\.filter(?:\\..+)?$", "drop"
|
|
944
|
+
),
|
|
945
|
+
ContentKey(
|
|
946
|
+
"db.query.result.metadata", "^db\\.query\\.result\\.metadata(?:\\..+)?$", "filter"
|
|
947
|
+
),
|
|
948
|
+
ContentKey(
|
|
949
|
+
"traceloop.association.properties",
|
|
950
|
+
"^traceloop\\.association\\.properties(?:\\..+)?$",
|
|
951
|
+
"filter",
|
|
952
|
+
),
|
|
953
|
+
),
|
|
954
|
+
),
|
|
955
|
+
Dialect(
|
|
956
|
+
name="otel-core",
|
|
957
|
+
version="1.45.0",
|
|
958
|
+
spec="https://github.com/open-telemetry/semantic-conventions/blob/v1.45.0/docs/registry/attributes/exception.md",
|
|
959
|
+
content=(
|
|
960
|
+
ContentKey("exception.message", "^exception\\.message(?:\\..+)?$", "drop"),
|
|
961
|
+
ContentKey("exception.stacktrace", "^exception\\.stacktrace(?:\\..+)?$", "drop"),
|
|
962
|
+
ContentKey("db.query.text", "^db\\.query\\.text(?:\\..+)?$", "drop"),
|
|
963
|
+
ContentKey("db.statement", "^db\\.statement(?:\\..+)?$", "drop"),
|
|
964
|
+
),
|
|
965
|
+
),
|
|
966
|
+
Dialect(
|
|
967
|
+
name="otel-genai",
|
|
968
|
+
version="0.1.0",
|
|
969
|
+
spec="https://github.com/open-telemetry/semantic-conventions-genai/blob/v0.1.0/docs/registry/attributes/gen-ai.md",
|
|
970
|
+
content=(
|
|
971
|
+
ContentKey("gen_ai.input.messages", "^gen_ai\\.input\\.messages(?:\\..+)?$", "drop"),
|
|
972
|
+
ContentKey("gen_ai.output.messages", "^gen_ai\\.output\\.messages(?:\\..+)?$", "drop"),
|
|
973
|
+
ContentKey(
|
|
974
|
+
"gen_ai.system_instructions", "^gen_ai\\.system_instructions(?:\\..+)?$", "drop"
|
|
975
|
+
),
|
|
976
|
+
ContentKey(
|
|
977
|
+
"gen_ai.tool.call.arguments", "^gen_ai\\.tool\\.call\\.arguments(?:\\..+)?$", "drop"
|
|
978
|
+
),
|
|
979
|
+
ContentKey(
|
|
980
|
+
"gen_ai.tool.call.result", "^gen_ai\\.tool\\.call\\.result(?:\\..+)?$", "drop"
|
|
981
|
+
),
|
|
982
|
+
ContentKey(
|
|
983
|
+
"gen_ai.retrieval.documents", "^gen_ai\\.retrieval\\.documents(?:\\..+)?$", "drop"
|
|
984
|
+
),
|
|
985
|
+
ContentKey(
|
|
986
|
+
"gen_ai.retrieval.query.text",
|
|
987
|
+
"^gen_ai\\.retrieval\\.query\\.text(?:\\..+)?$",
|
|
988
|
+
"drop",
|
|
989
|
+
),
|
|
990
|
+
ContentKey(
|
|
991
|
+
"gen_ai.memory.query.text", "^gen_ai\\.memory\\.query\\.text(?:\\..+)?$", "drop"
|
|
992
|
+
),
|
|
993
|
+
ContentKey("gen_ai.memory.records", "^gen_ai\\.memory\\.records(?:\\..+)?$", "drop"),
|
|
994
|
+
ContentKey(
|
|
995
|
+
"gen_ai.prompt.variables", "^gen_ai\\.prompt\\.variables(?:\\..+)?$", "drop"
|
|
996
|
+
),
|
|
997
|
+
ContentKey(
|
|
998
|
+
"gen_ai.evaluation.explanation",
|
|
999
|
+
"^gen_ai\\.evaluation\\.explanation(?:\\..+)?$",
|
|
1000
|
+
"drop",
|
|
1001
|
+
),
|
|
1002
|
+
ContentKey("gen_ai.prompt", "^gen_ai\\.prompt(?:\\..+)?$", "drop"),
|
|
1003
|
+
ContentKey("gen_ai.completion", "^gen_ai\\.completion(?:\\..+)?$", "drop"),
|
|
1004
|
+
),
|
|
1005
|
+
),
|
|
1006
|
+
)
|
|
1007
|
+
|
|
1008
|
+
# Keys of a `filter` entry's JSON value that survive: ours and external C1 keys.
|
|
1009
|
+
FILTER_ALLOWED_KEYS: Final[tuple[str, ...]] = (
|
|
1010
|
+
"ctxflow.action.params_hash",
|
|
1011
|
+
"ctxflow.action.status",
|
|
1012
|
+
"ctxflow.action.target",
|
|
1013
|
+
"ctxflow.agent.backend",
|
|
1014
|
+
"ctxflow.agent.events_invalid",
|
|
1015
|
+
"ctxflow.agent.id",
|
|
1016
|
+
"ctxflow.agent.propagated",
|
|
1017
|
+
"ctxflow.agent.tool_calls_seen",
|
|
1018
|
+
"ctxflow.chunker_version",
|
|
1019
|
+
"ctxflow.chunks.count",
|
|
1020
|
+
"ctxflow.chunks.text_hashes",
|
|
1021
|
+
"ctxflow.data.kind",
|
|
1022
|
+
"ctxflow.data.query_hash",
|
|
1023
|
+
"ctxflow.data.record_ids",
|
|
1024
|
+
"ctxflow.data.record_tags",
|
|
1025
|
+
"ctxflow.data.record_versions",
|
|
1026
|
+
"ctxflow.data.result_hash",
|
|
1027
|
+
"ctxflow.data.row_count",
|
|
1028
|
+
"ctxflow.data.source",
|
|
1029
|
+
"ctxflow.data.status",
|
|
1030
|
+
"ctxflow.data.truncated",
|
|
1031
|
+
"ctxflow.embed_model",
|
|
1032
|
+
"ctxflow.id_mode",
|
|
1033
|
+
"ctxflow.ingest.skip_reason",
|
|
1034
|
+
"ctxflow.ingest.skipped",
|
|
1035
|
+
"ctxflow.observe.config_version",
|
|
1036
|
+
"ctxflow.observe.etag",
|
|
1037
|
+
"ctxflow.observe.event_id",
|
|
1038
|
+
"ctxflow.observe.index",
|
|
1039
|
+
"ctxflow.observe.last_modified",
|
|
1040
|
+
"ctxflow.observe.level",
|
|
1041
|
+
"ctxflow.observe.observed_at",
|
|
1042
|
+
"ctxflow.observe.op",
|
|
1043
|
+
"ctxflow.observe.poll_interval_s",
|
|
1044
|
+
"ctxflow.observe.resync",
|
|
1045
|
+
"ctxflow.observe.since",
|
|
1046
|
+
"ctxflow.observe.size",
|
|
1047
|
+
"ctxflow.observe.source",
|
|
1048
|
+
"ctxflow.observe.text_hash",
|
|
1049
|
+
"ctxflow.observe.version",
|
|
1050
|
+
"ctxflow.parse.chars",
|
|
1051
|
+
"ctxflow.reingest",
|
|
1052
|
+
"ctxflow.retrieval.item_hashes",
|
|
1053
|
+
"ctxflow.retrieval.item_verifiable",
|
|
1054
|
+
"ctxflow.retrieval.tool",
|
|
1055
|
+
"ctxflow.semconv.version",
|
|
1056
|
+
"ctxflow.source_hash",
|
|
1057
|
+
"ctxflow.source_id",
|
|
1058
|
+
"ctxflow.source_version",
|
|
1059
|
+
"ctxflow.tool.status",
|
|
1060
|
+
"ctxflow.turn",
|
|
1061
|
+
"ctxflow.usage.complete",
|
|
1062
|
+
"ctxflow.usage.expected_retrievals",
|
|
1063
|
+
"ctxflow.usage.found_retrievals",
|
|
1064
|
+
"ctxflow.usage.method",
|
|
1065
|
+
"ctxflow.usage.record_ids",
|
|
1066
|
+
"ctxflow.usage.scores",
|
|
1067
|
+
"ctxflow.usage.stale_records",
|
|
1068
|
+
"ctxflow.usage.threshold",
|
|
1069
|
+
"ctxflow.usage.unknown_records",
|
|
1070
|
+
"ctxflow.usage.used_record_ids",
|
|
1071
|
+
)
|
|
1072
|
+
FILTER_ALLOWED_KEY_PATTERNS: Final[tuple[str, ...]] = ()
|