Documentation ¶
Index ¶
Constants ¶
View Source
const (
OpenTelemetryTracerName = "cloud.google.com/go"
)
Variables ¶
This section is empty.
Functions ¶
func EndSpan ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.