Commit 0bd1728
authored
feat(agent): Add RabbitMQ instrumentation using the php-amqplib library (#1009)
Most of the PR is basic instrumentation, retrieval of values and setting
attributes or creating metrics and is very similar to patterns we've
established in other instrumentation.
The DT header insertion logic is the trickiest bit since we are
modifying the headers in flight. (look to drupal and laravel for similar
logic).
Note: the DT header insertion logic, while trickiest, is something that
can be turned off anytime by the user by setting
newrelic.distributed_tracing_exclude_newrelic_header to true.
Initial commit does the following:
* Detect library via magic file
* Detect package and version information.
* Basic unit tests
Subsequent commits:
* Add attributes needed for rabbitMQ to message segment
* Instrument basic_publish and basic_get
* add unit tests, multiverse tests
* added support for PHP 7.x
* DT header insertion/retrieval
* Added more multiverse tests, especially around the DT functionality1 parent f3f3e96 commit 0bd1728
File tree
19 files changed
+1482
-18
lines changed- agent
- tests
- axiom
- tests
19 files changed
+1482
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
432 | 438 | | |
433 | 439 | | |
434 | 440 | | |
| |||
0 commit comments