-
Notifications
You must be signed in to change notification settings - Fork 185
Open
Description
Problem Statement
Similar to getsentry/sentry-php#1121, please add a default class serializer so objects implementing Symfony\Component\Console\Input\InputInterface are more detailed in the listed parameters of a method in a trace
Solution Brainstorm
I can submit a PR with a serializer like this, but I don't know how to register it by default.
class ConsoleInputSerializer
{
public function __invoke(InputInterface $input): array
{
return [
'arguments' => $input->getArguments(),
'options' => $input->getOptions(),
];
}
}
A possible way forward is to call the Sentry\Options::setClassSerializers() to add more serializers, but I don't know how to do that from the bundle.
Or just add this serializer to this repo, suggest a default configuration and let user decide if they want it or not.
What do you think?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Projects
Status
No status