Sha256: d9e29f2952e9bd5cba6bd6852504bf76c430ac443758ceb182854d34864e5ff2

Contents?: true

Size: 632 Bytes

Versions: 32

Compression:

Stored size: 632 Bytes

Contents

# frozen_string_literal: true

module Sentry
  class Transport
    class Configuration
      attr_accessor :timeout, :open_timeout, :proxy, :ssl, :ssl_ca_file, :ssl_verification, :encoding
      attr_reader :transport_class

      def initialize
        @ssl_verification = true
        @open_timeout = 1
        @timeout = 2
        @encoding = HTTPTransport::GZIP_ENCODING
      end

      def transport_class=(klass)
        unless klass.is_a?(Class)
          raise Sentry::Error.new("config.transport.transport_class must a class. got: #{klass.class}")
        end

        @transport_class = klass
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
sentry-ruby-5.13.0 lib/sentry/transport/configuration.rb
sentry-ruby-core-5.13.0 lib/sentry/transport/configuration.rb
sentry-ruby-5.12.0 lib/sentry/transport/configuration.rb
sentry-ruby-core-5.12.0 lib/sentry/transport/configuration.rb
sentry-ruby-core-5.11.0 lib/sentry/transport/configuration.rb
sentry-ruby-5.11.0 lib/sentry/transport/configuration.rb
sentry-ruby-5.10.0 lib/sentry/transport/configuration.rb
sentry-ruby-core-5.10.0 lib/sentry/transport/configuration.rb
sentry-ruby-5.9.0 lib/sentry/transport/configuration.rb
sentry-ruby-core-5.9.0 lib/sentry/transport/configuration.rb
sentry-ruby-core-5.8.0 lib/sentry/transport/configuration.rb
sentry-ruby-5.8.0 lib/sentry/transport/configuration.rb
sentry-ruby-core-5.7.0 lib/sentry/transport/configuration.rb
sentry-ruby-5.7.0 lib/sentry/transport/configuration.rb
sentry-ruby-core-5.6.0 lib/sentry/transport/configuration.rb
sentry-ruby-5.6.0 lib/sentry/transport/configuration.rb
sentry-ruby-core-5.5.0 lib/sentry/transport/configuration.rb
sentry-ruby-5.5.0 lib/sentry/transport/configuration.rb
sentry-ruby-5.4.2 lib/sentry/transport/configuration.rb
sentry-ruby-core-5.4.2 lib/sentry/transport/configuration.rb