requestsizeprocessor

package module
v0.0.0-...-29d7859 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDefaultConfig

func CreateDefaultConfig() component.Config

func NewFactory

func NewFactory() processor.Factory

NewFactory creates a factory for the requestsize processor.

func NewRequestSizeProcessor

func NewRequestSizeProcessor(cfg *Config, logger *zap.Logger) *requestsize

Types

type Config

type Config struct {
	// HeaderName should be set to the same key that
	// services will check for the size of requests.
	// By default lightstep downstream services will
	// check lightstep-uncompressed-bytes for the value.
	HeaderName string `mapstructure:"header_name"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL