package trace

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

Index

Functions

func EndSpan

func EndSpan(ctx context.Context, err error)

EndSpan ends a span with the given error.

func StartSpan

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

StartSpan adds a span to the trace with the given name.

Source Files

trace.go

Version
v0.37.0
Published
Mar 11, 2019
Platform
darwin/amd64
Imports
5 packages
Last checked
1 hour ago

Tools for package owners.