otelgrpc

package
v0.0.0-...-1aa08c1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Overview

Package otelgrpc provide instrumentation primitives for gRPC clients and servers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Monitor

type Monitor interface {
	// Client returns the unary and stream interceptor required to instrument a
	// gRPC client instance.
	Client() (grpc.UnaryClientInterceptor, grpc.StreamClientInterceptor)

	// Server returns required gRPC interceptors to instrument a server instance.
	Server() (grpc.UnaryServerInterceptor, grpc.StreamServerInterceptor)
}

Monitor provide easy-to-use instrumentation primitives for gRPC clients and servers.

func NewMonitor

func NewMonitor() Monitor

NewMonitor returns a ready to use monitor instance that can be used to easily instrument gRPC clients and servers.

Jump to

Keyboard shortcuts

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