tracing

package
v0.0.0-...-ec8378c Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseMigrationSpan

func CloseMigrationSpan(migrationUID string)

CloseMigrationSpan closes out the parent Migration Span safely

func GetSpanForMigrationUID

func GetSpanForMigrationUID(migrationUID string) opentracing.Span

GetSpanForMigrationUID returns the parent jaeger span for a migration

func InitJaeger

func InitJaeger(service string) (opentracing.Tracer, io.Closer)

InitJaeger returns an instance of Jaeger Tracer that samples 100% of traces and logs all spans to stdout.

func RemoveSpanForMigrationUID

func RemoveSpanForMigrationUID(migrationUID string)

RemoveSpanForMigrationUID removes a span from the span map once migration is complete.

func SetSpanForMigrationUID

func SetSpanForMigrationUID(migrationUID string, span opentracing.Span)

SetSpanForMigrationUID sets the parent jaeger span for a migration

Types

type MigrationSpanMap

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

MigrationSpanMap provides a map between MigMigration UID and associated Jaeger span. This is required so that all controllers can attach child spans to the correct parent migmigration span for unified tracing of work done during migrations.

Jump to

Keyboard shortcuts

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