Documentation ¶
Index ¶
- func AddCodeTags(ctx context.Context)
- func StartSpan(operationName string, opts ...tracer.StartSpanOption) tracer.Span
- func StartSpanFromContext(ctx context.Context, operationName string, opts ...tracer.StartSpanOption) (tracer.Span, context.Context)
- func WrapClient(c *http.Client, opts ...httptrace.RoundTripperOption) *http.Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCodeTags ¶
AddCodeTags attaches code metadata to the current span. It should only be used, when the span is automatically created by Datadog, like for web frameworks handler functions
func StartSpan ¶
func StartSpan(operationName string, opts ...tracer.StartSpanOption) tracer.Span
StartSpan wraps Datadog's tracer.StartSpan and attaches code metadata to the span.
func StartSpanFromContext ¶
func StartSpanFromContext(ctx context.Context, operationName string, opts ...tracer.StartSpanOption) (tracer.Span, context.Context)
StartSpanFromContext wraps Datadog's tracer.StartSpanFromContext and attaches code metadata to the span.
func WrapClient ¶
WrapClient wraps Datadog's httptrace.WrapClient and attaches code metadata to the spans.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.