datadog

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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