aogrpc

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StreamClientInterceptor

func StreamClientInterceptor(target string, serviceName string) grpc.StreamClientInterceptor

StreamClientInterceptor returns an interceptor that traces a streaming RPC from a gRPC client to a server using AppOptics, by propagating the distributed trace's context from client to server using gRPC metadata. The client span starts with the first message and ends when all request and response messages have finished streaming.

func StreamServerInterceptor

func StreamServerInterceptor(serverName string) grpc.StreamServerInterceptor

StreamServerInterceptor returns an interceptor that traces gRPC streaming server RPCs using AppOptics. Each server span starts with the first message and ends when all request and response messages have finished streaming.

func UnaryClientInterceptor

func UnaryClientInterceptor(target string, serviceName string) grpc.UnaryClientInterceptor

UnaryClientInterceptor returns an interceptor that traces a unary RPC from a gRPC client to a server using AppOptics, by propagating the distributed trace's context from client to server using gRPC metadata.

func UnaryServerInterceptor

func UnaryServerInterceptor(serverName string) grpc.UnaryServerInterceptor

UnaryServerInterceptor returns an interceptor that traces gRPC unary server RPCs using AppOptics. If the client is using UnaryClientInterceptor, the distributed trace's context will be read from the client.

Types

type StackTracer

type StackTracer interface {
	StackTrace() errors.StackTrace
}

StackTracer is a copy of the stackTracer interface of pkg/errors.

This may be fragile as stackTracer is not imported, just try our best though.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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