package xrayserver
import "gocloud.dev/server/xrayserver"
Package xrayserver provides the diagnostic hooks for a server using AWS X-Ray.
Index ¶
- Variables
- func NewExporter(api xrayiface.XRayAPI) (*exporter.Exporter, func(), error)
- func NewRequestLogger() *requestlog.NCSALogger
- func NewXRayClient(p client.ConfigProvider) *xray.XRay
Variables ¶
ServiceSet is a Wire provider set that provides the AWS X-Ray service client given an AWS session.
var Set = wire.NewSet( server.Set, ServiceSet, NewExporter, wire.Bind(new(trace.Exporter), new(*exporter.Exporter)), NewRequestLogger, wire.Bind(new(requestlog.Logger), new(*requestlog.NCSALogger)), )
Set is a Wire provider set that provides the diagnostic hooks for *server.Server. This set includes ServiceSet.
Functions ¶
func NewExporter ¶
NewExporter returns a new X-Ray exporter.
The second return value is a Wire cleanup function that calls Close on the exporter, ignoring the error.
func NewRequestLogger ¶
func NewRequestLogger() *requestlog.NCSALogger
NewRequestLogger returns a request logger that sends entries to stdout.
func NewXRayClient ¶
func NewXRayClient(p client.ConfigProvider) *xray.XRay
NewXRayClient returns a new AWS X-Ray client.
Source Files ¶
server.go
- Version
- v0.37.0
- Published
- Mar 12, 2024
- Platform
- js/wasm
- Imports
- 10 packages
- Last checked
- 2 hours ago –
Tools for package owners.