Documentation ¶
Overview ¶
Package datadog provides wrappers for Datadog ddtrace
Index ¶
- Variables
- func NewCallWrapper() client.CallWrapper
- func NewClientWrapper() client.Wrapper
- func NewHandlerWrapper() server.HandlerWrapper
- func NewSubscriberWrapper() server.SubscriberWrapper
- func SetNoDebugStack(val bool)
- func StartSpanFromContext(ctx context.Context, operationName string, opts ...tracer.StartSpanOption) (tracer.Span, context.Context)
- type StatsProfile
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ClientProfile is used for RPC clients. ClientProfile = &StatsProfile{ Role: "micro.client", } // ServerProfile is used for RPC servers. ServerProfile = &StatsProfile{ Role: "micro.server", } )
Functions ¶
func NewCallWrapper ¶
func NewCallWrapper() client.CallWrapper
NewCallWrapper returns a Call Wrapper
func NewClientWrapper ¶
NewClientWrapper returns a Client wrapped in tracer
func NewHandlerWrapper ¶
func NewHandlerWrapper() server.HandlerWrapper
NewHandlerWrapper returns a Handler Wrapper
func NewSubscriberWrapper ¶
func NewSubscriberWrapper() server.SubscriberWrapper
NewSubscriberWrapper returns a Subscriber Wrapper
func StartSpanFromContext ¶
func StartSpanFromContext(ctx context.Context, operationName string, opts ...tracer.StartSpanOption) (tracer.Span, context.Context)
StartSpanFromContext returns a new span with the given operation name and options. If a span is found in the context, it will be used as the parent of the resulting span.
Types ¶
type StatsProfile ¶
type StatsProfile struct {
Role string
}
StatsProfile groups metrics-related data.
Click to show internal directories.
Click to hide internal directories.