semconv

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 1 Imported by: 3 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package semconv defines OpenTelemetry semantic convention attribute keys used by goflux for metrics and traces.

Index

Constants

View Source
const (
	// AckActionKey is the attribute key for the acknowledgment action (ack, nak, nak_with_delay, term).
	AckActionKey = attribute.Key("goflux.ack.action")
	// AckErrorKey is the attribute key indicating whether the ack operation itself failed.
	AckErrorKey = attribute.Key("goflux.ack.error")
	// AckDeliveryCountKey is the attribute key for the transport-reported delivery
	// count (see goflux.Delivery.NumDelivered) at the time the ack decision was made.
	AckDeliveryCountKey = attribute.Key("goflux.ack.delivery_count")
	// ReplyBodySizeKey is the attribute key for the reply/response body size, in
	// bytes. The standard messaging.message.body.size key describes the inbound
	// request, so the reply leg needs its own key to avoid overwriting it.
	ReplyBodySizeKey = attribute.Key("goflux.reply.body.size")
	// ReplySubjectKey is the attribute key for the subject the reply was received on.
	ReplySubjectKey = attribute.Key("goflux.reply.subject")
	// MessageDuplicateKey is the attribute key set on a publish span when the
	// broker reported the message as a duplicate of one it already stored
	// (JetStream Nats-Msg-Id deduplication) and dropped it.
	MessageDuplicateKey = attribute.Key("goflux.message.duplicate")
)

Attribute keys for goflux telemetry.

Variables

This section is empty.

Functions

func AckAction

func AckAction(v string) attribute.KeyValue

AckAction returns an attribute with the acknowledgment action.

func AckDeliveryCount added in v0.11.0

func AckDeliveryCount(v uint64) attribute.KeyValue

AckDeliveryCount returns an attribute with the transport-reported delivery count.

func AckError

func AckError(v bool) attribute.KeyValue

AckError returns an attribute indicating whether the ack operation itself failed.

func MessageDuplicate added in v0.12.0

func MessageDuplicate(v bool) attribute.KeyValue

MessageDuplicate returns an attribute indicating whether the broker dropped the published message as a duplicate.

func ReplyBodySize added in v0.6.0

func ReplyBodySize(v int) attribute.KeyValue

ReplyBodySize returns an attribute with the reply/response body size in bytes.

func ReplySubject added in v0.6.0

func ReplySubject(v string) attribute.KeyValue

ReplySubject returns an attribute with the subject the reply was received on.

Types

This section is empty.

Directories

Path Synopsis
Package gofluxconv provides typed OpenTelemetry metric instrument wrappers for goflux's transport-specific metrics.
Package gofluxconv provides typed OpenTelemetry metric instrument wrappers for goflux's transport-specific metrics.

Jump to

Keyboard shortcuts

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