Skip to content
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

Fix telemetry cleanup bug #800

Merged
merged 15 commits into from
Apr 10, 2024
Merged

Fix telemetry cleanup bug #800

merged 15 commits into from
Apr 10, 2024

Conversation

farshidz
Copy link
Collaborator

@farshidz farshidz commented Apr 10, 2024

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

  • Fix bug where telemetry does not clean up objects when telemetry=false

  • This PR also adds a memory profiler endpoint /memory disabled by default and enable through an environment variable

  • What is the current behavior? (You can also link to an open issue here)
    When telemetry=false, Telemetry leaks objects by adding a class variable and not cleaning up when the request is complete

  • What is the new behavior (if this is a feature change)?
    Clean up the dict when done

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
    No

  • Have unit tests been run against this PR? (Has there also been any additional testing?)
    Yes

  • Related Python client changes (link commit/PR here)
    No

  • Related documentation changes (link commit/PR here)
    No

  • Other information:

  • Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • Docs have been added / updated (for bug fixes / features)

pandu-k
pandu-k previously approved these changes Apr 10, 2024
src/marqo/core/monitoring/memory_profiler.py Outdated Show resolved Hide resolved
tests/tensor_search/test_api.py Show resolved Hide resolved
@farshidz farshidz merged commit 3f78b6d into mainline Apr 10, 2024
21 of 23 checks passed
@farshidz farshidz deleted the farshid/telemetry-fix branch April 10, 2024 13:19
farshidz added a commit that referenced this pull request Apr 15, 2024
* Fix bug where telemetry does not clean up objects when telemetry=false
* Add a memory profiler endpoint /memory, disabled by default and enabled through an environment variable
wanliAlex pushed a commit that referenced this pull request Apr 15, 2024
Fix telemetry for version 2.2.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants