Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HTTPServerModule = fx.Module("httpserver", fx.Provide( NewHTTP, ), fx.Decorate(wrapLogger), )
View Source
var TracerProviderModule = fx.Module("tracerProvider", fx.Provide(NewTracerProvider), )
Functions ¶
func NewTracerProvider ¶
func NewTracerProvider(p TracingParams) (*tracesdk.TracerProvider, error)
tracerProvider returns an OpenTelemetry TracerProvider configured to use the Jaeger exporter that will send spans to the provided url. The returned TracerProvider will also use a Resource configured with all the information about the application.
Types ¶
type ServerParams ¶
type ServerResult ¶
func NewHTTP ¶
func NewHTTP(p ServerParams) (ServerResult, error)
NewHTTP builds an HTTP server that will begin serving requests when the Fx application starts.
Click to show internal directories.
Click to hide internal directories.