datadog

package module
v2.0.0-...-03508dc Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package datadog provides wrappers for Datadog ddtrace

Index

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

func NewClientWrapper() client.Wrapper

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 SetNoDebugStack

func SetNoDebugStack(val bool)

SetNoDebugStack ...

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.

Jump to

Keyboard shortcuts

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