-
Notifications
You must be signed in to change notification settings - Fork 447
chore(integrations): make implementation details internal [3.0] #11916
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
chore(integrations): make implementation details internal [3.0] #11916
Conversation
|
Datadog ReportBranch report: ✅ 0 Failed, 130 Passed, 1468 Skipped, 4m 47.51s Total duration (35m 29.13s time saved) |
BenchmarksBenchmark execution time: 2025-01-21 19:43:43 Comparing candidate commit dc211da in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 394 metrics, 2 unstable metrics. |
8b94fa0
to
8c63bfc
Compare
77f2c20
to
15474f8
Compare
@quinna-h to support this use case we can continue expose |
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.
Saw a few differences between different integrations, so just questions on those. Otherwise LGTM
…2002) ## Motivation - Create a unified public interface for all contrib utils. We will deprecate and redesign this interface in v3.0. - Ensure the `ddtrace.contrib.internal` package is self contained and does rely on `ddtrace.contrib` public interfaces. ## Changes - Deprecates `ddtrace.contrib.redis_utils` module. Expose all public redis_utils in `ddtrace.contrib.trace_utils` (for now). - Deprecates `ddtrace.contrib.trace_utils_async` module. Expose all public async utils to `ddtrace.contrib.trace_utils`. - Deprecates `trace_handlers`, `func_name`, `module_name`, and `require_modules` functions exposed in `ddtrace.contrib.__init__`. These functions are internal to ddtrace. - Moves the implementation details of `trace_utils`, `trace_utils_async`, and `redis_utils` to `ddtrace.contrib.internal.trace_util`. ## Checklist - [ ] PR author has checked that all the criteria below are met - The PR description includes an overview of the change - The PR description articulates the motivation for the change - The change includes tests OR the PR description describes a testing strategy - The PR description notes risks associated with the change, if any - Newly-added code is easy to change - The change follows the [library release note guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html) - The change includes or references documentation updates if necessary - Backport labels are set (if [applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)) ## Reviewer Checklist - [ ] Reviewer has checked that all the criteria below are met - Title is accurate - All changes are related to the pull request's stated goal - Avoids breaking [API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces) changes - Testing strategy adequately addresses listed risks - Newly-added code is easy to change - Release note makes sense to a user of the library - If necessary, author has acknowledged and discussed the performance implications of this PR as reported in the benchmarks PR comment - Backport labels are set in a manner that is consistent with the [release branch maintenance policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)
…patch-get-version-from-public-api
0c3f738
to
4ff2283
Compare
0feafec
to
dc211da
Compare
Requires: chore: avoids using deprecated modules in tests and log injection [3.0 prep].
Follow up to: #11918
import ddtrace.auto
,ddtrace-run
orddtrace.patch(...)
:ddtrace.contrib.<integration_name>.patch()
ddtrace.contrib.<integration_name>.unpatch()
ddtrace.contrib.<integration_name>.get_version()
patch()
,unpatch()
, andget_version()
functions toddtrace/contrib/internal/
. These integrations do not need a public API.ddtrace/contrib/internal/
: chore(trace_utils): move implementation details to internal [3.0] #12002Checklist
Reviewer Checklist