interceptor

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StreamInterceptor

func StreamInterceptor(opts ...Option) grpc.StreamClientInterceptor

Types

type HeaderSpanDecorator

type HeaderSpanDecorator func(ctx context.Context, span trace.Span, header metadata.MD)

type Option

type Option func(*interceptorOption)

func WithDefaultDecorators

func WithDefaultDecorators() Option

func WithHeaderSpanDecorators

func WithHeaderSpanDecorators(decorators ...HeaderSpanDecorator) Option

func WithStatsSpanDecorators

func WithStatsSpanDecorators(decorators ...StatsSpanDecorator) Option

type StatsSpanDecorator

type StatsSpanDecorator func(ctx context.Context, span trace.Span, stats *sppb.ResultSetStats)

Jump to

Keyboard shortcuts

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