gocloud.devgocloud.dev/internal/trace Index | Files

package trace

import "gocloud.dev/internal/trace"

Package trace provides support for OpenCensus tracing.

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.23.0
Published
May 15, 2021
Platform
linux/amd64
Imports
3 packages
Last checked
3 seconds ago

Tools for package owners.