Cognee
cetra reads the spans Cognee’s tracing sends for its pipelines: memory storage, embedding, ingestion and graph extraction. This page points that export at cetra. It is setup only: the offline run for this page stopped at cognify, so no fixture backs it.
Install
Section titled “Install”pip install "cognee[tracing]"The tracing extra installs the OTLP exporter. Without it Cognee logs that the exporter package is not installed and sends nothing.
Set up
Section titled “Set up”Cognee’s tracing is off by default. Turn it on and point the OTLP endpoint at cetra’s OTLP/HTTP port:
export COGNEE_TRACING_ENABLED=trueexport OTEL_EXPORTER_OTLP_ENDPOINT=http://<HOST>:4318export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer sk-cetra-…"export OTEL_SERVICE_NAME=cogneeUse port 4318, or another endpoint Cognee’s exporter picker treats as HTTP (/api/public/otel, /api/v2/otlp, dynatrace.com, :443/). Any other endpoint makes Cognee try gRPC first, which fails silently against cetra’s HTTP port. OTEL_SERVICE_NAME defaults to cognee. Then run your usual cognee.add, cognify and search calls.
What you get
Section titled “What you get”Observed in the run for this page, which covered add and the start of cognify:
- an
llmspan namedcognee.observe.acreate_structured_outputfor each structured-output model call, with the model name and the payload as its input; Cognee redacts secrets from the payload; - an
embeddingspan namedcognee.observe.embed_textfor each embedding call, with the model and the vector width; spans for the pipelines around them:memory.store, thecognee.pipeline.task.*steps of ingestion and graph extraction, andcognee.db.graph.querywith the raw Cypher of each graph query.
No token counts come out of Cognee, so no span carries a cost.
Limits
Section titled “Limits”- Not run to completion:
cognify’s graph extraction asks the model for JSON it validates, and the run’s endpoint did not answer it, so every extraction call retried and failed.addandsearchwere not captured either. - Cognee writes no token counts, so cetra cannot compute a cost for its model calls.
- Cognee also sends its own debug logs as an OTLP logs signal to the same endpoint. cetra does not store logs and drops them.
- Input and output payloads are on by default, and the graph-query spans carry the raw Cypher. Set
COGNEE_TRACING_ENABLED=falsefor a run whose payloads must not leave the process. Only an explicit off works: unset, Cognee still turns tracing on by itself when Langfuse keys are set. - This page was written against cognee 1.6.8.
- Send OpenTelemetry: the endpoint and the headers cetra expects.
- Traces: read the trace as a tree and a timeline.