Documentation ¶
Index ¶
- func ClientLogger(wagAppName string) *logger.Logger
- func Default(wagAppName string) (*logger.Logger, *http.RoundTripper)
- func DefaultInstrumentor(baseTransport http.RoundTripper, appName string) http.RoundTripper
- func WithTracing(wagAppName string, exporter sdktrace.SpanExporter) (*logger.Logger, *http.RoundTripper)
- func WithoutTracing(wagAppName string) (*logger.Logger, *http.RoundTripper)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientLogger ¶
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.
Click to show internal directories.
Click to hide internal directories.