debug

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 8 Imported by: 0

README

Debug

The debug module mainly facilitates users to debug exceptions. It currently supports printing specific fields for invalid utf-8 errors. It will later support printing of dyeing data, remote error code mapping configuration and other capabilities. When using it, you can set the environment variable OTEL_SDK_DEBUG to support opening multiple debuggers in combination. The supported debuggers are as follows:

utf8 debugger

By setting the environment variable OTEL_SDK_DEBUG to utf8, the framework will automatically print relevant information when encountering an invalid utf-8 error during log/trace export.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UTF8Debugger

type UTF8Debugger interface {
	Enabled() bool
	DebugSpansInvalidUTF8(exportErr error, batch []sdktrace.ReadOnlySpan)
	DebugLogsInvalidUTF8(exportErr error, batch []*logsproto.ResourceLogs)
}

UTF8Debugger SDK debugger

func NewUTF8Debugger

func NewUTF8Debugger() UTF8Debugger

NewUTF8Debugger new debugger

Jump to

Keyboard shortcuts

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