feat: support dbm full and service mode propagation for pymongo#12680
feat: support dbm full and service mode propagation for pymongo#12680lu-zhengda merged 19 commits intomainfrom
Conversation
|
|
BenchmarksBenchmark execution time: 2025-04-08 17:12:04 Comparing candidate commit c11c773 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 496 metrics, 2 unstable metrics. |
|
/merge |
|
View all feedbacks in Devflow UI.
This merge request is not mergeable yet, because of pending checks/missing approvals. It will be added to the queue as soon as checks pass and/or get approvals.
The expected merge time in
This pull request was merged directly. |
Bootstrap import analysisComparison of import times between this PR and base. SummaryThe average import time from this PR is: 238 ± 5 ms. The average import time from base is: 245 ± 4 ms. The import time difference between this PR and base is: -6.9 ± 0.2 ms. Import time breakdownThe following import paths have shrunk:
|
Description
This PR adds Database Monitoring (DBM) propagation support for pymongo. It enables linking MongoDB queries to DBM samples by injecting trace and span information as comments into MongoDB commands.
Two propagation modes are supported:
Version Support
Note: This feature requires PyMongo 3.9 and above. DBM propagation will be automatically disabled for PyMongo versions < 3.9.
Motivation
By linking traces to database queries, users can:
Configuration
Control with the
DD_DBM_PROPAGATION_MODEenvironment variable:DD_DBM_PROPAGATION_MODEis disabled by default.Checklist
Reviewer Checklist