tracing

package
v19.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package tracing provides helpers around the OpenTelemetry tracing API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttributeTracer

type AttributeTracer struct {
	embedded.Tracer
	// contains filtered or unexported fields
}

AttributeTracer wraps a Tracer and adds a fixed set of attributes to every span it starts.

func NewAttributeTracer

func NewAttributeTracer(delegate oteltrace.Tracer, attrs attribute.Set) *AttributeTracer

NewAttributeTracer returns a tracer that starts spans on delegate with attrs set on them.

func (*AttributeTracer) Start

Start starts a span on the delegate with the tracer's attributes set on it, in addition to whatever the caller sets.

Jump to

Keyboard shortcuts

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