ktimeout

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Interceptor

func Interceptor(opts ...func(*Options)) interceptor.Interceptor

Interceptor returns an interceptor that adds OpenTelemetry tracing to the context.

func WithTimeout

func WithTimeout(timeout time.Duration) func(*Options)

WithTimeout sets the timeout for the interceptor.

Types

type Options

type Options struct {
	Timeout time.Duration
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL