tracing

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuntimeTracer

type RuntimeTracer struct{}

func (*RuntimeTracer) Logf

func (r *RuntimeTracer) Logf(ctx context.Context, category, format string, args ...any)

func (*RuntimeTracer) NewTask

func (r *RuntimeTracer) NewTask(ctx context.Context, taskType string) (context.Context, Task)

func (*RuntimeTracer) WithRegion

func (r *RuntimeTracer) WithRegion(ctx context.Context, regionName string, fn func())

type Task

type Task interface {
	End()
}

type Tracer

type Tracer interface {
	NewTask(ctx context.Context, taskType string) (context.Context, Task)
	WithRegion(ctx context.Context, regionName string, fn func())
	Logf(ctx context.Context, category, format string, args ...any)
}

Jump to

Keyboard shortcuts

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