-
Notifications
You must be signed in to change notification settings - Fork 91
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
wip: capture spans for controllers automatically #282
base: main
Are you sure you want to change the base?
Conversation
a0dfbe3
to
8cd1747
Compare
if (\strpos($controllerName, '::') > 0) { | ||
list($class, $method) = \explode('::', $controllerName); | ||
if (isset($class, $method)) { | ||
hook( |
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.
I don't think this will work with modern runtimes, where one long-lived application might handle many requests.
Maybe it should just manually create and end span on Symfony events?
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.
I think I'd rather memoize the hooks already in place. - this hook in particular is for the controller callable
No description provided.