globalmetric

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventMemoryTrackerUsage           = "MemoryTrackerUsage"
	EventMemoryTrackerPeakUsage       = "MemoryTrackerPeakUsage"
	EventOSCPUVirtualTimeMicroseconds = "OSCPUVirtualTimeMicroseconds"
	EventUserTimeMicroseconds         = "UserTimeMicroseconds"
	SystemTimeMicroseconds            = "SystemTimeMicroseconds"
	InterfaceNativeSendBytes          = "InterfaceNativeSendBytes"
	ReadCompressedBytes               = "ReadCompressedBytes"
	CompressedReadBufferBytes         = "CompressedReadBufferBytes"
	SelectedRows                      = "SelectedRows"
	OSReadBytes                       = "OSReadBytes"
	FileOpen                          = "FileOpen"
	NetworkSendBytes                  = "NetworkSendBytes"
)

Selected profile events.

See https://github.com/ClickHouse/ClickHouse/blob/99a58256d5ce16d7d67f20c088e9c12f6a11db2c/src/Common/ProfileEvents.cpp#L539

Variables

This section is empty.

Functions

func SetTracker

func SetTracker(t Tracker)

Types

type Track

type Track interface {
	End()
	OnProfiles(ctx context.Context, events []ch.ProfileEvent) error
}

type TrackOption

type TrackOption func(t *track)

TrackOption configures a [track].

func WithAttributes

func WithAttributes(attrs ...attribute.KeyValue) TrackOption

WithAttributes sets attributes for the track.

type Tracker

type Tracker interface {
	Start(ctx context.Context, opts ...TrackOption) (context.Context, Track)
}

func GetTracker

func GetTracker() Tracker

func NewNoopTracker

func NewNoopTracker() Tracker

func NewTracker

func NewTracker(meterProvider metric.MeterProvider, tracerProvider trace.TracerProvider) (Tracker, error)

Jump to

Keyboard shortcuts

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