interceptor

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: Apache-2.0 Imports: 15 Imported by: 1

README

framework-interceptor

Go framework package for interceptor.

Installation

go get github.com/go-anyway/framework-interceptor@v1.0.0

Usage

See documentation for usage examples.

License

Apache License 2.0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetricsUnaryInterceptor

func MetricsUnaryInterceptor() grpc.UnaryServerInterceptor

MetricsUnaryInterceptor 创建 gRPC metrics 拦截器

func TraceUnaryClientInterceptor

func TraceUnaryClientInterceptor() grpc.UnaryClientInterceptor

TraceUnaryClientInterceptor 创建一个 gRPC 客户端一元拦截器,支持 OpenTelemetry 用于在客户端调用 gRPC 服务时注入追踪上下文并创建子 span

func TraceUnaryInterceptor

func TraceUnaryInterceptor() grpc.UnaryServerInterceptor

TraceUnaryInterceptor 创建一个 gRPC 一元拦截器,支持 OpenTelemetry

Types

This section is empty.

Jump to

Keyboard shortcuts

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