sdk

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package sdk provides the OneAgentSDK interface, which is the entry point to all OneAgent SDK for Go functionality. See also package sdk/native, which provides functionality that does not require the OneAgent Go code module.

The first step in using the SDK is to acquire an instance of the OneAgentSDK interface by using the `CreateInstance` function.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OneAgentSDK

type OneAgentSDK interface {
	// GetTraceContextInfo returns information about the active PurePath node using the TraceContext model as defined
	// in https://www.w3.org/TR/trace-context. The returned information is not intended for tagging or
	// context propagation scenarios, it is primarily designed for log-enrichment use cases.
	//
	// The returned value may be invalid in case there is no active Dynatrace PurePath context.
	//
	// Since SDK version 1.0.0 - OneAgent version 1.233
	GetTraceContextInfo() trace.TraceContextInfo

	// GetEnrichmentMetadata returns metadata that can be used to manually enrich log messages when unsupported
	// logging frameworks are used.
	//
	// See also https://www.dynatrace.com/support/help/shortlink/enrich-metrics
	//
	// Since SDK version 1.1.0 - OneAgent version 1.245
	GetEnrichmentMetadata() map[string]string
}

OneAgentSDK provides the methods available in the OneAgent SDK for Go. All methods are safe for concurrent use from multiple goroutines.

func CreateInstance

func CreateInstance() OneAgentSDK

CreateInstance returns an instance of the OneAgent SDK.

Directories

Path Synopsis
Package native contains functionality that does not require the OneAgent Go code module.
Package native contains functionality that does not require the OneAgent Go code module.

Jump to

Keyboard shortcuts

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