Fetch the repository succeeded.
package awsxray
import (
"github.com/aws/aws-sdk-go/service/xray"
)
type Options struct {
// XRay Client when using API
Client *xray.XRay
// Daemon address when using UDP
Daemon string
// Name of segments e.g the service
Name string
}
type Option func(o *Options)
// WithName sets the name used for each segment. Use Service Name
func WithName(name string) Option {
return func(o *Options) {
o.Name = name
}
}
// WithClient sets the XRay Client to use to send segments
func WithClient(x *xray.XRay) Option {
return func(o *Options) {
o.Client = x
}
}
// WithDaemon sets the address of the XRay Daemon to send segements
func WithDaemon(addr string) Option {
return func(o *Options) {
o.Daemon = addr
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。