Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultTracer ¶
DefaultTracer returns the default tracer that has been set with InitDefaultTracer. If InitDefaultTracer has never been called, the returned default tracer is an OTEL tracer with its name set to a generic name (`defaultTracerName`)
func Error ¶ added in v0.240.0
Error sets the status to error and record the error as an exception in the provided span.
func Errorf ¶ added in v0.240.0
Errorf wraps fmt.Errorf and also sets the status to error and record the error as an exception in the provided span.
func InitDefaultTracer ¶
InitDefaultTracer sets the default tracer to the specified value. This method should only be called once during the plugin's initialization, and it's not safe for concurrent use.
Types ¶
Click to show internal directories.
Click to hide internal directories.