Repository navigation
docs(cognee): use the maintained native tracing adapter - #1044
Merged
Merged
Conversation
Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com> # Conflicts: # scripts/integrations.test.mjs
Co-Authored-By: Claude Code <noreply@anthropic.com>
Preserve the Cognee and main integration contracts while updating the maintained adapter to the published 0.1.1 release. Co-Authored-By: Claude Code <noreply@anthropic.com>
Keep the generic OTLP endpoint unset so Cognee does not enable log and metric exporters outside the maintained trace adapter privacy filter. Co-Authored-By: Claude Code <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed and why
Replace the copied Cognee exporter/filter recipe with the maintained native-tracing adapter. Developers install published packages, configure once, then run a small add/cognify/search application; they no longer maintain instrumentation source.
cognee[tracing]==1.6.6and the current publishedtraceai-cognee==0.1.1.OTEL_EXPORTER_OTLP_ENDPOINTunset: Cognee uses it to enable log/metric exporters outside this trace adapter's filtering.mainat970056be6443bff2051fbee1101f5b99de4cda12, preserving both the Cognee contract and all main integration tests. Catalog unchanged; test changes are additive.Verification on the pushed head
Head:
c86b7af692edaeb616aa3b0f081c4c8fd467864b. All tests, installs, builds and browser execution ran in E2B or GitHub Actions, not locally.Documentation
node --test --test-name-pattern='Cognee uses the maintained adapter' scripts/integrations.test.mjs.Published packages and exact guide snippet
Executed the guide's install command and environment block, then its unchanged Python block with synthetic loopback OpenAI-compatible services and an OTLP/protobuf receiver. The snippet subprocess permits loopback connections only. No provider or Future AGI customer credentials were used.
The package tests are staged from traceAI commit 6689782, with the shared receiver fixture. Imports use the installed PyPI adapter; the file-path structured-redaction test also uses the helper copied from that installed package, not an unpublished adapter checkout.
pip checkpassedpip checkpassedThe second cell additionally installs
pip install "cognee[tracing]==1.6.5"to exercise the adapter's lower Cognee bound. The reader-pinned Cognee 1.6.6 setup was also run on Python 3.10 and passed with 136 spans before the prose-only privacy-prerequisite addition; final-head rows above are separately identified.Both final cells verify
LLM,RETRIEVERandEMBEDDINGmappings, project/resource fields and auth headers, excluded document/question/answer content, and excluded error descriptions/stack traces. Empty sanitized exception events are retained by design. Model requests reach only loopback/v1/chat/completionsand/v1/embeddings.E2B receipt labels:
qw-docs-1044-docs-final,qw-docs-1044-py310-final,qw-docs-1044-py313-final; all exit 0 and sandbox deletion is confirmed. Earlier harness-only failures were corrected and rerun: Node's default 2 GiB heap, a preview-startup race, and an overly strict assertion that incorrectly prohibited sanitized empty exception events.GitHub checks
All 6 checks passed on the pushed head:
git diff --checkand JavaScript syntax validation passed. E2E coverage marker: not applicable; this docs repository has noe2e/scripts/e2e-coverage.mjsharness.Scope and readiness
Published-package and loopback qualification only; no real-provider or Future AGI Cloud ingestion run is claimed. No package release, merge, approval or branch rename is part of this PR. The PR is ready for review; required human approval remains in place.
🤖 Generated with Claude Code