migration

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Overview

Package migration handles any migrations needed to maintain compatibility

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAndPerformDefaultGroupMigration

func CheckAndPerformDefaultGroupMigration()

CheckAndPerformDefaultGroupMigration checks if default group migration is needed and performs it This is called once at application startup

func CheckAndPerformMiddlewareTelemetryMigration added in v0.8.0

func CheckAndPerformMiddlewareTelemetryMigration()

CheckAndPerformMiddlewareTelemetryMigration checks if middleware telemetry migration is needed and performs it. This migration ensures middleware-based telemetry configs are properly migrated. It handles any additional middleware telemetry configuration migrations beyond the samplingRate conversion. It repeats performTelemetryConfigMigration, because an earlier iteration did not migrate middleware telemetry configs.

func CheckAndPerformTelemetryConfigMigration added in v0.7.0

func CheckAndPerformTelemetryConfigMigration()

CheckAndPerformTelemetryConfigMigration checks if telemetry config migration is needed and performs it. This migration converts telemetry_config.samplingRate from float64 to string in run configs. It handles both deprecated top-level telemetry_config and middleware-based telemetry configs.

Types

type DefaultGroupMigrator

type DefaultGroupMigrator struct {
	// contains filtered or unexported fields
}

DefaultGroupMigrator handles the migration of workloads and clients to the default group

func (*DefaultGroupMigrator) Migrate

func (m *DefaultGroupMigrator) Migrate(ctx context.Context) error

Migrate performs the complete default group migration

Jump to

Keyboard shortcuts

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