Documentation ¶
Index ¶
- Constants
- func SetAppendOtelAttrs(v bool)
- func SetClock(c clockwork.Clock)
- func SetDefaultLogger(l *slog.Logger)
- func SetDurationMetricUnit(unit string)
- func SetLogLevelOnFailure(level slog.Level)
- func SetLogLevelOnSuccess(level slog.Level)
- func SetMetricsEnabled(v bool)
- func SetTracingEnabled(v bool)
- type Option
- type Span
- type SpanConfig
Constants ¶
View Source
const ( DurationMetricUnitSecond = "ms" DurationMetricUnitMillisecond = "s" )
Variables ¶
This section is empty.
Functions ¶
func SetAppendOtelAttrs ¶ added in v0.2.0
func SetAppendOtelAttrs(v bool)
func SetDefaultLogger ¶
func SetDurationMetricUnit ¶ added in v0.2.0
func SetDurationMetricUnit(unit string)
func SetLogLevelOnFailure ¶ added in v0.2.0
func SetLogLevelOnSuccess ¶ added in v0.2.0
func SetMetricsEnabled ¶ added in v0.2.0
func SetMetricsEnabled(v bool)
func SetTracingEnabled ¶ added in v0.2.0
func SetTracingEnabled(v bool)
Types ¶
type Option ¶ added in v0.2.0
type Option func(cfg *SpanConfig)
type SpanConfig ¶ added in v0.2.0
type SpanConfig struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.