Documentation ¶
Index ¶
- func InitTracing() func()
- func RegisterGRPCDailOption(dailOpts ...grpc.DialOption) []grpc.DialOption
- func RegisterGRPCServerOption(serverOpts ...grpc.ServerOption) []grpc.ServerOption
- func ServerOptionCredentials(serverOpts []grpc.ServerOption) []grpc.ServerOption
- func ServerOptionLogging(serverOpts []grpc.ServerOption) []grpc.ServerOption
- func ServerOptionRecovery(serverOpts []grpc.ServerOption) []grpc.ServerOption
- func ServerOptionTracing(serverOpts []grpc.ServerOption) []grpc.ServerOption
- func WithDailOptionCredentials(dialOpts []grpc.DialOption) []grpc.DialOption
- func WithDailOptionLogging(dialOpts []grpc.DialOption) []grpc.DialOption
- func WithDailOptionTracing(dialOpts []grpc.DialOption) []grpc.DialOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitTracing ¶
func InitTracing() func()
InitTracing OpenTelemetry tracing and return a function to stop the tracer provider
func RegisterGRPCDailOption ¶
func RegisterGRPCDailOption(dailOpts ...grpc.DialOption) []grpc.DialOption
RegisterGRPCDailOption returns grpc.Dial config option that turn on.
func RegisterGRPCServerOption ¶
func RegisterGRPCServerOption(serverOpts ...grpc.ServerOption) []grpc.ServerOption
RegisterGRPCServerOption returns grpc.Server config option that turn on.
func ServerOptionCredentials ¶
func ServerOptionCredentials(serverOpts []grpc.ServerOption) []grpc.ServerOption
ServerOptionCredentials ServerOption Credentials
func ServerOptionLogging ¶
func ServerOptionLogging(serverOpts []grpc.ServerOption) []grpc.ServerOption
ServerOptionLogging returns grpc.Server config option that turn on logging.
func ServerOptionRecovery ¶
func ServerOptionRecovery(serverOpts []grpc.ServerOption) []grpc.ServerOption
ServerOptionRecovery returns grpc.Server config option that turn on panic recovery.
func ServerOptionTracing ¶
func ServerOptionTracing(serverOpts []grpc.ServerOption) []grpc.ServerOption
ServerOptionTracing Use the OpenTelemetry gRPC server interceptor for tracing
func WithDailOptionCredentials ¶
func WithDailOptionCredentials(dialOpts []grpc.DialOption) []grpc.DialOption
WithDailOptionCredentials DialOption Credentials
func WithDailOptionLogging ¶
func WithDailOptionLogging(dialOpts []grpc.DialOption) []grpc.DialOption
WithDailOptionLogging returns grpc.DialOption config option that turn on logging.
func WithDailOptionTracing ¶
func WithDailOptionTracing(dialOpts []grpc.DialOption) []grpc.DialOption
WithDailOptionTracing Use the OpenTelemetry gRPC client interceptor for tracing
Types ¶
This section is empty.