Documentation
¶
Index ¶
- func Collect0(ctx context.Context, tracer trace.Tracer, name Collected, ...) error
- func Collect0C(ctx context.Context, name Collected, callback func(context.Context) error, ...) error
- func Collect1[T any](ctx context.Context, tracer trace.Tracer, name Collected, ...) (T, error)
- func Collect1C[T any](ctx context.Context, name Collected, callback func(context.Context) (T, error), ...) (T, error)
- func Collect2[T any, R any](ctx context.Context, tracer trace.Tracer, name Collected, ...) (T, R, error)
- func Collect2C[T any, R any](ctx context.Context, name Collected, ...) (T, R, error)
- func CollectAndLog0(ctx context.Context, tracer trace.Tracer, name Collected, ...) error
- func CollectAndLog0C(ctx context.Context, name Collected, callback func(context.Context) error, ...) error
- func CollectAndLog1[T any](ctx context.Context, tracer trace.Tracer, name Collected, ...) (T, error)
- func CollectAndLog1C[T any](ctx context.Context, name Collected, callback func(context.Context) (T, error), ...) (T, error)
- func CollectAndLogDuration0(ctx context.Context, tracer trace.Tracer, name Collected, ...) error
- func CollectAndLogDuration0C(ctx context.Context, name Collected, callback func(context.Context) error, ...) error
- func CollectAndLogDuration1[T any](ctx context.Context, tracer trace.Tracer, name Collected, ...) (T, error)
- func CollectAndLogDuration1C[T any](ctx context.Context, name Collected, callback func(context.Context) (T, error), ...) (T, error)
- func LoggerFromAttrs(zlb zerolog.Context, attrs []attribute.KeyValue) zerolog.Context
- type Collected
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Collect0 ¶
func Collect0(ctx context.Context, tracer trace.Tracer, name Collected, callback func(context.Context) error, opts ...trace.SpanStartOption) error
func Collect0C ¶ added in v0.0.395
func Collect0C(ctx context.Context, name Collected, callback func(context.Context) error, opts ...trace.SpanStartOption) error
func Collect1 ¶
func Collect1[T any](ctx context.Context, tracer trace.Tracer, name Collected, callback func(context.Context) (T, error), opts ...trace.SpanStartOption) (T, error)
func Collect1C ¶ added in v0.0.395
func Collect1C[T any](ctx context.Context, name Collected, callback func(context.Context) (T, error), opts ...trace.SpanStartOption) (T, error)
func Collect2 ¶ added in v0.0.323
func Collect2[T any, R any](ctx context.Context, tracer trace.Tracer, name Collected, callback func(context.Context) (T, R, error), opts ...trace.SpanStartOption) (T, R, error)
func Collect2C ¶ added in v0.0.395
func Collect2C[T any, R any](ctx context.Context, name Collected, callback func(context.Context) (T, R, error), opts ...trace.SpanStartOption) (T, R, error)
func CollectAndLog0 ¶ added in v0.0.323
func CollectAndLog0(ctx context.Context, tracer trace.Tracer, name Collected, callback func(context.Context) error, opts ...trace.SpanStartOption) error
func CollectAndLog0C ¶ added in v0.0.395
func CollectAndLog0C(ctx context.Context, name Collected, callback func(context.Context) error, opts ...trace.SpanStartOption) error
func CollectAndLog1 ¶ added in v0.0.323
func CollectAndLog1[T any](ctx context.Context, tracer trace.Tracer, name Collected, callback func(context.Context) (T, error), opts ...trace.SpanStartOption) (T, error)
func CollectAndLog1C ¶ added in v0.0.395
func CollectAndLog1C[T any](ctx context.Context, name Collected, callback func(context.Context) (T, error), opts ...trace.SpanStartOption) (T, error)
func CollectAndLogDuration0 ¶ added in v0.0.323
func CollectAndLogDuration0(ctx context.Context, tracer trace.Tracer, name Collected, callback func(context.Context) error, opts ...trace.SpanStartOption) error
func CollectAndLogDuration0C ¶ added in v0.0.395
func CollectAndLogDuration0C(ctx context.Context, name Collected, callback func(context.Context) error, opts ...trace.SpanStartOption) error
func CollectAndLogDuration1 ¶ added in v0.0.323
func CollectAndLogDuration1[T any](ctx context.Context, tracer trace.Tracer, name Collected, callback func(context.Context) (T, error), opts ...trace.SpanStartOption) (T, error)
func CollectAndLogDuration1C ¶ added in v0.0.395
func CollectAndLogDuration1C[T any](ctx context.Context, name Collected, callback func(context.Context) (T, error), opts ...trace.SpanStartOption) (T, error)
func LoggerFromAttrs ¶ added in v0.0.392
func LoggerFromAttrs(zlb zerolog.Context, attrs []attribute.KeyValue) zerolog.Context
Types ¶
Click to show internal directories.
Click to hide internal directories.