observability

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const EnablePprofEnvVar = "KUBEARCHIVE_ENABLE_PPROF"

EnablePprofEnvVar controls if the Pprof support is added or not. It is exported so the Operator can use it.

View Source
const OtelLogsEnvVar = "KUBEARCHIVE_OTLP_SEND_LOGS"
View Source
const OtelMetricsInterval = "KUBEARCHIVE_METRICS_INTERVAL"
View Source
const OtelStartEnvVar = "KUBEARCHIVE_OTEL_MODE"

the name of the environment variable that will determine if instrumentation needs to be started

Variables

Functions

func FlushSpanBuffer

func FlushSpanBuffer(ctx context.Context) error

FlushSpanBuffer exports all completed spans that have not been exported for all SpanProcessors registered with the global TracerProvider. If the provided context has a timeout or a deadline, it will be respected.

func GetObservabilityServer added in v1.9.0

func GetObservabilityServer() *http.Server

func Shutdown

func Shutdown(ctx context.Context) error

Shutdown shuts down the TracerProvider, any SpanProcessors that have been registered, and exporters associated with the SpanProcessors. This should only be called after all spans have been ended. After this function is called, spans cannot be created, ended or modified.

func Start

func Start(serviceName string) error

Start creates a Span Processor and exporter, registers them with a TracerProvider, and sets the default TracerProvider and SetTextMapPropagator

func Status added in v0.11.0

func Status() string

Types

type CEResult added in v0.14.0

type CEResult string
const (
	CEResultInsert          CEResult = "insert"
	CEResultUpdate          CEResult = "update"
	CEResultNone            CEResult = "none"
	CEResultError           CEResult = "error"
	CEResultNoMatch         CEResult = "no_match"
	CEResultNoConfiguration CEResult = "no_conf"
)

func NewCEResultFromWriteResourceResult added in v0.14.0

func NewCEResultFromWriteResourceResult(result interfaces.WriteResourceResult) CEResult

Jump to

Keyboard shortcuts

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