Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SemVersion ¶
func SemVersion() string
SemVersion is the semantic version to be supplied to tracer/meter creation.
func Version ¶
func Version() string
Version is the current release version of the xorm instrumentation.
func WrapEngine ¶
func WrapEngineGroup ¶
func WrapEngineGroup(eg *xorm.EngineGroup, opts ...Option)
Types ¶
type OpenTelemetryHook ¶
type OpenTelemetryHook struct {
// contains filtered or unexported fields
}
func (*OpenTelemetryHook) AfterProcess ¶
func (h *OpenTelemetryHook) AfterProcess(c *contexts.ContextHook) error
func (*OpenTelemetryHook) BeforeProcess ¶
func (h *OpenTelemetryHook) BeforeProcess(c *contexts.ContextHook) (context.Context, error)
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option specifies instrumentation configuration options.
func WithDBSystem ¶
WithDBSystem configures a db.system attribute. You should prefer using WithAttributes and semconv, for example, `otelsql.WithAttributes(semconv.DBSystemSqlite)`.
func WithFormatSQL ¶
func WithFormatSQLReplace ¶
func WithFormatSQLReplace() Option
func WithTracerProvider ¶
func WithTracerProvider(provider trace.TracerProvider) Option
WithTracerProvider with tracer provider.
Click to show internal directories.
Click to hide internal directories.