telemetry

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TelemetryOption

type TelemetryOption func(*TelemetryPlugin)

func WithDefaultTTL

func WithDefaultTTL(ttl time.Duration) TelemetryOption

func WithHumanStepTTL

func WithHumanStepTTL(ttl time.Duration) TelemetryOption

type TelemetryPlugin

type TelemetryPlugin struct {
	floxy.BasePlugin
	// contains filtered or unexported fields
}

func New

func New(tracer trace.Tracer, opts ...TelemetryOption) *TelemetryPlugin

func (*TelemetryPlugin) OnRollbackStepChain

func (p *TelemetryPlugin) OnRollbackStepChain(
	ctx context.Context,
	instanceID int64,
	stepName string,
	depth int,
) error

func (*TelemetryPlugin) OnStepComplete

func (p *TelemetryPlugin) OnStepComplete(
	ctx context.Context,
	instance *floxy.WorkflowInstance,
	step *floxy.WorkflowStep,
) error

func (*TelemetryPlugin) OnStepFailed

func (p *TelemetryPlugin) OnStepFailed(
	ctx context.Context,
	instance *floxy.WorkflowInstance,
	step *floxy.WorkflowStep,
	err error,
) error

func (*TelemetryPlugin) OnStepStart

func (p *TelemetryPlugin) OnStepStart(
	ctx context.Context,
	instance *floxy.WorkflowInstance,
	step *floxy.WorkflowStep,
) error

func (*TelemetryPlugin) OnWorkflowComplete

func (p *TelemetryPlugin) OnWorkflowComplete(ctx context.Context, instance *floxy.WorkflowInstance) error

func (*TelemetryPlugin) OnWorkflowFailed

func (p *TelemetryPlugin) OnWorkflowFailed(ctx context.Context, instance *floxy.WorkflowInstance) error

func (*TelemetryPlugin) OnWorkflowStart

func (p *TelemetryPlugin) OnWorkflowStart(ctx context.Context, instance *floxy.WorkflowInstance) error

Jump to

Keyboard shortcuts

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