filters

package
v0.57.0 Latest Latest
Warning

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

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

Documentation

Overview

Package filters provides a set of filters useful with the otelgrpc.WithFilter option to control which inbound requests are instrumented.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(fs ...otelgrpc.Filter) otelgrpc.Filter

All takes a list of Filters and returns a Filter that returns true only if all Filters in the list return true.

func Any

func Any(fs ...otelgrpc.Filter) otelgrpc.Filter

Any takes a list of Filters and returns a Filter that returns true if any Filter in the list returns true.

func FullMethodName

func FullMethodName(n string) otelgrpc.Filter

FullMethodName returns a Filter that returns true if the request's full RPC method string, i.e. /package.service/method, starts with the provided string n.

func HealthCheck

func HealthCheck() otelgrpc.Filter

HealthCheck returns a Filter that returns true if the request's service name is health check defined by gRPC Health Checking Protocol. https://github.com/grpc/grpc/blob/master/doc/health-checking.md

func MethodName

func MethodName(n string) otelgrpc.Filter

MethodName returns a Filter that returns true if the request's method name matches the provided string n.

func MethodPrefix

func MethodPrefix(pre string) otelgrpc.Filter

MethodPrefix returns a Filter that returns true if the request's method starts with the provided string pre.

func None

func None(fs ...otelgrpc.Filter) otelgrpc.Filter

None takes a list of Filters and returns a Filter that returns true only if none of the Filters in the list return true.

func Not

Not provides a convenience mechanism for inverting a Filter.

func ServiceName

func ServiceName(s string) otelgrpc.Filter

ServiceName returns a Filter that returns true if the request's service name, i.e. package.service, matches s.

func ServicePrefix

func ServicePrefix(pre string) otelgrpc.Filter

ServicePrefix returns a Filter that returns true if the request's service name, i.e. package.service, starts with the provided string pre.

Types

This section is empty.

Directories

Path Synopsis
Package interceptor provides a set of filters useful with the otelgrpc.WithInterceptorFilter option to control which inbound requests are instrumented.
Package interceptor provides a set of filters useful with the otelgrpc.WithInterceptorFilter option to control which inbound requests are instrumented.

Jump to

Keyboard shortcuts

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