Skip to content
GitHubLog inStart free
cetra is not released yet. These docs describe the development version.

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.

Terminal window
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.

Cognee’s tracing is off by default. Turn it on and point the OTLP endpoint at cetra’s OTLP/HTTP port:

Terminal window
export COGNEE_TRACING_ENABLED=true
export OTEL_EXPORTER_OTLP_ENDPOINT=http://<HOST>:4318
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer sk-cetra-…"
export OTEL_SERVICE_NAME=cognee

Use 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.

Observed in the run for this page, which covered add and the start of cognify:

  • an llm span named cognee.observe.acreate_structured_output for each structured-output model call, with the model name and the payload as its input; Cognee redacts secrets from the payload;
  • an embedding span named cognee.observe.embed_text for each embedding call, with the model and the vector width;
  • spans for the pipelines around them: memory.store, the cognee.pipeline.task.* steps of ingestion and graph extraction, and cognee.db.graph.query with the raw Cypher of each graph query.

No token counts come out of Cognee, so no span carries a cost.

  • 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. add and search were 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=false for 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.