package trace
import "cloud.google.com/go/spanner/internal/trace"
Index ¶
- Variables
- func EndSpan(ctx context.Context, err error)
- func Printf(ctx context.Context, attrMap map[string]interface{}, format string, args ...interface{})
- func RecordStat(ctx context.Context, m *stats.Int64Measure, n int64)
- func StartSpan(ctx context.Context, name string) context.Context
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 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 ¶
Source Files ¶
trace.go
- Version
- v0.35.0
- Published
- Jan 22, 2019
- Platform
- darwin/amd64
- Imports
- 5 packages
- Last checked
- 14 minutes ago –
Tools for package owners.