-
Notifications
You must be signed in to change notification settings - Fork 90
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
👷 Laravel instrumentation 1.1.x #269
base: main
Are you sure you want to change the base?
Changes from 8 commits
4c7f2c9
e2e039a
65e413e
1deb2b4
98af07f
1ba04c2
f3428c5
bb09763
c1ed471
3d9beb3
9788fdd
60ba83a
d5cdeca
e494ac2
ea2e4bb
4231acd
ea05ad4
d67da56
190f628
7412881
d2887bc
cf6deaf
c53a6db
3eec435
45a6932
ee8cebe
a6a677e
6a8d0ef
60fc781
0d7dcf4
16dc809
fc1df3f
c9a83fe
44440df
a3cf950
504796e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace OpenTelemetry\Contrib\Instrumentation\Laravel\Hooks; | ||
|
||
use OpenTelemetry\API\Instrumentation\AutoInstrumentation\HookManager; | ||
use OpenTelemetry\API\Logs\LoggerInterface; | ||
use OpenTelemetry\API\Metrics\MeterInterface; | ||
use OpenTelemetry\API\Trace\TracerInterface; | ||
use OpenTelemetry\Contrib\Instrumentation\Laravel\LaravelConfiguration; | ||
|
||
interface Hook | ||
{ | ||
public function instrument( | ||
HookManager $hookManager, | ||
LaravelConfiguration $configuration, | ||
LoggerInterface $logger, | ||
MeterInterface $meter, | ||
TracerInterface $tracer, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should I actually be passing the My current understanding would be that I'd have to duplicate the instantiation or provide a Factory to give me back the implementations I want. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I think you should. I also think you should just accept the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @brettmc, all of that sounds sensible. I will look to make the switch. I will have to have a tinker with the scope configuration here and see how that goes! |
||
): void; | ||
} |
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.
Changed based on similar issue raised for PDO instrumentation.