NAME
NewFangle::Transaction - NewRelic application class
VERSION
version 0.01
SYNOPSIS
use NewFangle;
my $app = NewFangle::App->new;
$app->start_web_transaction("txn_name");
DESCRIPTION
NewRelic transaction class
METHODS
start_segment
my $seg = $txn->start_segment($name, $category);
Start a new segment. Returns NewFangle::Segment instance.
(csdk: newrelic_start_segment)
start_datastore_segment
my $seg = $txn->start_datastore_segment([$product, $collection, $operation, $host, $port_path_or_id, $database_name, $query]);
Start a new datastore segment. Returns NewFangle::Segment instance.
(csdk: newrelic_start_datastore_segment)
start_external_segment
my $seg = $txn->start_external_segment([$uri,$method,$library]);
Start a new external segment. Returns NewFangle::Segment instance.
(csdk: newrelic_start_external_segment)
add_attribute_int
my $bool = $txn->add_attribute_int($key, $value);
(csdk: newrelic_add_attribute_int)
add_attribute_long
my $bool = $txn->add_attribute_long($key, $value);
(csdk: newrelic_add_attribute_long)
add_attribute_double
my $bool = $txn->add_attribute_double($key, $value);
(csdk: newrelic_add_attribute_double)
add_attribute_string
my $bool = $txn->add_attribute_string($key, $value);
(csdk: newrelic_add_attribute_string)
notice_error
$txn->notice_error($priority, $errmsg, $errclass);
(csdk: newrelic_notice_error)
ignore
my $bool = $txn->ignore;
csdk: newrelic_ignore_transaction)
end
my $bool = $txn->end;
Ends the transaction.
(csdk: newrelic_end_transaction)
record_custom_event
$txn->record_custom_event;
(csdk: newrelic_record_custom_event)
record_custom_metric
$txn->record_custom_metric($name, $milliseconds);
(csdk: newrelic_record_custom_metric)
set_name
my $bool = $txn->set_name($name);
(csdk: newrelic_set_transaction_name)
SEE ALSO
AUTHOR
Graham Ollis <plicease@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2020 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.