Documentation ¶
Index ¶
- Constants
- func ConfigureLogging(ctx context.Context, name string) context.Context
- func ConfigureTracing(logger *zap.SugaredLogger, serviceName string) (tracing.Tracer, error)
- func ParseDurationStr(durationStr string, defaultDuration int) time.Duration
- func ParseHeaders(serializedHeaders string) http.Header
Constants ¶
View Source
const ( ConfigTracingEnv = "K_CONFIG_TRACING" ConfigLoggingEnv = "K_CONFIG_LOGGING" )
Variables ¶
This section is empty.
Functions ¶
func ConfigureLogging ¶ added in v0.19.0
ConfigureLogging can be used in test-images to configure logging.
func ConfigureTracing ¶
ConfigureTracing can be used in test-images to configure tracing.
func ParseDurationStr ¶
ParseDurationStr parses `durationStr` as number of seconds (not time.Duration string), if parsing fails, returns back default duration.
func ParseHeaders ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.