tracing

package
v0.20.4 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 3 Imported by: 90

Documentation

Index

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 MessagingMessageIDAttribute(ID string) trace.Attribute

func MessagingProtocolAttribute added in v0.15.0

func MessagingProtocolAttribute(protocol string) trace.Attribute

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

type BrokerFilterNameArgs struct {
	Namespace  string
	BrokerName string
}

BrokerFilterNameArgs are the arguments needed to generate the BrokerFilterName.

type BrokerIngressNameArgs added in v0.7.0

type BrokerIngressNameArgs struct {
	Namespace  string
	BrokerName string
}

BrokerIngressNameArgs are the arguments needed to generate the BrokerIngressName.

Jump to

Keyboard shortcuts

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