Documentation ¶
Index ¶
Constants ¶
View Source
const ( BackendTransactionsURL = "/v1/transactions" FrontendTransactionsURL = "/v1/client-side/transactions" BackendErrorsURL = "/v1/errors" FrontendErrorsURL = "/v1/client-side/errors" HealthCheckURL = "/healthcheck" SourcemapsURL = "/v1/client-side/sourcemaps" )
Variables ¶
View Source
var ( Routes = map[string]routeMapping{ BackendTransactionsURL: {backendHandler, transaction.NewProcessor}, FrontendTransactionsURL: {frontendHandler, transaction.NewProcessor}, BackendErrorsURL: {backendHandler, perr.NewProcessor}, FrontendErrorsURL: {frontendHandler, perr.NewProcessor}, HealthCheckURL: {healthCheckHandler, healthcheck.NewProcessor}, SourcemapsURL: {sourcemapHandler, sourcemap.NewProcessor}, } )
Functions ¶
Types ¶
type Config ¶
type Config struct { Host string `config:"host"` MaxUnzippedSize int64 `config:"max_unzipped_size"` MaxHeaderSize int `config:"max_header_size"` ReadTimeout time.Duration `config:"read_timeout"` WriteTimeout time.Duration `config:"write_timeout"` ShutdownTimeout time.Duration `config:"shutdown_timeout"` SecretToken string `config:"secret_token"` SSL *SSLConfig `config:"ssl"` ConcurrentRequests int `config:"concurrent_requests" validate:"min=1"` Frontend *FrontendConfig `config:"frontend"` }
type FrontendConfig ¶
type FrontendConfig struct { Enabled *bool `config:"enabled"` RateLimit int `config:"rate_limit"` AllowOrigins []string `config:"allow_origins"` LibraryPattern string `config:"library_pattern"` ExcludeFromGrouping string `config:"exclude_from_grouping"` SourceMapping *SourceMapping `config:"source_mapping"` }
func (*FrontendConfig) SmapMapper ¶
func (c *FrontendConfig) SmapMapper() (sourcemap.Mapper, error)
type ProcessorHandler ¶
type ProcessorHandler func(ProcessorFactory, *Config, reporter) http.Handler
type SourceMapping ¶
Click to show internal directories.
Click to hide internal directories.