observability

package
v0.349.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AsyncCalls *AsyncCallMetrics
	Calls      *CallMetrics
	Deployment *DeploymentMetrics
	FSM        *FSMMetrics
	Ingress    *IngressMetrics
	PubSub     *PubSubMetrics
	Cron       *CronMetrics
)

Functions

func ExtractTraceContextToContext added in v0.326.0

func ExtractTraceContextToContext(ctx context.Context, traceContext []byte) (context.Context, error)

func RetrieveTraceContextFromContext added in v0.326.0

func RetrieveTraceContextFromContext(ctx context.Context) ([]byte, error)

Types

type AsyncCallMetrics added in v0.313.0

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

func (*AsyncCallMetrics) Acquired added in v0.313.0

func (m *AsyncCallMetrics) Acquired(ctx context.Context, verb schema.RefKey, catchVerb optional.Option[schema.RefKey], origin string, scheduledAt time.Time, isCatching bool, maybeErr error)

func (*AsyncCallMetrics) Completed added in v0.313.0

func (m *AsyncCallMetrics) Completed(ctx context.Context, verb schema.RefKey, catchVerb optional.Option[schema.RefKey], origin string, scheduledAt time.Time, isCatching bool, queueDepth int64, maybeErr error)

func (*AsyncCallMetrics) Created added in v0.320.0

func (m *AsyncCallMetrics) Created(ctx context.Context, verb schema.RefKey, catchVerb optional.Option[schema.RefKey], origin string, remainingAttempts int64, maybeErr error)

func (*AsyncCallMetrics) Executed added in v0.313.0

func (m *AsyncCallMetrics) Executed(ctx context.Context, verb schema.RefKey, catchVerb optional.Option[schema.RefKey], origin string, scheduledAt time.Time, isCatching bool, maybeFailureMode optional.Option[string])

func (*AsyncCallMetrics) RecordQueueDepth added in v0.320.0

func (m *AsyncCallMetrics) RecordQueueDepth(ctx context.Context, queueDepth int64)

type CallMetrics added in v0.322.0

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

func (*CallMetrics) Request added in v0.322.0

func (m *CallMetrics) Request(ctx context.Context, verb *schemapb.Ref, startTime time.Time, maybeFailureMode optional.Option[string])

type CronMetrics added in v0.324.0

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

func (*CronMetrics) JobFailed added in v0.324.0

func (m *CronMetrics) JobFailed(ctx context.Context, job model.CronJob)

func (*CronMetrics) JobFailedStart added in v0.324.0

func (m *CronMetrics) JobFailedStart(ctx context.Context, job model.CronJob)

func (*CronMetrics) JobKilled added in v0.324.0

func (m *CronMetrics) JobKilled(ctx context.Context, job model.CronJob)

func (*CronMetrics) JobStarted added in v0.324.0

func (m *CronMetrics) JobStarted(ctx context.Context, job model.CronJob)

func (*CronMetrics) JobSuccess added in v0.324.0

func (m *CronMetrics) JobSuccess(ctx context.Context, job model.CronJob)

type DeploymentMetrics added in v0.318.0

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

func (*DeploymentMetrics) ReconciliationComplete added in v0.318.0

func (m *DeploymentMetrics) ReconciliationComplete(ctx context.Context, module string, key string)

func (*DeploymentMetrics) ReconciliationFailure added in v0.318.0

func (m *DeploymentMetrics) ReconciliationFailure(ctx context.Context, module string, key string)

func (*DeploymentMetrics) ReconciliationStart added in v0.318.0

func (m *DeploymentMetrics) ReconciliationStart(ctx context.Context, module string, key string)

func (*DeploymentMetrics) ReplicasUpdated added in v0.318.0

func (m *DeploymentMetrics) ReplicasUpdated(ctx context.Context, module string, key string, delta int)

type FSMMetrics added in v0.308.0

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

func (*FSMMetrics) InstanceCompleted added in v0.308.0

func (m *FSMMetrics) InstanceCompleted(ctx context.Context, fsm schema.RefKey)

func (*FSMMetrics) InstanceCreated added in v0.308.0

func (m *FSMMetrics) InstanceCreated(ctx context.Context, fsm schema.RefKey)

func (*FSMMetrics) TransitionCompleted added in v0.308.0

func (m *FSMMetrics) TransitionCompleted(ctx context.Context, fsm schema.RefKey)

func (*FSMMetrics) TransitionStarted added in v0.308.0

func (m *FSMMetrics) TransitionStarted(ctx context.Context, fsm schema.RefKey, destState schema.RefKey)

type IngressMetrics added in v0.329.0

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

func (*IngressMetrics) Request added in v0.329.0

func (m *IngressMetrics) Request(ctx context.Context, method string, path string, verb optional.Option[*schemapb.Ref], startTime time.Time, failureMode optional.Option[string])

type PubSubMetrics added in v0.309.0

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

func (*PubSubMetrics) PropagationFailed added in v0.310.0

func (m *PubSubMetrics) PropagationFailed(ctx context.Context, failedOp string, topic model.TopicPayload, optCaller optional.Option[string], subscription schema.RefKey, sink optional.Option[schema.RefKey])

func (*PubSubMetrics) Published added in v0.309.0

func (m *PubSubMetrics) Published(ctx context.Context, module, topic, caller string, maybeErr error)

func (*PubSubMetrics) SinkCalled added in v0.310.0

func (m *PubSubMetrics) SinkCalled(ctx context.Context, topic model.TopicPayload, optCaller optional.Option[string], subscription, sink schema.RefKey)

Jump to

Keyboard shortcuts

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