Documentation
¶
Overview ¶
Package spectoconfig provides functionality to convert CRD Telemetry types into telemetry.Config.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertTelemetryConfig ¶
func ConvertTelemetryConfig( ctx context.Context, telemetryConfig *v1alpha1.TelemetryConfig, mcpServerName string, ) *telemetry.Config
ConvertTelemetryConfig converts the CRD TelemetryConfig to a telemetry.Config. It may return nil if no telemetry is configured.
func NormalizeTelemetryConfig ¶ added in v0.7.0
func NormalizeTelemetryConfig(config *telemetry.Config, defaultServiceName string) *telemetry.Config
NormalizeTelemetryConfig applies runtime normalization to a telemetry.Config. This includes: - Stripping http:// or https:// prefixes from the endpoint (OTLP clients expect host:port format) - Defaulting ServiceName to the provided default name if not specified - Defaulting ServiceVersion to the build version if not specified
This function is used by both the VirtualMCPServer converter (for spec.config.telemetry) and indirectly by ConvertTelemetryConfig (for CRD-style configs).
Types ¶
This section is empty.