package otelch
import "github.com/ClickHouse/ch-go/otelch"
Package otelch provide OpenTelemetry instrumentation for go-faster/ch.
Index ¶
- Constants
- func BlocksReceived(v int) attribute.KeyValue
- func BlocksSent(v int) attribute.KeyValue
- func Bytes(v int) attribute.KeyValue
- func ColumnsReceived(v int) attribute.KeyValue
- func ErrorCode(v int) attribute.KeyValue
- func ErrorName(v string) attribute.KeyValue
- func ProtocolVersion(v int) attribute.KeyValue
- func QueryID(v string) attribute.KeyValue
- func QuotaKey(v string) attribute.KeyValue
- func Rows(v int) attribute.KeyValue
- func RowsReceived(v int) attribute.KeyValue
- func SemVersion() string
- func ServerName(v string) attribute.KeyValue
- func Version() string
Constants ¶
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") )
const Name = "github.com/ClickHouse/ch-go"
Name of instrumentation.
Functions ¶
func BlocksReceived ¶
BlocksReceived is cumulative received sent count during query execution.
func BlocksSent ¶
BlocksSent is cumulative blocks sent count during query execution.
func Bytes ¶
Bytes is cumulative bytes processed count during query execution.
func ColumnsReceived ¶
ColumnsReceived is count of columns in result.
func ErrorCode ¶
ErrorCode attribute.
func ErrorName ¶
ErrorName attribute.
func ProtocolVersion ¶
ProtocolVersion attribute.
func QueryID ¶
QueryID attribute.
func QuotaKey ¶
QuotaKey attribute.
func Rows ¶
Rows is cumulative rows processed count during query execution.
func RowsReceived ¶
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 ¶
ServerName attribute.
func Version ¶
func Version() string
Version is the current release version of the ch instrumentation.
Source Files ¶
- Version
- v0.44.1
- Published
- Jun 19, 2022
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 1 minute ago –
Tools for package owners.