Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
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 WithIgnoreErrNotFound ¶ added in v1.0.3
func WithIgnoreErrNotFound(ignoreErrNotFound bool) applyOption
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.
Click to show internal directories.
Click to hide internal directories.