Documentation ¶
Index ¶
- func AddTraceToLogger(span tr.Span, logger logger.Provider) logger.Provider
- func AddTracerToClient(httpClient *http.Client, tracerProvider tr.TracerProvider) *http.Client
- func StartSpan(ctx context.Context, tracer tr.Tracer, name string, opts ...tr.SpanStartOption) (context.Context, func(options ...tr.SpanEndOption))
- type App
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTraceToLogger ¶ added in v4.37.0
AddTraceToLogger add span ID to the given logger
func AddTracerToClient ¶
AddTracerToClient add tracer to a given http client
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App of package
func (App) GetProvider ¶
func (a App) GetProvider() tr.TracerProvider
GetProvider returns current provider
Click to show internal directories.
Click to hide internal directories.