observability

package
v0.389.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AsyncCalls *AsyncCallMetrics
	Calls      *CallMetrics
	Deployment *DeploymentMetrics
	Ingress    *IngressMetrics
	PubSub     *PubSubMetrics
	Cron       *CronMetrics
	Controller *ControllerTracing
	Timeline   *TimelineMetrics
)

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) AcquireFailed added in v0.359.0

func (m *AsyncCallMetrics) AcquireFailed(ctx context.Context, err error)

AcquireFailed should be called if an acquisition failed before any call data could be retrieved.

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) BeginSpan added in v0.370.0

func (m *CallMetrics) BeginSpan(ctx context.Context, verb *schemapb.Ref) (context.Context, trace.Span)

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 ControllerTracing added in v0.371.0

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

func (*ControllerTracing) BeginSpan added in v0.371.0

func (m *ControllerTracing) BeginSpan(ctx context.Context, name string) (context.Context, trace.Span)

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 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)

type TimelineMetrics added in v0.373.1

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

func (*TimelineMetrics) Dropped added in v0.373.1

func (m *TimelineMetrics) Dropped(ctx context.Context)

func (*TimelineMetrics) Failed added in v0.373.1

func (m *TimelineMetrics) Failed(ctx context.Context, count int)

func (*TimelineMetrics) Inserted added in v0.373.1

func (m *TimelineMetrics) Inserted(ctx context.Context, count int)

Jump to

Keyboard shortcuts

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