tracing

package
v1.1.68-test Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 2 Imported by: 1 module, 0 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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LightstepTracing

type LightstepTracing struct {
	Endpoint    string     `json:"endpoint" validate:"required"`
	Credentials SecretLink `json:"credentials,omitzero" validate:"optional"`
}

type OpenTelemetry

type OpenTelemetry struct {
	Endpoint string `json:"endpoint" validate:"required"`
}
type SecretLink string

SecretLink ports LocalLink().custom(toKind("secret")): a localLink pointing to a resource of kind secret.

func (SecretLink) ValidationRule

func (SecretLink) ValidationRule() *validate.Rule

ValidationRule implements the Validator interface for SecretLink.

type Tracing

type Tracing struct {
	Sampling   float64            `json:"sampling" validate:"min=0,max=100,precision=2,required"`
	Lightstep  *LightstepTracing  `json:"lightstep,omitzero"`
	CustomTags *TracingCustomTags `json:"customTags,omitzero"`
	Provider   *TracingProvider   `json:"provider,omitzero"`
}

Tracing ports tracing.ts:20. tracingRefine handles the lightstep<->provider mirror.

func (Tracing) ValidationRule

func (Tracing) ValidationRule() *validate.Rule

ValidationRule ports tracing.ts:34's top-level custom. Its mirroring half (moving a deprecated top-level `lightstep` under `provider`) runs in the handler after validation, and since master 314afc47f the custom reads `value.provider?.lightstep`, so a block carrying neither `lightstep` nor `provider` is accepted rather than crashing into a 400. Nothing here rejects.

type TracingCustomTag

type TracingCustomTag struct {
	Literal *TracingCustomTagLiteral `json:"literal,omitzero"`
}

type TracingCustomTagLiteral

type TracingCustomTagLiteral struct {
	Value string `json:"value,omitzero" validate:"max=50"`
}

type TracingCustomTags

type TracingCustomTags map[string]TracingCustomTag

type TracingProvider

type TracingProvider struct {
	Otel         *OpenTelemetry               `json:"otel,omitzero"`
	Lightstep    *LightstepTracing            `json:"lightstep,omitzero"`
	Controlplane *TracingProviderControlplane `json:"controlplane,omitzero"`
}

TracingProvider ports tracing.ts provider. .xor(lightstep, otel, controlplane).

func (TracingProvider) ValidationRule

func (TracingProvider) ValidationRule() *validate.Rule

ValidationRule ports tracing.ts:29-33 `provider: Joi.object({...}).xor('lightstep', 'otel','controlplane')`. The xor was recorded only in a models.go comment pointing at a handler file that no longer exists, so a provider block with NONE or SEVERAL providers was accepted and persisted.

type TracingProviderControlplane

type TracingProviderControlplane struct {
}

Jump to

Keyboard shortcuts

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