trace

package
v0.10.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package trace contains support for OpenCensus distributed tracing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTracing

func RegisterTracing(opts *config.TracingOptions) (trace.Exporter, error)

RegisterTracing creates a new trace exporter from TracingOptions.

func StartSpan

func StartSpan(ctx context.Context, name string, o ...trace.StartOption) (context.Context, *trace.Span)

StartSpan starts a new child span of the current span in the context. If there is no span in the context, creates a new trace and span.

Returned context contains the newly created span. You can use it to propagate the returned span in process.

func UnregisterTracing added in v0.9.0

func UnregisterTracing(exporter trace.Exporter)

UnregisterTracing unregisters a trace exporter.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL