trace

package
v0.74.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComponentOpName

func ComponentOpName(cmp, target string) string

ComponentOpName returns an operation name for a component.

func SetSpanError

func SetSpanError(span trace.Span, msg string, err error)

SetSpanError sets the error status on the span.

func SetSpanSuccess

func SetSpanSuccess(span trace.Span)

SetSpanSuccess sets the success status on the span.

func Setup

Setup TraceProvider with the given resource and exporter.

func SetupGRPC

func SetupGRPC(ctx context.Context, name string, res *resource.Resource) (*sdktrace.TracerProvider, error)

SetupGRPC configures the global tracer with the OTLP gRPC exporter.

func StartSpan

func StartSpan(ctx context.Context, name string, opts ...trace.SpanStartOption) (context.Context, trace.Span)

StartSpan starts a span with the given name and context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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