Sha256: c0d342eca00683c28ad509ddd998677d3f8cdfab40df22e99a425aa02fcd8588

Contents?: true

Size: 642 Bytes

Versions: 8

Compression:

Stored size: 642 Bytes

Contents

module Sentry
  class Transport
    class Configuration
      attr_accessor :timeout, :open_timeout, :proxy, :ssl, :ssl_ca_file, :ssl_verification, :http_adapter, :faraday_builder,
        :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

8 entries across 8 versions & 1 rubygems

Version Path
sentry-ruby-core-4.8.0 lib/sentry/transport/configuration.rb
sentry-ruby-core-4.7.3 lib/sentry/transport/configuration.rb
sentry-ruby-core-4.7.2 lib/sentry/transport/configuration.rb
sentry-ruby-core-4.7.1 lib/sentry/transport/configuration.rb
sentry-ruby-core-4.7.0 lib/sentry/transport/configuration.rb
sentry-ruby-core-4.6.5 lib/sentry/transport/configuration.rb
sentry-ruby-core-4.6.4 lib/sentry/transport/configuration.rb
sentry-ruby-core-4.6.3 lib/sentry/transport/configuration.rb