Skip to content

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.

Pinned convention version 0.1.46 (specification).

Key patternKindWhat it holds
input.valuedropInput of any span, usually the user question or tool arguments.
output.valuedropOutput of any span.
input.documents.*.document.contentdropText of a document passed to a span as input.
input.documents.*.document.urldropURL of an input file document; can be a base64 data URI.
output.documents.*.document.contentdropText of a document returned by a span.
output.documents.*.document.urldropURL of an output file document; can be a base64 data URI.
input.images.*.image.urldropInput image link or base64 data URI.
output.images.*.image.urldropOutput image link or base64 data URI.
llm.input_messages.*.message.contentdropText of an input message.
llm.input_messages.*.message.contents.*.message_content.textdropText part of an input message, visible reasoning included.
llm.input_messages.*.message.contents.*.message_content.datadropOpaque vendor data of an input message part (e.g. Anthropic redacted thinking).
llm.input_messages.*.message.contents.*.message_content.encrypted_contentdropEncrypted reasoning content of an input message part (OpenAI).
llm.input_messages.*.message.contents.*.message_content.image.image.urldropImage part of an input message, link or base64 data URI.
llm.input_messages.*.message.contents.*.message_content.audio.audio.urldropAudio part of an input message, link or base64 data URI.
llm.input_messages.*.message.contents.*.message_content.audio.audio.transcriptdropTranscript of an audio part of an input message.
llm.input_messages.*.message.contents.*.message_content.video.video.urldropVideo part of an input message, link or base64 data URI.
llm.input_messages.*.message.contents.*.message_content.document.document.contentdropInline text document in an input message.
llm.input_messages.*.message.contents.*.message_content.document.document.urldropFile document in an input message, link or base64 data URI.
llm.input_messages.*.message.tool_calls.*.tool_call.function.argumentsdropTool call arguments (JSON) of an input message.
llm.input_messages.*.message.function_call_arguments_jsondropDeprecated: not produced by the current SDKs and collector.
llm.output_messages.*.message.contentdropText of an output message.
llm.output_messages.*.message.contents.*.message_content.textdropText part of an output message, visible reasoning included.
llm.output_messages.*.message.contents.*.message_content.datadropOpaque vendor data of an output message part (e.g. Anthropic redacted thinking).
llm.output_messages.*.message.contents.*.message_content.encrypted_contentdropEncrypted reasoning content of an output message part (OpenAI).
llm.output_messages.*.message.contents.*.message_content.image.image.urldropImage part of an output message, link or base64 data URI.
llm.output_messages.*.message.contents.*.message_content.audio.audio.urldropAudio part of an output message, link or base64 data URI.
llm.output_messages.*.message.contents.*.message_content.audio.audio.transcriptdropTranscript of an audio part of an output message.
llm.output_messages.*.message.contents.*.message_content.video.video.urldropVideo part of an output message, link or base64 data URI.
llm.output_messages.*.message.contents.*.message_content.document.document.contentdropInline text document in an output message.
llm.output_messages.*.message.contents.*.message_content.document.document.urldropFile document in an output message, link or base64 data URI.
llm.output_messages.*.message.tool_calls.*.tool_call.function.argumentsdropTool call arguments (JSON) of an output message.
llm.output_messages.*.message.function_call_arguments_jsondropDeprecated: not produced by the current SDKs and collector.
llm.function_calldropDeprecated: not produced by the current SDKs and collector.
llm.promptsdropPrompts of a completions API request; flattened (.<i>.prompt.text) or one string-array key.
llm.choicesdropChoices returned by a completions API; flattened (.<i>.completion.text) or one string-array key.
llm.prompt_template.templatedropPrompt template text; can embed literal content.
llm.prompt_template.variablesdropValues applied to the prompt template (JSON).
retrieval.documents.*.document.contentdropText of a retrieved document.
retrieval.documents.*.document.urldropURL of a retrieved document; can be a base64 data URI of a whole file.
reranker.querydropQuery text of a reranker.
reranker.input_documents.*.document.contentdropText of a document given to a reranker.
reranker.input_documents.*.document.urldropURL of a document given to a reranker; can be a base64 data URI of a whole file.
reranker.output_documents.*.document.contentdropText of a document returned by a reranker.
reranker.output_documents.*.document.urldropURL of a document returned by a reranker; can be a base64 data URI of a whole file.
embedding.embeddings.*.embedding.textdropText that was embedded.
embedding.embeddings.*.embedding.vectordropEmbedding vector; it can be inverted to its text.
annotations.*.annotation.explanationdropFree-text reason of a span-scoped annotation; it can quote the content.
evaluations.*.evaluation.explanationdropFree-text reason of a span-scoped evaluation; it can quote the content.
trace.annotations.*.annotation.explanationdropFree-text reason of a trace-scoped annotation; it can quote the content.
trace.evaluations.*.evaluation.explanationdropFree-text reason of a trace-scoped evaluation; it can quote the content.
session.annotations.*.annotation.explanationdropFree-text reason of a session-scoped annotation; it can quote the content.
session.evaluations.*.evaluation.explanationdropFree-text reason of a session-scoped evaluation; it can quote the content.
metadatafilterMetadata of a span, user-defined JSON that can carry full text.
input.documents.*.document.metadatafilterMetadata of an input document.
output.documents.*.document.metadatafilterMetadata of an output document.
retrieval.documents.*.document.metadatafilterMetadata of a retrieved document.
reranker.input_documents.*.document.metadatafilterMetadata of a document given to a reranker.
reranker.output_documents.*.document.metadatafilterMetadata of a document returned by a reranker.

Pinned convention version 0.1.0 (specification).

Key patternKindWhat it holds
gen_ai.input.messagesdropChat history given to the model (structured, any type).
gen_ai.output.messagesdropMessages returned by the model (structured, any type).
gen_ai.system_instructionsdropSystem message or instructions given to the model.
gen_ai.tool.call.argumentsdropArguments passed to a tool call.
gen_ai.tool.call.resultdropResult returned by a tool call.
gen_ai.retrieval.documentsdropDocuments returned by a retrieval.
gen_ai.retrieval.query.textdropQuery text of a retrieval.
gen_ai.memory.query.textdropQuery text used to search memories.
gen_ai.memory.recordsdropMemory records stored or retrieved.
gen_ai.prompt.variablesdropValues passed to a prompt template.
gen_ai.evaluation.explanationdropFree-form explanation of an evaluator; it can quote the evaluated content.
gen_ai.promptdropDeprecated: not produced by the current SDKs and collector.
gen_ai.completiondropDeprecated: not produced by the current SDKs and collector.

Pinned convention version 0.5.2 (specification).

Key patternKindWhat it holds
traceloop.entity.inputdropInput of a workflow, task, agent or tool span (JSON).
traceloop.entity.outputdropOutput of a workflow, task, agent or tool span (JSON).
traceloop.prompt.templatedropPrompt template text of a managed prompt.
traceloop.prompt.template_variablesdropValues applied to the prompt template.
gen_ai.task.inputdropInput of a GenAI task span.
gen_ai.task.outputdropOutput of a GenAI task span.
gen_ai.promptdropPrompt messages of the legacy format (.<i>.content, .<i>.tool_calls.<j>.arguments); the prefix also covers .name and .version (accepted over-masking).
gen_ai.completiondropCompletions of the legacy format (.<i>.content, .refusal, .tool_calls.<j>.arguments, thinking text).
gen_ai.input.messagesdropChat history, as the instrumentations on main emit it (OTel GenAI).
gen_ai.output.messagesdropMessages returned by the model, as the instrumentations on main emit them (OTel GenAI).
gen_ai.system_instructionsdropSystem instructions, as the instrumentations on main emit them (OTel GenAI).
gen_ai.content.completion.chunkdropStreamed completion chunk.
llm.content.completion.chunkdropStreamed completion chunk (name before 0.5.0).
mcp.request.argumentdropArguments of an MCP request.
mcp.response.valuedropValue of an MCP response.
db.marqo.search.querydropQuery text of a Marqo search.
pinecone.query.queriesdropQuery vectors or texts of a Pinecone query.
db.query.result.documentdropDocument of a vector DB query result (event attribute).
db.search.result.entitydropEntity (fields) of a vector DB search result (event attribute).
db.query.embeddings.vectordropQuery vector of a vector DB query (event attribute); it can be inverted to its text.
db.search.embeddings.vectordropQuery vector of a vector DB search (event attribute); it can be inverted to its text.
db.query.result.vectordropVector of a vector DB query result (event attribute); it can be inverted to its text.
pinecone.query.filterdropMetadata filter of a Pinecone query; it can hold literal text.
db.chroma.delete.wheredropMetadata filter of a Chroma delete.
db.chroma.get.wheredropMetadata filter of a Chroma get.
db.chroma.query.wheredropMetadata filter of a Chroma query.
db.chroma.delete.where_documentdropDocument text filter of a Chroma delete.
db.chroma.get.where_documentdropDocument text filter of a Chroma get.
db.chroma.query.where_documentdropDocument text filter of a Chroma query.
db.milvus.delete.filterdropFilter expression of a Milvus delete; it can hold literal text.
db.milvus.query.filterdropFilter expression of a Milvus query; it can hold literal text.
db.milvus.search.filterdropFilter expression of a Milvus search; it can hold literal text.
db.query.result.metadatafilterMetadata of a vector DB query result (event attribute).
traceloop.association.propertiesfilterUser-defined association properties of a span.

Pinned convention version 1.45.0 (specification).

Key patternKindWhat it holds
exception.messagedropException message, may quote user data.
exception.stacktracedropStack trace, may contain argument values and message text.
db.query.textdropDatabase query text, may hold literal values (user data).
db.statementdropDeprecated: not produced by the current SDKs and collector.

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.