Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶ added in v0.8.0
func NewFactory() component.ReceiverFactory
NewFactory creates a new Zipkin receiver factory
Types ¶
type Config ¶
type Config struct { config.ReceiverSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct // Configures the receiver server protocol. confighttp.HTTPServerSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct // If enabled the zipkin receiver will attempt to parse string tags/binary annotations into int/bool/float. // Disabled by default ParseStringTags bool `mapstructure:"parse_string_tags"` }
Config defines configuration for Zipkin receiver.
type ZipkinReceiver ¶
type ZipkinReceiver struct {
// contains filtered or unexported fields
}
ZipkinReceiver type is used to handle spans received in the Zipkin format.
func New ¶
func New(config *Config, nextConsumer consumer.Traces) (*ZipkinReceiver, error)
New creates a new zipkinreceiver.ZipkinReceiver reference.
func (*ZipkinReceiver) ServeHTTP ¶
func (zr *ZipkinReceiver) ServeHTTP(w http.ResponseWriter, r *http.Request)
The ZipkinReceiver receives spans from endpoint /api/v2 as JSON, unmarshals them and sends them along to the nextConsumer.
Click to show internal directories.
Click to hide internal directories.