grpc

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package grpc provides gRPC-related additions within the Kite framework.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewgRPCLogger

func NewgRPCLogger() gRPCLog

func ObservabilityInterceptor

func ObservabilityInterceptor(logger Logger, metrics Metrics) grpc.UnaryServerInterceptor

func StreamObservabilityInterceptor

func StreamObservabilityInterceptor(logger Logger, metrics Metrics) grpc.StreamServerInterceptor

StreamObservabilityInterceptor handles logging, metrics, and tracing for streaming RPCs.

Types

type Logger

type Logger interface {
	Info(args ...any)
	Errorf(string, ...any)
	Debug(...any)
	Fatalf(string, ...any)
}

type Metrics

type Metrics interface {
	RecordHistogram(ctx context.Context, name string, value float64, labels ...string)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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