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 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址