NAME

NewFangle::Segment - NewRelic segment class

VERSION

version 0.09

SYNOPSIS

use NewFangle;
my $app = NewFangle::App->new;
my $txn = $app->start_web_transaction("txn_name");
my $seg = $txn->start_segment("seg_name");

DESCRIPTION

NewRelic segment class

METHODS

transaction

my $txn = $seg->transaction

Returns the transaction for this segment.

end

my $bool = $seg->end;

Ends the segment.

(csdk: newrelic_end_segment)

set_parent

my $bool = $seg->set_parent($seg2);

(csdk: newrelic_set_segment_parent)

set_parent_root

my $bool = $seg->set_parent_root;

(csdk: newrelic_set_segment_parent_root)

set_timing

my $bool = $seg->set_timing($start_time, $duration);

(csdk: newrelic_set_segment_timing)

SEE ALSO

NewFangle

AUTHOR

Author: Graham Ollis <plicease@cpan.org>

Contributors:

Owen Allsopp (ALLSOPP)

COPYRIGHT AND LICENSE

This software is copyright (c) 2020-2022 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.