span

package
v5.6.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SpanKindServer = "server"

	SpanKindClient = "client"

	SpanKindConsumer = "consumer"

	SpanKindProducer = "producer"

	SpanKindInternal = "internal"
)
View Source
const (
	HTTPStatusCode = "http.response.status_code"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Span

type Span interface {
	SetAttribute(key string, value any)
	SetStatus(statusCode int, description string)
	SetError(err error, stackTrace string)
	Finish()
}

type SpanOp

type SpanOp interface {
	NewSpanFromContext(ctx context.Context, operationName string, kind string, resourceName string) (context.Context, Span)
	GetSpanFromContext(ctx context.Context) (Span, bool)
}

Jump to

Keyboard shortcuts

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