options

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct{}

func (Client) GRPCOptions

func (Client) GRPCOptions(options ...grpc.DialOption) func(*config.Client)

GRPCOptions provide []grpc.DialOption to the client.

func (Client) MaxActiveServers

func (Client) MaxActiveServers(count int) func(*config.Client)

MaxActiveServers sets the maximum number of active servers the client will connect to. If there are more servers than this value, no requests will be made to them.

type Platform

type Platform struct{}

func (Platform) ClientOptions

func (Platform) ClientOptions(options ...func(*config.Client)) func(*config.Platform)

ClientOptions sets global settings for new clients that can be overwritten by local settings for each client.

func (Platform) OpenTelemetry

func (Platform) OpenTelemetry(serviceName string, sampleRate float64, exporters ...trace.SpanExporter) func(*config.Platform)

OpenTelemetry configures OpenTelemetry settings for clients and servers.

func (Platform) ServerOptions

func (Platform) ServerOptions(options ...func(*config.Server)) func(*config.Platform)

ServerOptions sets global settings for new servers that can be overwritten by local settings for each server.

type Server

type Server struct{}

func (Server) Attributes

func (Server) Attributes(attributes *attributes.Attributes) func(*config.Server)

Attributes are server settings that are accessible via the API.

func (Server) GRPCOptions

func (Server) GRPCOptions(options ...grpc.ServerOption) func(*config.Server)

GRPCOptions provide []grpc.ServerOption to the server.

func (Server) PublicAddr

func (Server) PublicAddr(publicAddr string) func(*config.Server)

PublicAddr is used when the server is not accessible to clients at the address it is located at.

Jump to

Keyboard shortcuts

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