This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Description
Right now the various ->$foo_context methods (eg. request_context) return only the appropriate context.
Eg. if you do
my %returned_context = Sentry::Raven->request_context(
%relevant_request_information,
tags => { foo => 'bar' }
);
then %returned_context will not contain any information about those tags (and there will be no warnings).
This can be surprisingly different than the capture_request call (which does observe non-request context), and besides can lead to slightly over-verbose code like:
my ($url, %context) = get_sentry_context_from_request($req);
$sentry->capture_message($message, %context, Sentry::Raven->request_context($url, %context));
(instead of
my ($url, %context) = get_sentry_context_from_request($req);
$sentry->capture_message($message, Sentry::Raven->request_context($url, %context));
)
Would you have any interest in a patch to make request_context and company behave more like their capture_ counterparts (and also allow chaining)?