Documentation ¶
Index ¶
- Constants
- Variables
- func BrokerFilterName(args BrokerFilterNameArgs) string
- func BrokerIngressName(args BrokerIngressNameArgs) string
- func BrokerMessagingDestination(b types.NamespacedName) string
- func BrokerMessagingDestinationAttribute(b types.NamespacedName) trace.Attribute
- func MessagingMessageIDAttribute(ID string) trace.Attribute
- func MessagingProtocolAttribute(protocol string) trace.Attribute
- func PopulateSpan(span *trace.Span, destination string) binding.TransformerFunc
- func TriggerMessagingDestination(t types.NamespacedName) string
- func TriggerMessagingDestinationAttribute(t types.NamespacedName) trace.Attribute
- type BrokerFilterNameArgs
- type BrokerIngressNameArgs
Constants ¶
View Source
const ( MessagingSystemAttributeName = "messaging.system" MessagingDestinationAttributeName = "messaging.destination" MessagingProtocolAttributeName = "messaging.protocol" MessagingMessageIDAttributeName = "messaging.message_id" )
Variables ¶
View Source
var ( MessagingSystemAttribute trace.Attribute = trace.StringAttribute(MessagingSystemAttributeName, "knative") MessagingProtocolHTTP trace.Attribute = MessagingProtocolAttribute("HTTP") )
Functions ¶
func BrokerFilterName ¶ added in v0.7.0
func BrokerFilterName(args BrokerFilterNameArgs) string
BrokerFilterName creates the service name for Broker Filters to use when writing traces.
func BrokerIngressName ¶ added in v0.7.0
func BrokerIngressName(args BrokerIngressNameArgs) string
BrokerIngressName creates the service name for Broker Ingresses to use when writing Zipkin traces.
func BrokerMessagingDestination ¶ added in v0.15.0
func BrokerMessagingDestination(b types.NamespacedName) string
func BrokerMessagingDestinationAttribute ¶ added in v0.15.0
func BrokerMessagingDestinationAttribute(b types.NamespacedName) trace.Attribute
func MessagingMessageIDAttribute ¶ added in v0.15.0
func MessagingProtocolAttribute ¶ added in v0.15.0
func PopulateSpan ¶ added in v0.14.0
func PopulateSpan(span *trace.Span, destination string) binding.TransformerFunc
func TriggerMessagingDestination ¶ added in v0.15.0
func TriggerMessagingDestination(t types.NamespacedName) string
func TriggerMessagingDestinationAttribute ¶ added in v0.15.0
func TriggerMessagingDestinationAttribute(t types.NamespacedName) trace.Attribute
Types ¶
type BrokerFilterNameArgs ¶ added in v0.7.0
BrokerFilterNameArgs are the arguments needed to generate the BrokerFilterName.
type BrokerIngressNameArgs ¶ added in v0.7.0
BrokerIngressNameArgs are the arguments needed to generate the BrokerIngressName.
Click to show internal directories.
Click to hide internal directories.