Net::Airbrake::V2 - Airbrake Notifier API V2 Client
version 0.04
use Net::Airbrake::V2; my $airbrake = Net::Airbrake::V2->new( api_key => 'xxxxxxx', # project_id is not used. ); eval { die 'Oops' }; $airbrake->notify($@);
API Compatible with Net::Airbrake but converts v3 requests to v2 and then converts the response back.
This makes it usable with Errbit <= v0.3.
<= v0.3
Note: This is currently based heavily on the internals of Net::Airbrake (as of 0.02). This enables laziness at the cost of fragility. As such the implementation is subject to change.
0.02
See Net::Airbrake for descriptions of methods and arguments.
The values of the the "var" hashes ("params", "session", and "environment") that are references (other than hashes) will stringified.
This is currently done with Data::Dumper which is similar to the way the ruby gem dumps structures. The format is subject to change.
Data::Dumper
$client->convert_request(\%v3_request); Net::Airbrake::V2->convert_request(\%v3_request, \%config);
Convert a v3 request (JSON) to v2 (XML). This rearranges the data structure as best it can.
This can also be called as a class method if a config hash is passed, containing:
api_key
Convert v2 response (XML) to v3 response (JSON).
Some data may be lost converting from v3 to v2. Specifically v2 does not have explicit places for:
errors/{i}/backtrace/{i}/column context/os context/language context/userAgent context/userId context/userName context/userEmail
Net::Airbrake
Airbrake
Airbrake Notifier API v2
Errbit
You can find documentation for this module with the perldoc command.
perldoc Net::Airbrake::V2
The following websites have more information about this module, and may be of help to you. As always, in addition to those websites please use your favorite search engine to discover more resources.
MetaCPAN
A modern, open-source CPAN search engine, useful to view POD in HTML format.
http://metacpan.org/release/Net-Airbrake-V2
Please report any bugs or feature requests by email to bug-net-airbrake-v2 at rt.cpan.org, or through the web interface at https://rt.cpan.org/Public/Bug/Report.html?Queue=Net-Airbrake-V2. You will be automatically notified of any progress on the request by the system.
bug-net-airbrake-v2 at rt.cpan.org
https://github.com/rwstauner/Net-Airbrake-V2
git clone https://github.com/rwstauner/Net-Airbrake-V2.git
Randy Stauner <rwstauner@cpan.org>
This software is copyright (c) 2015 by Randy Stauner.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Net::Airbrake::V2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Airbrake::V2
CPAN shell
perl -MCPAN -e shell install Net::Airbrake::V2
For more information on module installation, please visit the detailed CPAN module installation guide.