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
UnregisterTracing unregisters a trace exporter.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.