tracer

package
v1.35.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package tracer provides tracers for BindPlane

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleCloud

type GoogleCloud struct {
	// contains filtered or unexported fields
}

GoogleCloud is a tracer that uses Google Cloud Monitoring

func NewGoogleCloud

func NewGoogleCloud(cfg *config.GoogleCloudTracing, samplingRate float64, resource *resource.Resource) *GoogleCloud

NewGoogleCloud creates a new GoogleCloud Tracer

func (*GoogleCloud) Shutdown

func (g *GoogleCloud) Shutdown(ctx context.Context) error

Shutdown shuts down the tracer

func (*GoogleCloud) Start

func (g *GoogleCloud) Start(_ context.Context) error

Start starts the tracer

type Nop

type Nop struct{}

Nop is a tracer that does nothing

func NewNop

func NewNop() *Nop

NewNop creates a new Nop Tracer

func (*Nop) Shutdown

func (n *Nop) Shutdown(_ context.Context) error

Shutdown shuts down the tracer

func (*Nop) Start

func (n *Nop) Start(_ context.Context) error

Start starts the tracer

type OTLP

type OTLP struct {
	// contains filtered or unexported fields
}

OTLP is a tracer that uses OTLP

func NewOTLP

func NewOTLP(cfg *config.OTLPTracing, samplingRate float64, resource *resource.Resource) *OTLP

NewOTLP creates a new OTLP Tracer

func (*OTLP) Shutdown

func (o *OTLP) Shutdown(ctx context.Context) error

Shutdown shuts down the tracer

func (*OTLP) Start

func (o *OTLP) Start(ctx context.Context) error

Start starts the tracer

type Tracer

type Tracer interface {
	// Start starts the tracer
	Start(ctx context.Context) error

	// Shutdown shuts down the tracer
	Shutdown(ctx context.Context) error
}

Tracer is an interface used for tracing

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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