package trace

import "cloud.google.com/go/spanner/internal/trace"

Index

Variables

var (
	// OpenSessionCount is a measure of the number of sessions currently opened.
	// It is EXPERIMENTAL and subject to change or removal without notice.
	OpenSessionCount = stats.Int64(statsPrefix+"open_session_count", "Number of sessions currently opened",
		stats.UnitDimensionless)

	// OpenSessionCountView is a view of the last value of OpenSessionCount.
	// It is EXPERIMENTAL and subject to change or removal without notice.
	OpenSessionCountView = &view.View{
		Name:        OpenSessionCount.Name(),
		Description: OpenSessionCount.Description(),
		Measure:     OpenSessionCount,
		Aggregation: view.LastValue(),
	}
)

Functions

func EndSpan

func EndSpan(ctx context.Context, err error)

func Printf

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

func RecordStat

func RecordStat(ctx context.Context, m *stats.Int64Measure, n int64)

func StartSpan

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

Source Files

trace.go

Version
v0.35.0
Published
Jan 22, 2019
Platform
linux/amd64
Imports
5 packages
Last checked
15 seconds ago

Tools for package owners.