tracing

package
v1.6.2-rc Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventConfigMapUpdateFailed     = "ConfigMapUpdateFailed"
	EventUpdateSubnetFailed        = "UpdateSubnetFailed"
	EventUpdateSecurityGroupFailed = "UpdateSecurityGroupFailed"

	EventNoAvailableSubnet               = "NoAvailableSubnet"
	EventSubnetAvailableIPBelowThreshold = "SubnetAvailableIPBelowThreshold"

	EventVpcResourceQuotaExceeded = "VpcResourceQuotaExceeded"
	EventOpenApiFlowLimit         = "OpenApiFlowLimit"
	EventInsufficientIpInSubnet   = "InsufficientIpInSubnet"
	EventGetInstanceQuotaFailed   = "GetInstanceQuotaFailed"
	EventInstanceQuotaUpdated     = "InstanceQuotaUpdated"

	EventMetadataServiceAbnormal   = "MetadataServiceAbnormal"
	EventCredentialServiceAbnormal = "CredentialServiceAbnormal"

	EventAllocateResourceFailed = "AllocateResourceFailed"
	EventReleaseResourceFailed  = "ReleaseResourceFailed"
)

Variables

This section is empty.

Functions

func RecordNodeEvent

func RecordNodeEvent(eventType, reason, message string) error

RecordNodeEvent records node event via PodEventRecorder.

func RecordPodEvent

func RecordPodEvent(podName, podNamespace, eventType, reason, message string) error

RecordPodEvent records pod event via PodEventRecorder.

func RegisterEventRecorder

func RegisterEventRecorder(node NodeEventRecorder, pod PodEventRecorder)

RegisterEventRecorder registers pod & node event recorder to a tracer.

Types

type NodeEventRecorder

type NodeEventRecorder func(eventType, reason, message string)

NodeEventRecorder records event on node.

type PodEventRecorder

type PodEventRecorder func(podName, podNamespace, eventType, reason, message string) error

PodEventRecorder records event on pod.

type Tracer

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

Tracer manages tracing handlers registered from the system.

func DefaultGlobalTracer

func DefaultGlobalTracer() *Tracer

func NewTracer

func NewTracer() *Tracer

NewTracer creates a new tracer.

func (*Tracer) RecordNodeEvent

func (t *Tracer) RecordNodeEvent(eventType, reason, message string) error

RecordNodeEvent records node event via PodEventRecorder.

func (*Tracer) RecordPodEvent

func (t *Tracer) RecordPodEvent(podName, podNamespace, eventType, reason, message string) error

RecordPodEvent records pod event via PodEventRecorder.

func (*Tracer) RegisterEventRecorder

func (t *Tracer) RegisterEventRecorder(node NodeEventRecorder, pod PodEventRecorder)

RegisterEventRecorder registers pod & node event recorder to a tracer.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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