Content keys
These maps list, per convention, the keys that carry content: prompts, completions, messages, document text, tool arguments and results, exceptions. They decide what the core stores apart as text (and drops when the project’s Store text is off).
Generated from the registry of ctxflow-semconv 0.2.2.
Kinds. drop: the whole value is content. filter: user JSON (for example document.metadata) that can hold text and also C1 keys: with Store text off, the core accepts only the allowed ctxflow.* keys with scalar values.
Patterns. Dotted segments; * is exactly one segment (a list index or a name). A key matches when it equals the pattern or continues it with more segments (gen_ai.input.messages also covers gen_ai.input.messages.0.content). Case-sensitive. Over-matching is on purpose: a key missed would keep text that should be split off.
OpenInference
Section titled “OpenInference”Pinned convention version 0.1.46 (specification).
| Key pattern | Kind | What it holds |
|---|---|---|
input.value | drop | Input of any span, usually the user question or tool arguments. |
output.value | drop | Output of any span. |
input.documents.*.document.content | drop | Text of a document passed to a span as input. |
input.documents.*.document.url | drop | URL of an input file document; can be a base64 data URI. |
output.documents.*.document.content | drop | Text of a document returned by a span. |
output.documents.*.document.url | drop | URL of an output file document; can be a base64 data URI. |
input.images.*.image.url | drop | Input image link or base64 data URI. |
output.images.*.image.url | drop | Output image link or base64 data URI. |
llm.input_messages.*.message.content | drop | Text of an input message. |
llm.input_messages.*.message.contents.*.message_content.text | drop | Text part of an input message, visible reasoning included. |
llm.input_messages.*.message.contents.*.message_content.data | drop | Opaque vendor data of an input message part (e.g. Anthropic redacted thinking). |
llm.input_messages.*.message.contents.*.message_content.encrypted_content | drop | Encrypted reasoning content of an input message part (OpenAI). |
llm.input_messages.*.message.contents.*.message_content.image.image.url | drop | Image part of an input message, link or base64 data URI. |
llm.input_messages.*.message.contents.*.message_content.audio.audio.url | drop | Audio part of an input message, link or base64 data URI. |
llm.input_messages.*.message.contents.*.message_content.audio.audio.transcript | drop | Transcript of an audio part of an input message. |
llm.input_messages.*.message.contents.*.message_content.video.video.url | drop | Video part of an input message, link or base64 data URI. |
llm.input_messages.*.message.contents.*.message_content.document.document.content | drop | Inline text document in an input message. |
llm.input_messages.*.message.contents.*.message_content.document.document.url | drop | File document in an input message, link or base64 data URI. |
llm.input_messages.*.message.tool_calls.*.tool_call.function.arguments | drop | Tool call arguments (JSON) of an input message. |
llm.input_messages.*.message.function_call_arguments_json | drop | Deprecated: not produced by the current SDKs and collector. |
llm.output_messages.*.message.content | drop | Text of an output message. |
llm.output_messages.*.message.contents.*.message_content.text | drop | Text part of an output message, visible reasoning included. |
llm.output_messages.*.message.contents.*.message_content.data | drop | Opaque vendor data of an output message part (e.g. Anthropic redacted thinking). |
llm.output_messages.*.message.contents.*.message_content.encrypted_content | drop | Encrypted reasoning content of an output message part (OpenAI). |
llm.output_messages.*.message.contents.*.message_content.image.image.url | drop | Image part of an output message, link or base64 data URI. |
llm.output_messages.*.message.contents.*.message_content.audio.audio.url | drop | Audio part of an output message, link or base64 data URI. |
llm.output_messages.*.message.contents.*.message_content.audio.audio.transcript | drop | Transcript of an audio part of an output message. |
llm.output_messages.*.message.contents.*.message_content.video.video.url | drop | Video part of an output message, link or base64 data URI. |
llm.output_messages.*.message.contents.*.message_content.document.document.content | drop | Inline text document in an output message. |
llm.output_messages.*.message.contents.*.message_content.document.document.url | drop | File document in an output message, link or base64 data URI. |
llm.output_messages.*.message.tool_calls.*.tool_call.function.arguments | drop | Tool call arguments (JSON) of an output message. |
llm.output_messages.*.message.function_call_arguments_json | drop | Deprecated: not produced by the current SDKs and collector. |
llm.function_call | drop | Deprecated: not produced by the current SDKs and collector. |
llm.prompts | drop | Prompts of a completions API request; flattened (.<i>.prompt.text) or one string-array key. |
llm.choices | drop | Choices returned by a completions API; flattened (.<i>.completion.text) or one string-array key. |
llm.prompt_template.template | drop | Prompt template text; can embed literal content. |
llm.prompt_template.variables | drop | Values applied to the prompt template (JSON). |
retrieval.documents.*.document.content | drop | Text of a retrieved document. |
retrieval.documents.*.document.url | drop | URL of a retrieved document; can be a base64 data URI of a whole file. |
reranker.query | drop | Query text of a reranker. |
reranker.input_documents.*.document.content | drop | Text of a document given to a reranker. |
reranker.input_documents.*.document.url | drop | URL of a document given to a reranker; can be a base64 data URI of a whole file. |
reranker.output_documents.*.document.content | drop | Text of a document returned by a reranker. |
reranker.output_documents.*.document.url | drop | URL of a document returned by a reranker; can be a base64 data URI of a whole file. |
embedding.embeddings.*.embedding.text | drop | Text that was embedded. |
embedding.embeddings.*.embedding.vector | drop | Embedding vector; it can be inverted to its text. |
annotations.*.annotation.explanation | drop | Free-text reason of a span-scoped annotation; it can quote the content. |
evaluations.*.evaluation.explanation | drop | Free-text reason of a span-scoped evaluation; it can quote the content. |
trace.annotations.*.annotation.explanation | drop | Free-text reason of a trace-scoped annotation; it can quote the content. |
trace.evaluations.*.evaluation.explanation | drop | Free-text reason of a trace-scoped evaluation; it can quote the content. |
session.annotations.*.annotation.explanation | drop | Free-text reason of a session-scoped annotation; it can quote the content. |
session.evaluations.*.evaluation.explanation | drop | Free-text reason of a session-scoped evaluation; it can quote the content. |
metadata | filter | Metadata of a span, user-defined JSON that can carry full text. |
input.documents.*.document.metadata | filter | Metadata of an input document. |
output.documents.*.document.metadata | filter | Metadata of an output document. |
retrieval.documents.*.document.metadata | filter | Metadata of a retrieved document. |
reranker.input_documents.*.document.metadata | filter | Metadata of a document given to a reranker. |
reranker.output_documents.*.document.metadata | filter | Metadata of a document returned by a reranker. |
OTel GenAI
Section titled “OTel GenAI”Pinned convention version 0.1.0 (specification).
| Key pattern | Kind | What it holds |
|---|---|---|
gen_ai.input.messages | drop | Chat history given to the model (structured, any type). |
gen_ai.output.messages | drop | Messages returned by the model (structured, any type). |
gen_ai.system_instructions | drop | System message or instructions given to the model. |
gen_ai.tool.call.arguments | drop | Arguments passed to a tool call. |
gen_ai.tool.call.result | drop | Result returned by a tool call. |
gen_ai.retrieval.documents | drop | Documents returned by a retrieval. |
gen_ai.retrieval.query.text | drop | Query text of a retrieval. |
gen_ai.memory.query.text | drop | Query text used to search memories. |
gen_ai.memory.records | drop | Memory records stored or retrieved. |
gen_ai.prompt.variables | drop | Values passed to a prompt template. |
gen_ai.evaluation.explanation | drop | Free-form explanation of an evaluator; it can quote the evaluated content. |
gen_ai.prompt | drop | Deprecated: not produced by the current SDKs and collector. |
gen_ai.completion | drop | Deprecated: not produced by the current SDKs and collector. |
OpenLLMetry
Section titled “OpenLLMetry”Pinned convention version 0.5.2 (specification).
| Key pattern | Kind | What it holds |
|---|---|---|
traceloop.entity.input | drop | Input of a workflow, task, agent or tool span (JSON). |
traceloop.entity.output | drop | Output of a workflow, task, agent or tool span (JSON). |
traceloop.prompt.template | drop | Prompt template text of a managed prompt. |
traceloop.prompt.template_variables | drop | Values applied to the prompt template. |
gen_ai.task.input | drop | Input of a GenAI task span. |
gen_ai.task.output | drop | Output of a GenAI task span. |
gen_ai.prompt | drop | Prompt messages of the legacy format (.<i>.content, .<i>.tool_calls.<j>.arguments); the prefix also covers .name and .version (accepted over-masking). |
gen_ai.completion | drop | Completions of the legacy format (.<i>.content, .refusal, .tool_calls.<j>.arguments, thinking text). |
gen_ai.input.messages | drop | Chat history, as the instrumentations on main emit it (OTel GenAI). |
gen_ai.output.messages | drop | Messages returned by the model, as the instrumentations on main emit them (OTel GenAI). |
gen_ai.system_instructions | drop | System instructions, as the instrumentations on main emit them (OTel GenAI). |
gen_ai.content.completion.chunk | drop | Streamed completion chunk. |
llm.content.completion.chunk | drop | Streamed completion chunk (name before 0.5.0). |
mcp.request.argument | drop | Arguments of an MCP request. |
mcp.response.value | drop | Value of an MCP response. |
db.marqo.search.query | drop | Query text of a Marqo search. |
pinecone.query.queries | drop | Query vectors or texts of a Pinecone query. |
db.query.result.document | drop | Document of a vector DB query result (event attribute). |
db.search.result.entity | drop | Entity (fields) of a vector DB search result (event attribute). |
db.query.embeddings.vector | drop | Query vector of a vector DB query (event attribute); it can be inverted to its text. |
db.search.embeddings.vector | drop | Query vector of a vector DB search (event attribute); it can be inverted to its text. |
db.query.result.vector | drop | Vector of a vector DB query result (event attribute); it can be inverted to its text. |
pinecone.query.filter | drop | Metadata filter of a Pinecone query; it can hold literal text. |
db.chroma.delete.where | drop | Metadata filter of a Chroma delete. |
db.chroma.get.where | drop | Metadata filter of a Chroma get. |
db.chroma.query.where | drop | Metadata filter of a Chroma query. |
db.chroma.delete.where_document | drop | Document text filter of a Chroma delete. |
db.chroma.get.where_document | drop | Document text filter of a Chroma get. |
db.chroma.query.where_document | drop | Document text filter of a Chroma query. |
db.milvus.delete.filter | drop | Filter expression of a Milvus delete; it can hold literal text. |
db.milvus.query.filter | drop | Filter expression of a Milvus query; it can hold literal text. |
db.milvus.search.filter | drop | Filter expression of a Milvus search; it can hold literal text. |
db.query.result.metadata | filter | Metadata of a vector DB query result (event attribute). |
traceloop.association.properties | filter | User-defined association properties of a span. |
OTel core
Section titled “OTel core”Pinned convention version 1.45.0 (specification).
| Key pattern | Kind | What it holds |
|---|---|---|
exception.message | drop | Exception message, may quote user data. |
exception.stacktrace | drop | Stack trace, may contain argument values and message text. |
db.query.text | drop | Database query text, may hold literal values (user data). |
db.statement | drop | Deprecated: not produced by the current SDKs and collector. |
Not covered
Section titled “Not covered”Span names, event names and attribute values are not inspected: content in a key that no map lists, or in a span name, is not removed. In Python, ctxflow_semconv.content_kind(key) answers "drop", "filter" or None for a key.