Commit 5295efc
authored
Laravel: tracing Queues (+ hook refactoring) (#250)
* Laravel: start of QueueWatcher.
* Laravel: PR feedback.
* Laravel: moved additional attributes from event into span.
* Laravel: moved propagation to root of message.
Refs:
https://opentelemetry.io/docs/specs/semconv/messaging/messaging-spans/#context-propagation
https://w3c.github.io/trace-context-mqtt/#json-payload
* Laravel: experimenting with hooking \Illuminate\Contracts\Queue\Queue.
* Laravel: added queue context propagation via hook.
* Update src/Instrumentation/Laravel/src/Hooks/Queue.php
* Laravel: fix post-hook return. Thanks @brettmc
* Laravel: message processing on the consumer side.
* Laravel: refining queue hooks.
* Laravel: removed the QueueWatcher in favour of hook.
* Laravel: hook restructuring.
* Laravel: moved ServeCommand hook.
* Laravel: hook SyncQueue.
* Laravel: moved main Application hook.
* Laravel: queue cleanup.
* Laravel: test queue tracing.
* Laravel: SyncQueue hook linting.
* Laravel: rebuilt docker image and newer otel-instrumentation fixed this.
* Laravel: update QueueTest.
* Laravel: hook Queue bulk & later.
* Laravel: added estimate delivery_timestamp when passed to Queue->later().
* Laravel: fixing psalm errors.
* Laravel: fixing phpstan errors.
* Laravel: refactoring QueueTest.
* Laravel: added Queue->later tests.
* Laravel: fix Queue->later tests.
* Laravel: added beanstalk message system detection.
* Laravel: added bulk message dispatch test.
* Laravel: added redis connection test.
* Laravel: record a span if a job is received from the queue.
* Laravel: PR feedback to address closing incorrect span.
* Laravel: PR feedback - change confusing ClockInterface mock.
* Laravel: prefer stable dependencies with lowest package compat.
* Laravel: fix dependencies for use with prefer-lowest.
* Laravel: fix lowest dependencies.
* Laravel: fix watcher PhanTypeArraySuspicious warnings.
* Laravel: removed ClockInterface usage to avoid dependency on SDK.
* Laravel: more fixes for phan.
* Laravel: remove erroneous Context destroy usage.
* Laravel: added interface LaravelHook.
* Laravel: suppress psalm warning.
* Laravel: moved Console/Kernel/Command hooks.
* Laravel: export-ignore /.phan.
* Laravel: explicitly list support for Laravel versions 6 to 11.
* Laravel: moved Http Kernel hooks.
* Laravel: consistent test naming.
* Laravel: test dropped empty queue receives.1 parent a0817cf commit 5295efc
File tree
30 files changed
+1004
-232
lines changed- src
- Hooks
- Illuminate
- Console
- Contracts
- Console
- Http
- Queue
- Foundation
- Console
- Queue
- Propagators
- Watchers
- tests
- Fixtures/Jobs
- Integration
- Console
- Http
- Queue
30 files changed
+1004
-232
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | | - | |
| 15 | + | |
15 | 16 | | |
16 | | - | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
| 20 | + | |
20 | 21 | | |
21 | | - | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
0 commit comments