grpcoteltrace

package
v0.0.0-...-32e62f0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StreamClientInterceptor

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

func StreamServerInterceptor

func StreamServerInterceptor(opts ...Option) grpc.StreamServerInterceptor

func UnaryClientInterceptor

func UnaryClientInterceptor(opts ...Option) grpc.UnaryClientInterceptor

func UnaryServerInterceptor

func UnaryServerInterceptor(opts ...Option) grpc.UnaryServerInterceptor

Types

type MetaDataCarrier

type MetaDataCarrier metadata.MD

MetaDataCarrier adapts metadata.MD to satisfy the TextMapCarrier interface.

func (MetaDataCarrier) Get

func (mc MetaDataCarrier) Get(key string) string

Get returns the value associated with the passed key.

func (MetaDataCarrier) Keys

func (mc MetaDataCarrier) Keys() []string

Keys lists the keys stored in this carrier.

func (MetaDataCarrier) Set

func (mc MetaDataCarrier) Set(key string, value string)

Set stores the key-value pair.

type Option

type Option func(o *options)

func WithPropagator

func WithPropagator(propagator propagation.TextMapPropagator) Option

func WithTracer

func WithTracer(tracer trace.Tracer) Option

Directories

Path Synopsis
example
greeter_client
Package main implements a client for Greeter service.
Package main implements a client for Greeter service.
greeter_server
Package main implements a server for Greeter service.
Package main implements a server for Greeter service.

Jump to

Keyboard shortcuts

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