context

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
	// StartSpan starts a new child span.
	StartSpan(name string) bool
	// FinishSpan ends the current span.
	FinishSpan() bool
}

Context represents a context interface.

func NewContext

func NewContext() Context

NewContext returns a new context.

func NewContextWith

func NewContextWith(t tracer.Context) Context

NewContextWith returns a new context with the specified tracer context.

Jump to

Keyboard shortcuts

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