@@ -24,7 +24,7 @@ type Repository struct {
24
24
25
25
func (repo Repository ) QueryFn (ctx context.Context , queryFn func (* SelectQuery )) (* sql.Rows , error ) {
26
26
if repo .Tracer != nil {
27
- spanCtx , span := repo .Tracer () .Start (ctx , "QueryFn" )
27
+ spanCtx , span := repo .Tracer .Start (ctx , "QueryFn" )
28
28
ctx = spanCtx
29
29
defer span .End ()
30
30
}
@@ -36,7 +36,7 @@ func (repo Repository) QueryFn(ctx context.Context, queryFn func(*SelectQuery))
36
36
37
37
func (repo Repository ) Query (ctx context.Context , query SelectQuery ) (* sql.Rows , error ) {
38
38
if repo .Tracer != nil {
39
- spanCtx , span := repo .Tracer () .Start (ctx , "Query" )
39
+ spanCtx , span := repo .Tracer .Start (ctx , "Query" )
40
40
ctx = spanCtx
41
41
defer span .End ()
42
42
}
@@ -72,7 +72,7 @@ func (repo Repository) Query(ctx context.Context, query SelectQuery) (*sql.Rows,
72
72
73
73
func (repo Repository ) QueryRowFn (ctx context.Context , queryFn func (* SelectQuery )) (* sql.Row , error ) {
74
74
if repo .Tracer != nil {
75
- spanCtx , span := repo .Tracer () .Start (ctx , "QueryRowFn" )
75
+ spanCtx , span := repo .Tracer .Start (ctx , "QueryRowFn" )
76
76
ctx = spanCtx
77
77
defer span .End ()
78
78
}
@@ -84,7 +84,7 @@ func (repo Repository) QueryRowFn(ctx context.Context, queryFn func(*SelectQuery
84
84
85
85
func (repo Repository ) QueryRow (ctx context.Context , query SelectQuery ) (* sql.Row , error ) {
86
86
if repo .Tracer != nil {
87
- spanCtx , span := repo .Tracer () .Start (ctx , "QueryRow" )
87
+ spanCtx , span := repo .Tracer .Start (ctx , "QueryRow" )
88
88
ctx = spanCtx
89
89
defer span .End ()
90
90
}
@@ -121,7 +121,7 @@ func (repo Repository) QueryRow(ctx context.Context, query SelectQuery) (*sql.Ro
121
121
122
122
func (repo Repository ) UpdateFn (ctx context.Context , queryFn func (* UpdateQuery )) (sql.Result , error ) {
123
123
if repo .Tracer != nil {
124
- spanCtx , span := repo .Tracer () .Start (ctx , "UpdateFn" )
124
+ spanCtx , span := repo .Tracer .Start (ctx , "UpdateFn" )
125
125
ctx = spanCtx
126
126
defer span .End ()
127
127
}
@@ -133,7 +133,7 @@ func (repo Repository) UpdateFn(ctx context.Context, queryFn func(*UpdateQuery))
133
133
134
134
func (repo Repository ) Update (ctx context.Context , query UpdateQuery ) (sql.Result , error ) {
135
135
if repo .Tracer != nil {
136
- spanCtx , span := repo .Tracer () .Start (ctx , "Update" )
136
+ spanCtx , span := repo .Tracer .Start (ctx , "Update" )
137
137
ctx = spanCtx
138
138
defer span .End ()
139
139
}
@@ -151,7 +151,7 @@ func (repo Repository) Update(ctx context.Context, query UpdateQuery) (sql.Resul
151
151
152
152
func (repo Repository ) DeleteFn (ctx context.Context , queryFn func (* DeleteQuery )) (sql.Result , error ) {
153
153
if repo .Tracer != nil {
154
- spanCtx , span := repo .Tracer () .Start (ctx , "DeleteFn" )
154
+ spanCtx , span := repo .Tracer .Start (ctx , "DeleteFn" )
155
155
ctx = spanCtx
156
156
defer span .End ()
157
157
}
@@ -163,7 +163,7 @@ func (repo Repository) DeleteFn(ctx context.Context, queryFn func(*DeleteQuery))
163
163
164
164
func (repo Repository ) Delete (ctx context.Context , query DeleteQuery ) (sql.Result , error ) {
165
165
if repo .Tracer != nil {
166
- spanCtx , span := repo .Tracer () .Start (ctx , "Delete" )
166
+ spanCtx , span := repo .Tracer .Start (ctx , "Delete" )
167
167
ctx = spanCtx
168
168
defer span .End ()
169
169
}
@@ -181,7 +181,7 @@ func (repo Repository) Delete(ctx context.Context, query DeleteQuery) (sql.Resul
181
181
182
182
func (repo Repository ) InsertFn (ctx context.Context , queryFn func (* InsertQuery )) (sql.Result , error ) {
183
183
if repo .Tracer != nil {
184
- spanCtx , span := repo .Tracer () .Start (ctx , "InsertFn" )
184
+ spanCtx , span := repo .Tracer .Start (ctx , "InsertFn" )
185
185
ctx = spanCtx
186
186
defer span .End ()
187
187
}
@@ -193,7 +193,7 @@ func (repo Repository) InsertFn(ctx context.Context, queryFn func(*InsertQuery))
193
193
194
194
func (repo Repository ) Insert (ctx context.Context , query InsertQuery ) (sql.Result , error ) {
195
195
if repo .Tracer != nil {
196
- spanCtx , span := repo .Tracer () .Start (ctx , "Insert" )
196
+ spanCtx , span := repo .Tracer .Start (ctx , "Insert" )
197
197
ctx = spanCtx
198
198
defer span .End ()
199
199
}
@@ -244,7 +244,7 @@ func (repo Repository) Exec(ctx context.Context, query Query) (sql.Result, error
244
244
var span trace.Span = nil
245
245
246
246
if repo .Tracer != nil {
247
- ctx , span = repo .Tracer () .Start (ctx , "Exec" )
247
+ ctx , span = repo .Tracer .Start (ctx , "Exec" )
248
248
defer span .End ()
249
249
}
250
250
0 commit comments