Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEmitableSpan ¶
GetEmitableSpan starts and returns a trace.Span with a name that is used by the ExportSpan method to emit the span.
func InitializeLogger ¶
func InitializeLogger()
InitializeLogger initializes logging for Knative tests. It should be called prior to executing tests but after command-line flags have been processed. It is recommended doing it in the TestMain() function.
func InitializeMetricExporter ¶
func InitializeMetricExporter(context string)
InitializeMetricExporter initializes the metric exporter logger
Types ¶
type FormatLogger ¶
type FormatLogger func(template string, args ...interface{})
FormatLogger is a printf style function for logging in tests.
Click to show internal directories.
Click to hide internal directories.