component-basek8s.io/component-base/tracing/api/v1 Index | Files

package v1

import "k8s.io/component-base/tracing/api/v1"

Index

Functions

func ValidateTracingConfiguration

func ValidateTracingConfiguration(traceConfig *TracingConfiguration, featureGate featuregate.FeatureGate, fldPath *field.Path) field.ErrorList

ValidateTracingConfiguration validates the tracing configuration

Types

type TracingConfiguration

type TracingConfiguration struct {
	// Endpoint of the collector this component will report traces to.
	// The connection is insecure, and does not currently support TLS.
	// Recommended is unset, and endpoint is the otlp grpc default, localhost:4317.
	// +optional
	Endpoint *string `json:"endpoint,omitempty"`

	// SamplingRatePerMillion is the number of samples to collect per million spans.
	// Recommended is unset. If unset, sampler respects its parent span's sampling
	// rate, but otherwise never samples.
	// +optional
	SamplingRatePerMillion *int32 `json:"samplingRatePerMillion,omitempty"`
}

TracingConfiguration provides versioned configuration for OpenTelemetry tracing clients.

func (*TracingConfiguration) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TracingConfiguration.

func (*TracingConfiguration) DeepCopyInto

func (in *TracingConfiguration) DeepCopyInto(out *TracingConfiguration)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Source Files

config.go doc.go types.go zz_generated.deepcopy.go

Version
v0.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
5 packages
Last checked
5 hours ago

Tools for package owners.