...

Package v1

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

Overview ▾

func ValidateTracingConfiguration

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

ValidateTracingConfiguration validates the tracing configuration

type TracingConfiguration

TracingConfiguration provides versioned configuration for OpenTelemetry tracing clients.

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"`
}

func (*TracingConfiguration) DeepCopy

func (in *TracingConfiguration) DeepCopy() *TracingConfiguration

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.