observability

package
v0.38.6 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 2 Imported by: 4 modules, 6 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	K8sNamespaceName = "k8s.namespace.name"
)

Variables

This section is empty.

Functions

func K8sAttributes

func K8sAttributes(name, namespace, resource string) []trace.Attribute

K8sAttributes generates Kubernetes trace attributes for the object of the given name in the given namespace. resource identifies the object type as <singular>.<group>

func WithSpanData

func WithSpanData(ctx context.Context, name string, kind int, attributes []trace.Attribute) context.Context

WithSpanData extends the given context with the given span values

Types

type SpanData

type SpanData struct {
	// Name is the span name
	Name string

	// Kind is the span kind
	Kind int

	// Attributes is the additional set of span attributes
	Attributes []trace.Attribute
}

SpanData contains values for creating tracing spans.

func SpanDataFromContext

func SpanDataFromContext(ctx context.Context) *SpanData

SpanDataFromContext gets the span values from the context

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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