clientconfig

package module
v9.0.0-...-17e396d Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientLogger

func ClientLogger(wagAppName string) *logger.Logger

func Default

func Default(wagAppName string) (*logger.Logger, *http.RoundTripper)

Default returns a logger and a transport to use in client requests. It is meant as a convenience function for initiating Wag clients

func DefaultInstrumentor

func DefaultInstrumentor(baseTransport http.RoundTripper, appName string) http.RoundTripper

DefaultInstrumentor returns the transport to use in client requests. It takes in a transport to wrap, e.g. http.DefaultTransport, and the app it will be a client of

func WithTracing

func WithTracing(wagAppName string, exporter sdktrace.SpanExporter) (*logger.Logger, *http.RoundTripper)

WithTracing is now Deprecated and so is WithoutTracing, but both are still provided for backwards compatibility. Use Default instad.

func WithoutTracing

func WithoutTracing(wagAppName string) (*logger.Logger, *http.RoundTripper)

WithoutTracing is now Deprecated and so is WithTracing, but both are still provided for backwards compatibility. Use Default instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

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