lightstepreceiver

package module
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 16 Imported by: 0

README

Build Status License

OpenTelemetry Collector Lightstep Receiver

The lightstepreceiver receives OpenTracing traces from Lightstep tracers in various supported formats converting them into OpenTelemetry'a ptrace.Traces propagating it further in pipelines

arch

Supported formats and endpoints

Access token processing

Lightstep access token is extracted from the payload and propagated further by context item lightstep-access-token, for further using by a headersetter extension

Tracer metrics processing

Lighstep tracer reports various client side metrics as client-drop-spans via traces payload, these metrics are extracted and reported by collector standard metrics reporting pipeline and available for scraping as lightstep_receiver_client_spans_dropped

Configuration

All that is required to enable the Lightstep receiver is to include it in the receiver definitions. A protocol can be disabled by simply not specifying it in the list of protocols.

lightstepreceiver:
  protocols:
    pbgrpc:
    pbhttp:
    thrift:

Advanced Configuration

Several helper files are leveraged to provide additional capabilities automatically:

Debugging

  1. Set a breakpoint where needed
  2. Run collector in debug mode with (note that it will be compiled with debug symbols already)
make debug
  1. Connect with remote debugger from your beloved IDE
  2. Generate some traces with your application

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() receiver.Factory

NewFactory creates a factory for Lightstep trace receiver

Types

type Config

type Config struct {
	Protocols `mapstructure:"protocols"`
}

Config represents Lightstep receiver configuration, follows the OTLP stype

type Protocols

type Protocols struct {
	PbGrpc *configgrpc.ServerConfig `mapstructure:"pbgrpc"`
	PbHTTP *confighttp.ServerConfig `mapstructure:"pbhttp"`
	Thrift *confighttp.ServerConfig `mapstructure:"thrift"`
}

Protocols represents supported protocols

Directories

Path Synopsis
internal
lightstep_pb/collectorpb
Package collectorpb is a generated protocol buffer package.
Package collectorpb is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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