Commit 8603e6d
authored
Add support for
## Summary of changes
Add support for `MongoDB.Driver` v3.5+
## Reason for change
We didn't support 3.5. immediately, as it required using a new version
of mongodb in CI - the existing version wouldn't work. We were running
into capacity reasons, so we figured we would punt on testing it till
later when we could update the VMs.
_Unfortunately_, it turns out 3.5 introduced a bunch of internal
changes, which means instrumentation is broken for 3.5 🤦♂️ This adds
support for it back.
## Implementation details
- Bump the version of mongo tested (this is already pulled on the VMs)
- Fix the integration
## Test coverage
Covered by existing.
I pinned testing of the latest 3.4.x too, but ditched some of the
earlier 2.x. versions. We were testing 4 different 2.x.x versions, which
seemed a bit overkill, seeing as they all hit the same code paths, and
haven't changed in years.
## Other details
https://datadoghq.atlassian.net/browse/APMS-17799MongoDB.Driver v3.5+ (#7808)1 parent 936f949 commit 8603e6d
File tree
21 files changed
+1571
-1327
lines changed- tracer
- build
- dependabot/integrations
- src
- Datadog.Tracer.Native/Generated
- Datadog.Trace
- ClrProfiler/AutoInstrumentation/MongoDb
- Generated
- net461/Datadog.Trace.SourceGenerators/InstrumentationDefinitionsGenerator
- net6.0/Datadog.Trace.SourceGenerators/InstrumentationDefinitionsGenerator
- netcoreapp3.1/Datadog.Trace.SourceGenerators/InstrumentationDefinitionsGenerator
- netstandard2.0/Datadog.Trace.SourceGenerators/InstrumentationDefinitionsGenerator
- test/Datadog.Trace.ClrProfiler.IntegrationTests
21 files changed
+1571
-1327
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
1199 | 1199 | | |
1200 | 1200 | | |
1201 | 1201 | | |
1202 | | - | |
| 1202 | + | |
1203 | 1203 | | |
1204 | 1204 | | |
1205 | 1205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
183 | | - | |
184 | 182 | | |
| 183 | + | |
185 | 184 | | |
186 | 185 | | |
187 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1081 | 1081 | | |
1082 | 1082 | | |
1083 | 1083 | | |
1084 | | - | |
| 1084 | + | |
1085 | 1085 | | |
1086 | 1086 | | |
1087 | 1087 | | |
| |||
1093 | 1093 | | |
1094 | 1094 | | |
1095 | 1095 | | |
1096 | | - | |
| 1096 | + | |
1097 | 1097 | | |
1098 | 1098 | | |
1099 | 1099 | | |
| |||
1105 | 1105 | | |
1106 | 1106 | | |
1107 | 1107 | | |
1108 | | - | |
| 1108 | + | |
1109 | 1109 | | |
1110 | 1110 | | |
1111 | 1111 | | |
| |||
1117 | 1117 | | |
1118 | 1118 | | |
1119 | 1119 | | |
1120 | | - | |
| 1120 | + | |
1121 | 1121 | | |
1122 | 1122 | | |
1123 | 1123 | | |
| |||
1129 | 1129 | | |
1130 | 1130 | | |
1131 | 1131 | | |
1132 | | - | |
| 1132 | + | |
1133 | 1133 | | |
1134 | 1134 | | |
1135 | 1135 | | |
| |||
1141 | 1141 | | |
1142 | 1142 | | |
1143 | 1143 | | |
1144 | | - | |
| 1144 | + | |
1145 | 1145 | | |
1146 | 1146 | | |
1147 | 1147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3948 | 3948 | | |
3949 | 3949 | | |
3950 | 3950 | | |
| 3951 | + | |
| 3952 | + | |
| 3953 | + | |
| 3954 | + | |
| 3955 | + | |
| 3956 | + | |
3951 | 3957 | | |
3952 | 3958 | | |
3953 | 3959 | | |
| |||
4146 | 4152 | | |
4147 | 4153 | | |
4148 | 4154 | | |
| 4155 | + | |
| 4156 | + | |
| 4157 | + | |
| 4158 | + | |
| 4159 | + | |
| 4160 | + | |
4149 | 4161 | | |
4150 | 4162 | | |
4151 | 4163 | | |
| |||
4344 | 4356 | | |
4345 | 4357 | | |
4346 | 4358 | | |
| 4359 | + | |
| 4360 | + | |
| 4361 | + | |
| 4362 | + | |
| 4363 | + | |
| 4364 | + | |
4347 | 4365 | | |
4348 | 4366 | | |
4349 | 4367 | | |
| |||
4542 | 4560 | | |
4543 | 4561 | | |
4544 | 4562 | | |
| 4563 | + | |
| 4564 | + | |
| 4565 | + | |
| 4566 | + | |
| 4567 | + | |
| 4568 | + | |
4545 | 4569 | | |
4546 | 4570 | | |
4547 | 4571 | | |
| |||
4740 | 4764 | | |
4741 | 4765 | | |
4742 | 4766 | | |
| 4767 | + | |
| 4768 | + | |
| 4769 | + | |
| 4770 | + | |
| 4771 | + | |
| 4772 | + | |
4743 | 4773 | | |
4744 | 4774 | | |
4745 | 4775 | | |
| |||
4938 | 4968 | | |
4939 | 4969 | | |
4940 | 4970 | | |
| 4971 | + | |
| 4972 | + | |
| 4973 | + | |
| 4974 | + | |
| 4975 | + | |
| 4976 | + | |
4941 | 4977 | | |
4942 | 4978 | | |
4943 | 4979 | | |
| |||
0 commit comments