httpsinkexporter

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

README

HTTP Sink Exporter

This exporter makes span data available via a HTTP endpoint. The endpoint accepts requests for spans with specific characteristics and blocks until the exporter receives such spans or the request times out. Once the requested spans are detected, they're returned back to the client as JSON.

This exporter returns data as JSON encoding using Jaeger protocol.

Please note that there is no guarantee that exact field names will remain stable. This intended for primarily for testing observability pipelines without setting up backends.

Supported pipeline types: traces.

Getting Started

The following settings are required:

  • endpoint (defaults to 0.0.0.0:8378).

Example:

exporters:
  httpsink:
    endpoint: "0.0.0.0:8378"

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() component.ExporterFactory

NewFactory creates a factory for httpsink exporter.

Types

type Config

type Config struct {
	config.ExporterSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct

	Endpoint string `mapstructure:"endpoint"`
}

Config defines configuration for file exporter.

func (*Config) Validate

func (cfg *Config) Validate() error

Validate checks if the exporter configuration is valid

Jump to

Keyboard shortcuts

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