Skip to main content

Semantic Conventions

All telemetry attributes follow standardized naming conventions.

lakeFS Attributes

Semantic conventions for lakeFS versioning and file access tracking.

Commit-level

ConstantValueDescription
LAKEFS_COMMIT_SHAlakefs.commit.shaCommit SHA hash
LAKEFS_COMMIT_BRANCHlakefs.commit.branchBranch name at commit time
LAKEFS_COMMIT_TIMESTAMPlakefs.commit.timestampCommit timestamp
LAKEFS_COMMIT_MESSAGElakefs.commit.messageCommit message
LAKEFS_COMMIT_AUTHORlakefs.commit.authorCommit author

Repository / workstream

ConstantValueDescription
LAKEFS_REPOSITORYlakefs.repositoryRepository name
LAKEFS_BRANCHlakefs.branchActive branch
LAKEFS_ENGAGEMENT_IDlakefs.engagement_idEngagement identifier
LAKEFS_WORKSTREAM_IDlakefs.workstream_idWorkstream identifier

File-level

ConstantValueDescription
LAKEFS_FILE_PATHlakefs.file.pathObject path
LAKEFS_FILE_SIZElakefs.file.sizeFile size in bytes
LAKEFS_FILE_MODIFIEDlakefs.file.modifiedLast modified timestamp
LAKEFS_FILE_HASHlakefs.file.hashContent hash
LAKEFS_FILE_CONTENT_TYPElakefs.file.content_typeMIME type

Artifact / operation

ConstantValueDescription
LAKEFS_ARTIFACT_PREFIXlakefs.artifact.Prefix for artifact attributes
LAKEFS_OPERATIONlakefs.operationOperation type (read, write, list)
LAKEFS_ACCESS_TIMElakefs.access.timestampAccess timestamp

Workflow Attributes

Semantic conventions for multi-agent workflow correlation.

Workflow-level

ConstantValueDescription
WORKFLOW_IDworkflow.idUnique workflow identifier
WORKFLOW_NAMEworkflow.nameWorkflow name
WORKFLOW_STARTED_ATworkflow.started_atStart timestamp
WORKFLOW_COMPLETED_ATworkflow.completed_atCompletion timestamp
WORKFLOW_STATUSworkflow.statusCurrent status
WORKFLOW_AGENT_COUNTworkflow.agent_countNumber of agents
WORKFLOW_AGENT_CHAINworkflow.agent_chainOrdered agent chain

Agent-level

ConstantValueDescription
AGENT_WORKFLOW_IDagent.workflow_idParent workflow ID
AGENT_PARENT_IDagent.parent_idParent agent ID
AGENT_POSITION_IN_CHAINagent.positionPosition in execution chain

Correlation

ConstantValueDescription
TRACE_IDtrace.idDistributed trace ID
PARENT_SPAN_IDparent.span_idParent span ID

RAG Attributes

Semantic conventions for RAG component versioning and retrieval tracking.

Document versioning

ConstantValueDescription
RAG_DOCUMENT_IDrag.document.idDocument identifier
RAG_DOCUMENT_VERSIONrag.document.versionDocument version
RAG_DOCUMENT_PATHrag.document.pathDocument path
RAG_DOCUMENT_HASHrag.document.hashContent hash
RAG_DOCUMENT_UPDATED_ATrag.document.updated_atLast update timestamp

Embedding versioning

ConstantValueDescription
RAG_EMBEDDING_MODELrag.embedding.modelModel name
RAG_EMBEDDING_MODEL_VERSIONrag.embedding.model.versionModel version
RAG_EMBEDDING_DIMENSIONSrag.embedding.dimensionsVector dimensions
RAG_EMBEDDING_CREATED_ATrag.embedding.created_atCreation timestamp
RAG_EMBEDDING_BATCH_IDrag.embedding.batch_idBatch identifier

Vector index versioning

ConstantValueDescription
RAG_INDEX_NAMErag.index.nameIndex name
RAG_INDEX_VERSIONrag.index.versionIndex version
RAG_INDEX_SIZErag.index.sizeIndex size
RAG_INDEX_UPDATED_ATrag.index.updated_atLast update timestamp

Retrieval provenance

ConstantValueDescription
RAG_QUERY_TEXTrag.query.textQuery text
RAG_QUERY_EMBEDDING_MODELrag.query.embedding.modelQuery embedding model
RAG_TOP_Krag.retrieval.top_kTop-k parameter
RAG_SIMILARITY_THRESHOLDrag.retrieval.similarity_thresholdSimilarity threshold
RAG_RETRIEVED_COUNTrag.retrieval.countNumber of results retrieved

Retrieved document tracking

ConstantValueDescription
RAG_RESULT_DOCUMENT_IDrag.result.document.idResult document ID
RAG_RESULT_SCORErag.result.scoreSimilarity score
RAG_RESULT_RANKrag.result.rankResult rank
RAG_RESULT_DOCUMENT_VERSIONrag.result.document.versionResult document version

Version drift detection

ConstantValueDescription
RAG_VERSION_DRIFTrag.version.driftDrift detected flag
RAG_VERSION_DRIFT_REASONrag.version.drift.reasonDrift reason

External Data Attributes

Semantic conventions for external data source versioning and tracking.

API versioning

ConstantValueDescription
EXTERNAL_API_NAMEexternal.api.nameAPI name
EXTERNAL_API_VERSIONexternal.api.versionAPI version
EXTERNAL_API_ENDPOINTexternal.api.endpointEndpoint URL
EXTERNAL_API_METHODexternal.api.methodHTTP method
EXTERNAL_API_STATUS_CODEexternal.api.status_codeResponse status code

Data versioning

ConstantValueDescription
EXTERNAL_DATA_SOURCEexternal.data.sourceData source name
EXTERNAL_DATA_TIMESTAMPexternal.data.timestampData timestamp
EXTERNAL_DATA_HASHexternal.data.hashData hash
EXTERNAL_DATA_SIZEexternal.data.sizeData size
EXTERNAL_DATA_RECORD_COUNTexternal.data.record_countRecord count

ETL job tracking

ConstantValueDescription
EXTERNAL_ETL_JOB_IDexternal.etl.job_idETL job ID
EXTERNAL_ETL_RUN_IDexternal.etl.run_idETL run ID
EXTERNAL_ETL_PIPELINEexternal.etl.pipelinePipeline name

Database query tracking

ConstantValueDescription
EXTERNAL_DB_SYSTEMexternal.db.systemDatabase system
EXTERNAL_DB_NAMEexternal.db.nameDatabase name
EXTERNAL_DB_QUERYexternal.db.queryQuery string
EXTERNAL_DB_QUERY_HASHexternal.db.query_hashQuery hash
EXTERNAL_DB_RESULT_COUNTexternal.db.result_countResult count

Cache tracking

ConstantValueDescription
EXTERNAL_CACHE_KEYexternal.cache.keyCache key
EXTERNAL_CACHE_HITexternal.cache.hitCache hit flag
EXTERNAL_CACHE_TTLexternal.cache.ttlTTL in seconds

Snapshot metadata

ConstantValueDescription
EXTERNAL_SNAPSHOT_IDexternal.snapshot.idSnapshot identifier
EXTERNAL_SNAPSHOT_TIMESTAMPexternal.snapshot.timestampSnapshot timestamp
EXTERNAL_SNAPSHOT_LOCATIONexternal.snapshot.locationStorage location

Validation Attributes

Semantic conventions for prompt-knowledge validation.

Validation status

ConstantValueDescription
VALIDATION_STATUSvalidation.statusOverall validation status
VALIDATION_MODEvalidation.modeValidation mode
VALIDATION_LAYERvalidation.layerValidation layer

Reference tracking

ConstantValueDescription
VALIDATION_REFERENCE_COUNTvalidation.reference.countNumber of references
VALIDATION_REFERENCE_EXTRACTEDvalidation.reference.extractedExtracted references
VALIDATION_REFERENCE_TYPEvalidation.reference.typeReference type

Error tracking

ConstantValueDescription
VALIDATION_ERROR_COUNTvalidation.error.countError count
VALIDATION_ERROR_CODEvalidation.error.codeError code
VALIDATION_ERROR_MESSAGEvalidation.error.messageError message
VALIDATION_ERROR_REFERENCEvalidation.error.referenceError reference
VALIDATION_ERROR_SEVERITYvalidation.error.severityError severity

Resolution details

ConstantValueDescription
VALIDATION_RESOLUTION_TIME_MSvalidation.resolution.time_msResolution time in ms
VALIDATION_LAKEFS_COMMITvalidation.lakefs.commitSource commit SHA
VALIDATION_LAKEFS_BRANCHvalidation.lakefs.branchSource branch

Semantic validation

ConstantValueDescription
VALIDATION_SEMANTIC_ENABLEDvalidation.semantic.enabledSemantic check enabled
VALIDATION_SEMANTIC_MODELvalidation.semantic.modelModel used
VALIDATION_SEMANTIC_CONFIDENCEvalidation.semantic.confidenceConfidence score

Remediation

ConstantValueDescription
VALIDATION_REMEDIATION_SUGGESTIONvalidation.remediation.suggestionRemediation suggestion

Usage

Import semantic conventions to use standardized attribute names:

from briefcase.semantic_conventions import lakefs

# Use attributes in spans
span.set_attribute(lakefs.LAKEFS_COMMIT_SHA, commit_sha)
span.set_attribute(lakefs.LAKEFS_FILE_PATH, file_path)
from briefcase.semantic_conventions import rag

# Track RAG retrieval
span.set_attribute(rag.RAG_DOCUMENT_ID, doc_id)
span.set_attribute(rag.RAG_RESULT_SCORE, 0.95)

This ensures consistency across your telemetry data.