MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / Error

Method Error

api/pkg/telemetry/gorm_logger.go:38–40  ·  view source on GitHub ↗
(ctx context.Context, s string, i ...any)

Source from the content-addressed store, hash-verified

36}
37
38func (gorm *gormLogger) Error(ctx context.Context, s string, i ...any) {
39 gorm.logger.WithSpan(gorm.tracer.Span(ctx).SpanContext()).Error(fmt.Errorf(s, i...))
40}
41
42func (gorm *gormLogger) Trace(ctx context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), err error) {
43 elapsed := time.Since(begin)

Callers

nothing calls this directly

Calls 3

ErrorMethod · 0.65
WithSpanMethod · 0.65
SpanMethod · 0.65

Tested by

no test coverage detected