telemetry

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 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 added in v0.9.1

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

Types

type NoopSpan added in v0.9.1

type NoopSpan struct {
	embedded.Span
}

func (NoopSpan) AddEvent added in v0.9.1

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 added in v0.9.1

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

End implements trace.Span.

func (NoopSpan) IsRecording added in v0.9.1

func (n NoopSpan) IsRecording() bool

IsRecording implements trace.Span.

func (NoopSpan) RecordError added in v0.9.1

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

RecordError implements trace.Span.

func (NoopSpan) SetAttributes added in v0.9.1

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

SetAttributes implements trace.Span.

func (NoopSpan) SetName added in v0.9.1

func (n NoopSpan) SetName(name string)

SetName implements trace.Span.

func (NoopSpan) SetStatus added in v0.9.1

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

SetStatus implements trace.Span.

func (NoopSpan) SpanContext added in v0.9.1

func (n NoopSpan) SpanContext() trace.SpanContext

SpanContext implements trace.Span.

func (NoopSpan) TracerProvider added in v0.9.1

func (n NoopSpan) TracerProvider() trace.TracerProvider

TracerProvider implements trace.Span.

type NoopTracer added in v0.9.1

type NoopTracer struct {
	embedded.Tracer
}

func (NoopTracer) Start added in v0.9.1

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

Start implements trace.Tracer.

type Otel added in v0.9.1

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

func NewOtel added in v0.9.1

func NewOtel(cfg config.Config) Otel

func (Otel) NewTracer added in v0.9.1

func (o Otel) NewTracer(name string) Tracer

func (Otel) Shutdown added in v0.9.1

func (o Otel) Shutdown() error

type Tracer added in v0.9.1

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

func (Tracer) CreateChildSpan added in v0.9.1

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

func (Tracer) CreateSpan added in v0.9.1

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