spectoconfig

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

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