trace

package
v0.117.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	OpenTelemetryTracerName = "cloud.google.com/go"
)

Variables

This section is empty.

Functions

func EndSpan

func EndSpan(ctx context.Context, err error)

EndSpan ends an OpenTelemetry span with the given error.

The default experimental tracing support for OpenCensus is now deprecated in the Google Cloud client libraries for Go.

func StartSpan

func StartSpan(ctx context.Context, name string) context.Context

StartSpan adds an OpenTelemetry span to the trace with the given name.

The default experimental tracing support for OpenCensus is now deprecated in the Google Cloud client libraries for Go.

func TracePrintf added in v0.37.3

func TracePrintf(ctx context.Context, attrMap map[string]interface{}, format string, args ...interface{})

TracePrintf retrieves the current OpenTelemetry span from context, then calls Span.AddEvent. The expected span must be an OpenTelemetry span. The default experimental tracing support for OpenCensus is now deprecated in the Google Cloud client libraries for Go.

Types

This section is empty.

Jump to

Keyboard shortcuts

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