Group
Extension

Matches 5

Sentry-SDK ( P/PM/PMB/Sentry-SDK-1.3.9.tar.gz, PMB, 2024; MetaCPAN )
Sentry-SDK/lib/Sentry/Envelope.pm ( view source; MetaCPAN )
package Sentry::Envelope;
use Mojo::Base -base, -signatures;

use Mojo::JSON qw(encode_json);

has event_id     => undef;
has headers      => sub ($self) { { event_id => $self->event_id } };
has body 
f->type, sample_rates => $self->sample_rates } };

sub serialize ($self) {
  my @lines = ($self->headers, $self->item_headers, $self->body);
  return join("\n", map { encode_json($_) } @lines);
}

1;
Sentry-SDK ( P/PM/PMB/Sentry-SDK-1.3.9.tar.gz, PMB, 2024; MetaCPAN )
Sentry-SDK/lib/Sentry/Transport/Http.pm ( view source; MetaCPAN )
sport::Http;
use Mojo::Base -base, -signatures;

use HTTP::Status qw(:constants);
use Mojo::JSON 'encode_json';
use Mojo::UserAgent;
use Mojo::Util 'dumper';
use Readonly;
use Sentry::Envelope;
use Se
;
  push @header, "sentry_secret=$pass" if $pass;

  return {
    'Content-Type'  => 'application/json',
    'X-Sentry-Auth' => join(', ', @header),
  };
};
has _sentry_url => sub ($self) {
  my $dsn 
l => $self->_headers, $payload);
  } else {
    $tx = $self->_http->post($url => $self->_headers, json => $payload);
  }

  logger->log(
    sprintf(
      qq{Sentry request done. Payload: \n<<<<<<<<<
Sentry-SDK ( P/PM/PMB/Sentry-SDK-1.3.9.tar.gz, PMB, 2024; MetaCPAN )
Sentry-SDK/lib/Sentry/Stacktrace/Frame.pm ( view source; MetaCPAN )
 ($self) {
  return Mojo::File::path($self->filename)->to_rel($self->_home)->to_string;
}

sub TO_JSON ($self) {
  return {
    in_app    => \($self->_is_in_app()),
    abs_path  => $self->filename,
 
Sentry-SDK ( P/PM/PMB/Sentry-SDK-1.3.9.tar.gz, PMB, 2024; MetaCPAN )
Sentry-SDK/lib/Sentry/Tracing/Span.pm ( view source; MetaCPAN )
>status,
    tags           => $self->tags,
    trace_id       => $self->trace_id,
  };
}

sub TO_JSON ($self) {
  return {
    data            => $self->data,
    description     => $self->descriptio
Sentry-SDK ( P/PM/PMB/Sentry-SDK-1.3.9.tar.gz, PMB, 2024; MetaCPAN )
Sentry-SDK/lib/Sentry/Stacktrace.pm ( view source; MetaCPAN )
Stacktrace::Frame->from_caller($_->@*) }
    $self->exception->frames->@*;

  return [grep { $self->frame_filter->($_) } @frames];
}

sub TO_JSON ($self) {
  return { frames => $self->frames };
}

1;

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.