-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Python: Disable mem0 telemetry by default #3506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
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
Member
Python Test Coverage Report •
Python Unit Test Overview
|
||||||||||||||||||||||||||||||
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR disables Mem0 telemetry by default in the Agent Framework integration and documents how users can explicitly opt in.
Changes:
- Set
MEM0_TELEMETRYto"false"by default in theagent_framework_mem0package when the variable is not already defined. - Document the default telemetry behavior and opt-in mechanism in the Mem0 provider docstring and README.
- Add tests to validate the default telemetry configuration and preservation of user-specified
MEM0_TELEMETRYvalues.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
python/packages/mem0/agent_framework_mem0/__init__.py |
Sets MEM0_TELEMETRY="false" when not already defined before importing the Mem0 provider, ensuring Mem0’s PostHog telemetry is disabled by default. |
python/packages/mem0/agent_framework_mem0/_provider.py |
Updates Mem0Provider docstring to explain that telemetry is disabled by default and how to enable it via MEM0_TELEMETRY=true before import. |
python/packages/mem0/tests/test_mem0_context_provider.py |
Adds telemetry-focused tests to check the default disabled state and that user-provided MEM0_TELEMETRY is honored, but one test relies on external env state and prior imports. |
python/packages/mem0/README.md |
Documents that telemetry is disabled by default and shows how to enable it using MEM0_TELEMETRY=true before importing agent_framework.mem0. |
dmytrostruk
approved these changes
Jan 30, 2026
moonbox3
approved these changes
Jan 30, 2026
eavanvalkenburg
pushed a commit
to eavanvalkenburg/agent-framework
that referenced
this pull request
Feb 1, 2026
* disable mem0 telemetry by default * test fix * addressed comments
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.
Motivation and Context
Mem0 uses PostHog to collect usage telemetry by default. Users of Agent Framework should not have their usage data sent to third-party analytics services without explicit consent.
Solution
Set
MEM0_TELEMETRY=falseenvironment variable before importing the mem0 library. Users can opt-in by settingMEM0_TELEMETRY=truebefore importing the package.Resolves #2676
Description
Contribution Checklist