Documentation
¶
Index ¶
- type BeforeSendFunc
- type Config
- type HTTPTransport
- type HTTPTransportConfig
- type Option
- func WithAsync(enabled bool) Option
- func WithBatchSize(size int) Option
- func WithBeforeSend(fn BeforeSendFunc) Option
- func WithConnectionTimeout(timeout time.Duration) Option
- func WithFlushInterval(interval time.Duration) Option
- func WithMaxRetries(maxRetries int) Option
- func WithPrivacy(options PrivacyOptions) Option
- func WithQueueSize(size int) Option
- func WithRetryDelay(delay time.Duration) Option
- func WithTimeout(timeout time.Duration) Option
- func WithTransport(transport Transport) Option
- func WithTransportFailureHandler(fn func(core.FailureInfo)) Option
- type PrivacyOptions
- type Provider
- type Transport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeforeSendFunc ¶
type Config ¶
type Config struct {
DSN string
Transport Transport
BatchSize int
DisableAsync bool
QueueSize int
FlushInterval time.Duration
Privacy PrivacyOptions
BeforeSend BeforeSendFunc
TransportFailureHandler func(core.FailureInfo)
Timeout time.Duration
ConnectionTimeout time.Duration
MaxRetries int
RetryDelay time.Duration
}
type HTTPTransport ¶
type HTTPTransport struct {
// contains filtered or unexported fields
}
func NewHTTPTransport ¶
func NewHTTPTransport(config HTTPTransportConfig) *HTTPTransport
type HTTPTransportConfig ¶
type Option ¶
type Option func(*Config)
func WithBatchSize ¶
func WithBeforeSend ¶
func WithBeforeSend(fn BeforeSendFunc) Option
func WithConnectionTimeout ¶
func WithFlushInterval ¶ added in v0.1.1
func WithMaxRetries ¶
func WithPrivacy ¶
func WithPrivacy(options PrivacyOptions) Option
func WithQueueSize ¶ added in v0.1.1
func WithRetryDelay ¶
func WithTimeout ¶
func WithTransport ¶
func WithTransportFailureHandler ¶
func WithTransportFailureHandler(fn func(core.FailureInfo)) Option
type PrivacyOptions ¶
type PrivacyOptions struct {
CaptureRequestContext bool
CaptureHeaders bool
CaptureBody bool
CaptureSession bool
CaptureCookies bool
CaptureFiles bool
CaptureEnv bool
}
func DefaultPrivacyOptions ¶
func DefaultPrivacyOptions() PrivacyOptions
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewWithConfig ¶
func (*Provider) CaptureEvent ¶
Click to show internal directories.
Click to hide internal directories.