Sentry:...ocessor(3)
π
Sentry:...ocessor(3) β bestie, itβs giving Perl docs π
This page is from the User Contributed Perl Documentation, and itβs all about Sentry::Raven::Processor, aka the little event-glow-up machine for Sentry. π¦
β¨ NAME β¨
Sentry::Raven::Processor β Sentry event processors. Periodt. π
πΈ SYNOPSIS πΈ
use Sentry::Raven;
use Sentry::Raven::Processor::RemoveStackVariables;
my $raven = Sentry::Raven->new(
processors => [ Sentry::Raven::Processor::RemoveStackVariables ],
);
Thatβs the whole vibe: you pull in Sentry::Raven, then you pull in Sentry::Raven::Processor::RemoveStackVariables, and then you hand that processor over in the processors array when you make your Sentry::Raven object. Slay. β¨
π DESCRIPTION π
Okay so processors are the mechanism for modifying events after they are generated but before they are posted to the sentry service. Highkey useful. π
Theyβre great for scrubbing sensitive data β think passwords and other things that should absolutely not be out here in the group chat β and theyβre also useful for adding additional context. π
π§ STANDARD PROCESSORS π§
The original page has this heading and thenβ¦ no entries under it before IMPLEMENTING A PROCESSOR. So bestie, there are literally no standard processors listed here. Not me inventing any. π
π₯ IMPLEMENTING A PROCESSOR π₯
Processors must have the following class methods:
β $processed_event = My::Processor->process($event) β
This is the interface for processing events. It returns a modified version of the event. Thatβs it, thatβs the whole method. Simple, iconic, no cap. π«Ά
Lowkey important: processors only do their thing after events are generated and before they get posted to the sentry service. Do not forget the order, bestie. π
Perl v5.32.1 Β· 2022-01-21 β thatβs the source/version and date, and this page is officially signed off with main-character energy. ππβ¨
π¦ where this page comes from
- epel 9: perl-Sentry-Raven 1.14-5.el9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms