Documentation ¶
Index ¶
- Constants
- func ActivityIDAttribute(value string) attribute.KeyValue
- func ActivityTypeAttribute(value string) attribute.KeyValue
- func AnchorEventURIAttribute(value string) attribute.KeyValue
- func DIDSuffixAttribute(value string) attribute.KeyValue
- func MessageUUIDAttribute(value string) attribute.KeyValue
- func OutboxMessageTypeAttribute(value string) attribute.KeyValue
- func Tracer(subsystem Subsystem) trace.Tracer
- type Provider
- type ProviderType
- type Span
- type Subsystem
Constants ¶
const ( AttributeMessageUUID attribute.Key = "orb.messageUUID" AttributeActivityID attribute.Key = "orb.activityID" AttributeActivityType attribute.Key = "orb.activityType" AttributeOutboxMessageType attribute.Key = "orb.outboxMessageType" AttributeAnchorEventURI attribute.Key = "orb.anchorEventURI" AttributeDIDSuffix attribute.Key = "orb.didSuffix" )
Tracing attributes.
Variables ¶
This section is empty.
Functions ¶
func ActivityIDAttribute ¶
ActivityIDAttribute returns the orb.activityID tracing attribute.
func ActivityTypeAttribute ¶
ActivityTypeAttribute returns the orb.activityType tracing attribute.
func AnchorEventURIAttribute ¶
AnchorEventURIAttribute returns the orb.anchorEventURI tracing attribute.
func DIDSuffixAttribute ¶
DIDSuffixAttribute returns the orb.didSuffix tracing attribute.
func MessageUUIDAttribute ¶
MessageUUIDAttribute returns the orb.messageUUID tracing attribute.
func OutboxMessageTypeAttribute ¶
OutboxMessageTypeAttribute returns the orb.outboxMessageType tracing attribute.
Types ¶
type Provider ¶
type Provider interface { trace.TracerProvider Start() Stop() }
Provider creates tracers.
func Initialize ¶
Initialize creates and registers globally a new tracer Provider.
type ProviderType ¶
type ProviderType = string
ProviderType specifies the type of the tracer provider.
const ( // ProviderNone indicates that tracing is disabled. ProviderNone ProviderType = "" // ProviderJaeger indicates that tracing data should be in Jaeger format. ProviderJaeger ProviderType = "JAEGER" )
type Span ¶
type Span struct {
// contains filtered or unexported fields
}
Span is a wrapper around a trace.Span that ensures it is started only once and ended only if it was started.
func (*Span) End ¶
func (s *Span) End(opts ...trace.SpanEndOption)
End ends the span if it had been started.