otlptracegrpc

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(cc *grpc.ClientConn) otlptrace.Client

NewClient creates a new gRPC trace client.

Types

type Connection

type Connection struct {
	// contains filtered or unexported fields
}

func NewConnection

func NewConnection(cc *grpc.ClientConn, handler func(cc *grpc.ClientConn)) *Connection

func (*Connection) Connected

func (c *Connection) Connected() bool

func (*Connection) ContextWithMetadata

func (c *Connection) ContextWithMetadata(ctx context.Context) context.Context

func (*Connection) ContextWithStop

func (c *Connection) ContextWithStop(ctx context.Context) (context.Context, context.CancelCauseFunc)

func (*Connection) LastConnectError

func (c *Connection) LastConnectError() error

func (*Connection) SetStateDisconnected

func (c *Connection) SetStateDisconnected(err error)

func (*Connection) Shutdown

func (c *Connection) Shutdown(ctx context.Context) error

func (*Connection) StartConnection

func (c *Connection) StartConnection(ctx context.Context) error

Jump to

Keyboard shortcuts

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