otel

package
v0.0.0-...-6ef52c9 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...applyOption) gorm.Plugin

New constructs a new plugin based opentelemetry. It supports to trace all operations in gorm, so if you have already traced your servers, now this plugin will perfect your tracing job.

func WithLogResult

func WithLogResult(logResult bool) applyOption

WithLogResult enable otelPlugin to log the result of each executed sql.

func WithSqlParameters

func WithSqlParameters(logSqlParameters bool) applyOption

func WithTracerProvider

func WithTracerProvider(provider trace.TracerProvider) applyOption

WithTracerProvider specifies a tracer provider to use for creating a tracer. If none is specified, the global provider is used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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