You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature: What is your use case for such a feature?
I want to be able to send context data to Sentry, concrete I want the data passed to $context in all the functions from the Psr\LoggerInterface to be shown in Sentry.
That is useful so that I can send additional context, for example product information, to Sentry when an error occured.
At the moment I can only add custom_tags as seen here:
This would be a very useful feature for us as we need to enrich errors even further (especially when error are occuring in cronjobs and we don't have any url, etc.). At the moment the data passed to $context from the LoggerInterface is only written to the log and never send to Sentry.
The text was updated successfully, but these errors were encountered:
Do you want to request a feature or report a bug?
Feature request
Feature: What is your use case for such a feature?
I want to be able to send context data to Sentry, concrete I want the data passed to $context in all the functions from the Psr\LoggerInterface to be shown in Sentry.
That is useful so that I can send additional context, for example product information, to Sentry when an error occured.
At the moment I can only add custom_tags as seen here:
magento2-sentry/Model/SentryLog.php
Line 72 in 3d8f38f
Feature: What is your proposed configuration entry? The new option to add? What is the behavior?
No extra configuration would be needed, it would be a simple function call which must be added here:
magento2-sentry/Model/SentryLog.php
Lines 77 to 82 in 3d8f38f
The function setContext() from $scope must be called as seen in the Sentry documentation: https://docs.sentry.io/platforms/php/enriching-events/context/
This would be a very useful feature for us as we need to enrich errors even further (especially when error are occuring in cronjobs and we don't have any url, etc.). At the moment the data passed to $context from the LoggerInterface is only written to the log and never send to Sentry.
The text was updated successfully, but these errors were encountered: