otelch

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package otelch provide OpenTelemetry instrumentation for go-faster/ch.

Index

Constants

View Source
const (
	QueryIDKey         = attribute.Key("ch.query.id")
	QuotaKeyKey        = attribute.Key("ch.quota.key")
	ProtocolVersionKey = attribute.Key("ch.protocol.version")
	ServerNameKey      = attribute.Key("ch.server.name")
	ErrorCodeKey       = attribute.Key("ch.error.code")
	ErrorNameKey       = attribute.Key("ch.error.name")
	BlocksSentKey      = attribute.Key("ch.blocks_sent")
	BlocksReceivedKey  = attribute.Key("ch.blocks_received")
	ColumnsReceivedKey = attribute.Key("ch.columns_received")
	RowsReceivedKey    = attribute.Key("ch.rows_received")
	RowsKey            = attribute.Key("ch.rows")
	BytesKey           = attribute.Key("ch.bytes")
)
View Source
const Name = "github.com/go-faster/ch"

Name of instrumentation.

Variables

This section is empty.

Functions

func BlocksReceived added in v0.35.0

func BlocksReceived(v int) attribute.KeyValue

BlocksReceived is cumulative received sent count during query execution.

func BlocksSent added in v0.35.0

func BlocksSent(v int) attribute.KeyValue

BlocksSent is cumulative blocks sent count during query execution.

func Bytes added in v0.35.0

func Bytes(v int) attribute.KeyValue

Bytes is cumulative bytes processed count during query execution.

func ColumnsReceived added in v0.36.0

func ColumnsReceived(v int) attribute.KeyValue

ColumnsReceived is count of columns in result.

func ErrorCode

func ErrorCode(v int) attribute.KeyValue

ErrorCode attribute.

func ErrorName

func ErrorName(v string) attribute.KeyValue

ErrorName attribute.

func ProtocolVersion

func ProtocolVersion(v int) attribute.KeyValue

ProtocolVersion attribute.

func QueryID

func QueryID(v string) attribute.KeyValue

QueryID attribute.

func QuotaKey

func QuotaKey(v string) attribute.KeyValue

QuotaKey attribute.

func Rows added in v0.35.0

func Rows(v int) attribute.KeyValue

Rows is cumulative rows processed count during query execution.

func RowsReceived added in v0.36.0

func RowsReceived(v int) attribute.KeyValue

RowsReceived is cumulative rows received count during query execution.

func SemVersion

func SemVersion() string

SemVersion is the semantic version to be supplied to tracer/meter creation.

func ServerName

func ServerName(v string) attribute.KeyValue

ServerName attribute.

func Version

func Version() string

Version is the current release version of the ch instrumentation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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