telemetry

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTelemetry

func NewTelemetry(cfg config.Config, serviceName, release string) *loki.Client

Types

type NoopSpan

type NoopSpan struct {
	embedded.Span
}

func (NoopSpan) AddEvent

func (n NoopSpan) AddEvent(name string, options ...trace.EventOption)

AddEvent implements trace.Span.

func (n NoopSpan) AddLink(link trace.Link)

AddLink implements trace.Span.

func (NoopSpan) End

func (n NoopSpan) End(options ...trace.SpanEndOption)

End implements trace.Span.

func (NoopSpan) IsRecording

func (n NoopSpan) IsRecording() bool

IsRecording implements trace.Span.

func (NoopSpan) RecordError

func (n NoopSpan) RecordError(err error, options ...trace.EventOption)

RecordError implements trace.Span.

func (NoopSpan) SetAttributes

func (n NoopSpan) SetAttributes(kv ...attribute.KeyValue)

SetAttributes implements trace.Span.

func (NoopSpan) SetName

func (n NoopSpan) SetName(name string)

SetName implements trace.Span.

func (NoopSpan) SetStatus

func (n NoopSpan) SetStatus(code codes.Code, description string)

SetStatus implements trace.Span.

func (NoopSpan) SpanContext

func (n NoopSpan) SpanContext() trace.SpanContext

SpanContext implements trace.Span.

func (NoopSpan) TracerProvider

func (n NoopSpan) TracerProvider() trace.TracerProvider

TracerProvider implements trace.Span.

type NoopTracer

type NoopTracer struct {
	embedded.Tracer
}

func (NoopTracer) Start

func (n NoopTracer) Start(
	ctx context.Context,
	spanName string,
	opts ...trace.SpanStartOption,
) (context.Context, trace.Span)

Start implements trace.Tracer.

type Otel

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

func NewOtel

func NewOtel() Otel

func (Otel) NewTracer

func (o Otel) NewTracer(name string) Tracer

func (Otel) Shutdown

func (o Otel) Shutdown() error

type Tracer

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

func (Tracer) CreateChildSpan

func (t Tracer) CreateChildSpan(
	ctx context.Context,
	span trace.Span,
	name string,
) (context.Context, trace.Span)

func (Tracer) CreateSpan

func (t Tracer) CreateSpan(
	ctx context.Context,
	name string,
) (context.Context, trace.Span)

Jump to

Keyboard shortcuts

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