Documentation ¶
Overview ¶
TODO Move this to knative/pkg's tracing package.
Index ¶
- Constants
- Variables
- func ConfigToJSON(cfg *tracingconfig.Config) (string, error)
- func JSONToConfig(jsonConfig string) (*tracingconfig.Config, error)
- func SourceDestination(resourceGroup string, src types.NamespacedName) string
- func SubscriptionDestination(s string) string
- func WithLogging(ctx context.Context, span *trace.Span) context.Context
Constants ¶
View Source
const ( LoggingTraceKey = "logging.googleapis.com/trace" LoggingSpanIDKey = "logging.googleapis.com/spanId" LoggingTraceSampledKey = "logging.googleapis.com/trace_sampled" )
View Source
const (
PubSubProtocol = "Pub/Sub"
)
Variables ¶
View Source
var (
PubSubProtocolAttribute = tracing.MessagingProtocolAttribute(PubSubProtocol)
)
Functions ¶
func ConfigToJSON ¶
func ConfigToJSON(cfg *tracingconfig.Config) (string, error)
ConfigToJSON marshals a tracingconfig.Config to a JSON string. It should round-trip with JSONToConfig. E.g. cfg == JSONToConfig(ConfigToJSON(cfg))
func JSONToConfig ¶
func JSONToConfig(jsonConfig string) (*tracingconfig.Config, error)
JSONToConfig converts a JSON marshaled version of the tracingconfig.Config back to the structure. It should round-trip with ConfigToJSON. E.g. cfg == JSONToConfig(ConfigToJSON(cfg))
func SourceDestination ¶
func SourceDestination(resourceGroup string, src types.NamespacedName) string
func SubscriptionDestination ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.