Documentation
¶
Index ¶
- type Client
- type IHttpClient
- type OptOptionsSetter
- func WithHttpClient(opt IHttpClient) OptOptionsSetter
- func WithLogger(opt *slog.Logger) OptOptionsSetter
- func WithName(opt string) OptOptionsSetter
- func WithPropagator(opt Propagator) OptOptionsSetter
- func WithServiceToken(opt string) OptOptionsSetter
- func WithServiceUrl(opt string) OptOptionsSetter
- func WithTracerProvider(opt TracerProvider) OptOptionsSetter
- type Options
- type Payload
- type Propagator
- type Span
- type Tracer
- type TracerProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client sends RPC calls to a remote service.
type IHttpClient ¶
IHttpClient is a minimal HTTP client interface.
type OptOptionsSetter ¶
type OptOptionsSetter func(o *Options)
func WithHttpClient ¶
func WithHttpClient(opt IHttpClient) OptOptionsSetter
func WithLogger ¶
func WithLogger(opt *slog.Logger) OptOptionsSetter
func WithName ¶
func WithName(opt string) OptOptionsSetter
The client name that used by instrumentation.
func WithPropagator ¶
func WithPropagator(opt Propagator) OptOptionsSetter
func WithServiceToken ¶
func WithServiceToken(opt string) OptOptionsSetter
func WithServiceUrl ¶
func WithServiceUrl(opt string) OptOptionsSetter
func WithTracerProvider ¶
func WithTracerProvider(opt TracerProvider) OptOptionsSetter
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
Options configures the client.
func NewOptions ¶
func NewOptions( options ...OptOptionsSetter, ) Options
type Payload ¶
type Payload struct {
ID ctypes.ID `json:"id"`
Version string `json:"lrpc"` //nolint:tagliatelle
Params any `json:"params"`
}
Payload is the request body sent by client.
type Propagator ¶
Propagator injects trace headers into outgoing requests.
type TracerProvider ¶
type TracerProvider = internalobs.TracerProvider
TracerProvider creates tracers.
Click to show internal directories.
Click to hide internal directories.