MCPcopy Create free account

hub / github.com/go-gorm/opentelemetry / functions

Functions122 in github.com/go-gorm/opentelemetry

↓ 9 callersMethodInfo
(v ...interface{})
logging/logrus/logger.go:46
↓ 8 callersMethodafter
()
tracing/tracing.go:233
↓ 7 callersMethodbefore
(spanName string)
tracing/tracing.go:195
↓ 6 callersMethodShutdown
(ctx context.Context)
provider/provider.go:20
↓ 5 callersFunctionNewWriter
(opts ...Option)
logging/slog/logger.go:14
↓ 5 callersFunctionattrMap
(attrs []attribute.KeyValue)
tracing/tracing_test.go:206
↓ 4 callersMethodError
(v ...interface{})
logging/logrus/logger.go:58
↓ 4 callersMethodHandle
(ctx context.Context, record slog.Record)
logging/slog/handler.go:43
↓ 4 callersMethodName
()
tracing/tracing.go:60
↓ 4 callersMethodWarn
(v ...interface{})
logging/logrus/logger.go:54
↓ 3 callersMethodDebug
(v ...interface{})
logging/logrus/logger.go:42
↓ 3 callersMethodFatalf
(format string, v ...interface{})
logging/logrus/logger.go:90
↓ 3 callersFunctionNewPlugin
(opts ...Option)
tracing/tracing.go:46
↓ 3 callersFunctionNewWriter
(opts ...Option)
logging/logrus/logger.go:15
↓ 3 callersMethodWarnf
(format string, v ...interface{})
logging/logrus/logger.go:82
↓ 3 callersMethodapply
(cfg *config)
provider/options.go:17
↓ 3 callersFunctionextractServerAddress
extractServerAddress extracts host:port from DSN while excluding sensitive information
tracing/tracing.go:114
↓ 2 callersMethodErrorf
(format string, v ...interface{})
logging/logrus/logger.go:86
↓ 2 callersFunctionNewTraceHandler
(w io.Writer, opts *slog.HandlerOptions, traceConfig *traceConfig)
logging/slog/handler.go:29
↓ 2 callersFunctionWithOutput
WithOutput slog writer
logging/slog/option.go:66
↓ 2 callersFunctionWithRecordStackTraceInSpan
WithRecordStackTraceInSpan record stack track option
logging/slog/option.go:88
↓ 2 callersFunctionWithTraceErrorSpanLevel
WithTraceErrorSpanLevel trace error span level option
logging/slog/option.go:81
↓ 2 callersFunctionhandleInitErr
(err error, message string)
provider/provider.go:166
↓ 2 callersFunctionstdoutProvider
(ctx context.Context)
logging/slog/logger_test.go:22
↓ 1 callersFunctionConfigureOpentelemetry
(ctx context.Context)
examples/metric/metrics/main.go:28
↓ 1 callersFunctionConfigureOpentelemetry
(ctx context.Context)
examples/demo/main.go:21
↓ 1 callersMethodDebugf
(format string, v ...interface{})
logging/logrus/logger.go:70
↓ 1 callersMethodInfof
(format string, v ...interface{})
logging/logrus/logger.go:74
↓ 1 callersFunctionNewTraceHook
(cfg *TraceHookConfig)
logging/logrus/hook.go:35
↓ 1 callersFunctionOtelSeverityText
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 callersFunctionPrintTraceID
(ctx context.Context)
examples/metric/metrics/main.go:54
↓ 1 callersFunctionPrintTraceID
(ctx context.Context)
examples/demo/main.go:47
↓ 1 callersMethodPrintf
(format string, v ...interface{})
logging/slog/logger.go:72
↓ 1 callersMethodRegister
(name string, fn func(*gorm.DB))
tracing/tracing.go:67
↓ 1 callersFunctionReportDBStatsMetrics
ReportDBStatsMetrics reports DBStats metrics using OpenTelemetry Metrics API.
metrics/metrics.go:36
↓ 1 callersMethodSetLvel
(level slog.Level)
logging/slog/logger.go:76
↓ 1 callersMethodSetOutput
(writer io.Writer)
logging/slog/logger.go:81
↓ 1 callersFunctionTraceURL
(span trace.Span)
examples/metric/metrics/main.go:58
↓ 1 callersFunctionTraceURL
(span trace.Span)
examples/demo/main.go:51
↓ 1 callersMethodTracef
(format string, v ...interface{})
logging/logrus/logger.go:66
↓ 1 callersFunctionWithHandlerOptions
WithHandlerOptions slog handler-options
logging/slog/option.go:58
↓ 1 callersFunctionWithLevel
WithLevel slog level
logging/slog/option.go:73
↓ 1 callersFunctionWithTracerProvider
WithTracerProvider configures a tracer provider that is used to create a tracer.
tracing/option.go:12
↓ 1 callersFunctionWithoutQueryVariables
WithoutQueryVariables configures the db.statement attribute to exclude query variables
tracing/option.go:33
↓ 1 callersFunctionWithoutServerAddress
WithoutServerAddress excludes db.server_address attribute.
tracing/option.go:61
↓ 1 callersFunctionconfigureMetrics
()
examples/metric/metrics/main.go:82
↓ 1 callersFunctionconfigureOpentelemetry
()
examples/metric/metrics/main.go:67
↓ 1 callersFunctionconfigureStdout
(ctx context.Context)
examples/metric/metrics/main.go:35
↓ 1 callersFunctionconfigureStdout
(ctx context.Context)
examples/demo/main.go:28
↓ 1 callersFunctiondbOperation
(query string)
tracing/tracing.go:326
↓ 1 callersFunctiondbSystem
(tx *gorm.DB)
tracing/tracing.go:305
↓ 1 callersFunctiondefaultConfig
()
logging/logrus/option.go:24
↓ 1 callersFunctiondefaultConfig
()
logging/slog/option.go:32
↓ 1 callersFunctiondefaultConfig
()
provider/options.go:53
↓ 1 callersFunctiondefaultCoreConfig
()
logging/slog/option.go:43
↓ 1 callersFunctionextractFromKeyValueFormat
Extracts host:port from PostgreSQL key-value format DSN
tracing/tracing.go:153
↓ 1 callersMethodformatQuery
(query string)
tracing/tracing.go:298
↓ 1 callersFunctionnewConfig
()
metrics/metrics.go:24
↓ 1 callersFunctionnewConfig
(opts []Option)
provider/options.go:43
↓ 1 callersFunctionnewResource
(cfg *config)
provider/provider.go:144
↓ 1 callersFunctionstdoutProvider
(ctx context.Context)
logging/logrus/logger_test.go:16
MethodCtxDebugf
(ctx context.Context, format string, v ...interface{})
logging/logrus/logger.go:98
MethodCtxErrorf
(ctx context.Context, format string, v ...interface{})
logging/logrus/logger.go:114
MethodCtxFatalf
(ctx context.Context, format string, v ...interface{})
logging/logrus/logger.go:118
MethodCtxInfof
(ctx context.Context, format string, v ...interface{})
logging/logrus/logger.go:102
MethodCtxNoticef
(ctx context.Context, format string, v ...interface{})
logging/logrus/logger.go:106
MethodCtxTracef
(ctx context.Context, format string, v ...interface{})
logging/logrus/logger.go:94
MethodCtxWarnf
(ctx context.Context, format string, v ...interface{})
logging/logrus/logger.go:110
MethodEnabled
(ctx context.Context, level slog.Level)
logging/slog/handler.go:39
MethodFatal
(v ...interface{})
logging/logrus/logger.go:62
MethodFire
(entry *logrus.Entry)
logging/logrus/hook.go:43
MethodInitialize
(db *gorm.DB)
tracing/tracing.go:70
MethodLevels
()
logging/logrus/hook.go:39
MethodLogger
()
logging/logrus/logger.go:34
MethodLogger
()
logging/slog/logger.go:68
FunctionNewOpenTelemetryProvider
NewOpenTelemetryProvider Initializes an otlp trace and metrics provider
provider/provider.go:47
MethodNotice
(v ...interface{})
logging/logrus/logger.go:50
MethodNoticef
(format string, v ...interface{})
logging/logrus/logger.go:78
MethodPrintf
(format string, v ...interface{})
logging/logrus/logger.go:126
MethodSetOutput
(writer io.Writer)
logging/logrus/logger.go:122
MethodShutdown
(ctx context.Context)
provider/provider.go:28
FunctionTestExtractServerAddress
TestExtractServerAddress tests the extractServerAddress function with various DSN formats
tracing/tracing_test.go:215
FunctionTestLogLevel
(t *testing.T)
logging/slog/logger_test.go:133
FunctionTestLogOption
(t *testing.T)
logging/slog/logger_test.go:151
FunctionTestLogger
(t *testing.T)
logging/logrus/logger_test.go:35
FunctionTestLogger
(t *testing.T)
logging/slog/logger_test.go:41
FunctionTestLoggerBase
(t *testing.T)
logging/slog/logger_test.go:84
FunctionTestOtel
(t *testing.T)
tracing/tracing_test.go:27
FunctionTestOtelPlugin_ContextRestoration
(t *testing.T)
tracing/tracing_test.go:171
MethodTrace
(v ...interface{})
logging/logrus/logger.go:38
FunctionWithAttributes
WithAttributes configures attributes that are used to create a span.
tracing/option.go:19
MethodWithAttrs
(attrs []slog.Attr)
logging/slog/handler.go:70
FunctionWithDBSystem
WithDBName configures a db.name attribute.
tracing/option.go:26
FunctionWithDeploymentEnvironment
WithDeploymentEnvironment configures `deployment.environment.name` resource attribute
provider/options.go:78
FunctionWithEnableMetrics
WithEnableMetrics enable metrics
provider/options.go:120
FunctionWithEnableTracing
WithEnableTracing enable tracing
provider/options.go:113
FunctionWithExportEndpoint
WithExportEndpoint configures export endpoint
provider/options.go:106
MethodWithGroup
(name string)
logging/slog/handler.go:74
FunctionWithHeaders
WithHeaders configures gRPC requests headers for exported telemetry data
provider/options.go:141
FunctionWithHook
(hook logrus.Hook)
logging/logrus/option.go:47
next →1–100 of 122, ranked by callers