Documentation
¶
Overview ¶
Package semconv defines OpenTelemetry semantic convention attribute keys used by goflux for metrics and traces.
Index ¶
Constants ¶
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 AckDeliveryCount ¶ added in v0.11.0
AckDeliveryCount returns an attribute with the transport-reported delivery count.
func MessageDuplicate ¶ added in v0.12.0
MessageDuplicate returns an attribute indicating whether the broker dropped the published message as a duplicate.
func ReplyBodySize ¶ added in v0.6.0
ReplyBodySize returns an attribute with the reply/response body size in bytes.
func ReplySubject ¶ added in v0.6.0
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. |