tracing

package
v0.0.0-...-7bf56e6 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package tracing contains helper for reporting OpenTelemetry tracing spans.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func End

func End(span trace.Span, err error, attrs ...attribute.KeyValue)

End records the error (if any) and closes the span.

func Start

func Start(ctx context.Context, name string, attrs ...attribute.KeyValue) (context.Context, trace.Span)

Start opens a tracing span.

Finish it with End, usually like this:

ctx, span := tracing.Start(ctx, "..."")
defer func() { tracing.End(span, err) }()

Types

This section is empty.

Jump to

Keyboard shortcuts

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