NAME

Sentry::Integration::NetCmd - Internal: base of the integrations of libnet clients

DESCRIPTION

Internal; not part of the public API, may change without notice. The base class of Sentry::Integration::NetFTP and Sentry::Integration::NetSMTP: records connecting and the methods of a Net::Cmd client as spans and breadcrumbs.

METHODS

protocol

The op of the spans is <protocol>.client, the category of the breadcrumbs the protocol.

record_client

$self->record_client('Net::FTP', {
  cwd  => { describe => sub ($name, $ftp, $dir = '/') {"$name $dir"} },
  quit => { breadcrumb => 1 },
});

Records new as connect and the given methods, described by their name unless describe says otherwise.