datadog

package
v0.0.0-...-833f758 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCodeTags

func AddCodeTags(ctx context.Context)

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

func WrapClient(c *http.Client, opts ...httptrace.RoundTripperOption) *http.Client

WrapClient wraps Datadog's httptrace.WrapClient and attaches code metadata to the spans.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL