Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/go-gorm/opentelemetry
/ functions
Functions
122 in github.com/go-gorm/opentelemetry
⨍
Functions
122
◇
Types & classes
25
↓ 9 callers
Method
Info
(v ...interface{})
logging/logrus/logger.go:46
↓ 8 callers
Method
after
()
tracing/tracing.go:233
↓ 7 callers
Method
before
(spanName string)
tracing/tracing.go:195
↓ 6 callers
Method
Shutdown
(ctx context.Context)
provider/provider.go:20
↓ 5 callers
Function
NewWriter
(opts ...Option)
logging/slog/logger.go:14
↓ 5 callers
Function
attrMap
(attrs []attribute.KeyValue)
tracing/tracing_test.go:206
↓ 4 callers
Method
Error
(v ...interface{})
logging/logrus/logger.go:58
↓ 4 callers
Method
Handle
(ctx context.Context, record slog.Record)
logging/slog/handler.go:43
↓ 4 callers
Method
Name
()
tracing/tracing.go:60
↓ 4 callers
Method
Warn
(v ...interface{})
logging/logrus/logger.go:54
↓ 3 callers
Method
Debug
(v ...interface{})
logging/logrus/logger.go:42
↓ 3 callers
Method
Fatalf
(format string, v ...interface{})
logging/logrus/logger.go:90
↓ 3 callers
Function
NewPlugin
(opts ...Option)
tracing/tracing.go:46
↓ 3 callers
Function
NewWriter
(opts ...Option)
logging/logrus/logger.go:15
↓ 3 callers
Method
Warnf
(format string, v ...interface{})
logging/logrus/logger.go:82
↓ 3 callers
Method
apply
(cfg *config)
provider/options.go:17
↓ 3 callers
Function
extractServerAddress
extractServerAddress extracts host:port from DSN while excluding sensitive information
tracing/tracing.go:114
↓ 2 callers
Method
Errorf
(format string, v ...interface{})
logging/logrus/logger.go:86
↓ 2 callers
Function
NewTraceHandler
(w io.Writer, opts *slog.HandlerOptions, traceConfig *traceConfig)
logging/slog/handler.go:29
↓ 2 callers
Function
WithOutput
WithOutput slog writer
logging/slog/option.go:66
↓ 2 callers
Function
WithRecordStackTraceInSpan
WithRecordStackTraceInSpan record stack track option
logging/slog/option.go:88
↓ 2 callers
Function
WithTraceErrorSpanLevel
WithTraceErrorSpanLevel trace error span level option
logging/slog/option.go:81
↓ 2 callers
Function
handleInitErr
(err error, message string)
provider/provider.go:166
↓ 2 callers
Function
stdoutProvider
(ctx context.Context)
logging/slog/logger_test.go:22
↓ 1 callers
Function
ConfigureOpentelemetry
(ctx context.Context)
examples/metric/metrics/main.go:28
↓ 1 callers
Function
ConfigureOpentelemetry
(ctx context.Context)
examples/demo/main.go:21
↓ 1 callers
Method
Debugf
(format string, v ...interface{})
logging/logrus/logger.go:70
↓ 1 callers
Method
Infof
(format string, v ...interface{})
logging/logrus/logger.go:74
↓ 1 callers
Function
NewTraceHook
(cfg *TraceHookConfig)
logging/logrus/hook.go:35
↓ 1 callers
Function
OtelSeverityText
OtelSeverityText convert logrus level to otel severityText ref to https://github.com/open-telemetry/opentelemetry-specification/blob/main/specificatio
logging/logrus/util.go:11
↓ 1 callers
Function
PrintTraceID
(ctx context.Context)
examples/metric/metrics/main.go:54
↓ 1 callers
Function
PrintTraceID
(ctx context.Context)
examples/demo/main.go:47
↓ 1 callers
Method
Printf
(format string, v ...interface{})
logging/slog/logger.go:72
↓ 1 callers
Method
Register
(name string, fn func(*gorm.DB))
tracing/tracing.go:67
↓ 1 callers
Function
ReportDBStatsMetrics
ReportDBStatsMetrics reports DBStats metrics using OpenTelemetry Metrics API.
metrics/metrics.go:36
↓ 1 callers
Method
SetLvel
(level slog.Level)
logging/slog/logger.go:76
↓ 1 callers
Method
SetOutput
(writer io.Writer)
logging/slog/logger.go:81
↓ 1 callers
Function
TraceURL
(span trace.Span)
examples/metric/metrics/main.go:58
↓ 1 callers
Function
TraceURL
(span trace.Span)
examples/demo/main.go:51
↓ 1 callers
Method
Tracef
(format string, v ...interface{})
logging/logrus/logger.go:66
↓ 1 callers
Function
WithHandlerOptions
WithHandlerOptions slog handler-options
logging/slog/option.go:58
↓ 1 callers
Function
WithLevel
WithLevel slog level
logging/slog/option.go:73
↓ 1 callers
Function
WithTracerProvider
WithTracerProvider configures a tracer provider that is used to create a tracer.
tracing/option.go:12
↓ 1 callers
Function
WithoutQueryVariables
WithoutQueryVariables configures the db.statement attribute to exclude query variables
tracing/option.go:33
↓ 1 callers
Function
WithoutServerAddress
WithoutServerAddress excludes db.server_address attribute.
tracing/option.go:61
↓ 1 callers
Function
configureMetrics
()
examples/metric/metrics/main.go:82
↓ 1 callers
Function
configureOpentelemetry
()
examples/metric/metrics/main.go:67
↓ 1 callers
Function
configureStdout
(ctx context.Context)
examples/metric/metrics/main.go:35
↓ 1 callers
Function
configureStdout
(ctx context.Context)
examples/demo/main.go:28
↓ 1 callers
Function
dbOperation
(query string)
tracing/tracing.go:326
↓ 1 callers
Function
dbSystem
(tx *gorm.DB)
tracing/tracing.go:305
↓ 1 callers
Function
defaultConfig
()
logging/logrus/option.go:24
↓ 1 callers
Function
defaultConfig
()
logging/slog/option.go:32
↓ 1 callers
Function
defaultConfig
()
provider/options.go:53
↓ 1 callers
Function
defaultCoreConfig
()
logging/slog/option.go:43
↓ 1 callers
Function
extractFromKeyValueFormat
Extracts host:port from PostgreSQL key-value format DSN
tracing/tracing.go:153
↓ 1 callers
Method
formatQuery
(query string)
tracing/tracing.go:298
↓ 1 callers
Function
newConfig
()
metrics/metrics.go:24
↓ 1 callers
Function
newConfig
(opts []Option)
provider/options.go:43
↓ 1 callers
Function
newResource
(cfg *config)
provider/provider.go:144
↓ 1 callers
Function
stdoutProvider
(ctx context.Context)
logging/logrus/logger_test.go:16
Method
CtxDebugf
(ctx context.Context, format string, v ...interface{})
logging/logrus/logger.go:98
Method
CtxErrorf
(ctx context.Context, format string, v ...interface{})
logging/logrus/logger.go:114
Method
CtxFatalf
(ctx context.Context, format string, v ...interface{})
logging/logrus/logger.go:118
Method
CtxInfof
(ctx context.Context, format string, v ...interface{})
logging/logrus/logger.go:102
Method
CtxNoticef
(ctx context.Context, format string, v ...interface{})
logging/logrus/logger.go:106
Method
CtxTracef
(ctx context.Context, format string, v ...interface{})
logging/logrus/logger.go:94
Method
CtxWarnf
(ctx context.Context, format string, v ...interface{})
logging/logrus/logger.go:110
Method
Enabled
(ctx context.Context, level slog.Level)
logging/slog/handler.go:39
Method
Fatal
(v ...interface{})
logging/logrus/logger.go:62
Method
Fire
(entry *logrus.Entry)
logging/logrus/hook.go:43
Method
Initialize
(db *gorm.DB)
tracing/tracing.go:70
Method
Levels
()
logging/logrus/hook.go:39
Method
Logger
()
logging/logrus/logger.go:34
Method
Logger
()
logging/slog/logger.go:68
Function
NewOpenTelemetryProvider
NewOpenTelemetryProvider Initializes an otlp trace and metrics provider
provider/provider.go:47
Method
Notice
(v ...interface{})
logging/logrus/logger.go:50
Method
Noticef
(format string, v ...interface{})
logging/logrus/logger.go:78
Method
Printf
(format string, v ...interface{})
logging/logrus/logger.go:126
Method
SetOutput
(writer io.Writer)
logging/logrus/logger.go:122
Method
Shutdown
(ctx context.Context)
provider/provider.go:28
Function
TestExtractServerAddress
TestExtractServerAddress tests the extractServerAddress function with various DSN formats
tracing/tracing_test.go:215
Function
TestLogLevel
(t *testing.T)
logging/slog/logger_test.go:133
Function
TestLogOption
(t *testing.T)
logging/slog/logger_test.go:151
Function
TestLogger
(t *testing.T)
logging/logrus/logger_test.go:35
Function
TestLogger
(t *testing.T)
logging/slog/logger_test.go:41
Function
TestLoggerBase
(t *testing.T)
logging/slog/logger_test.go:84
Function
TestOtel
(t *testing.T)
tracing/tracing_test.go:27
Function
TestOtelPlugin_ContextRestoration
(t *testing.T)
tracing/tracing_test.go:171
Method
Trace
(v ...interface{})
logging/logrus/logger.go:38
Function
WithAttributes
WithAttributes configures attributes that are used to create a span.
tracing/option.go:19
Method
WithAttrs
(attrs []slog.Attr)
logging/slog/handler.go:70
Function
WithDBSystem
WithDBName configures a db.name attribute.
tracing/option.go:26
Function
WithDeploymentEnvironment
WithDeploymentEnvironment configures `deployment.environment.name` resource attribute
provider/options.go:78
Function
WithEnableMetrics
WithEnableMetrics enable metrics
provider/options.go:120
Function
WithEnableTracing
WithEnableTracing enable tracing
provider/options.go:113
Function
WithExportEndpoint
WithExportEndpoint configures export endpoint
provider/options.go:106
Method
WithGroup
(name string)
logging/slog/handler.go:74
Function
WithHeaders
WithHeaders configures gRPC requests headers for exported telemetry data
provider/options.go:141
Function
WithHook
(hook logrus.Hook)
logging/logrus/option.go:47
next →
1–100 of 122, ranked by callers