Documentation
¶
Index ¶
- func CloseMigrationSpan(migrationUID string)
- func GetSpanForMigrationUID(migrationUID string) opentracing.Span
- func InitJaeger(service string) (opentracing.Tracer, io.Closer)
- func RemoveSpanForMigrationUID(migrationUID string)
- func SetSpanForMigrationUID(migrationUID string, span opentracing.Span)
- type MigrationSpanMap
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.
Click to show internal directories.
Click to hide internal directories.