@@ -259,7 +259,7 @@ func (a App) GetExceptionGroupPlotInstances(ctx context.Context, fingerprint str
259259
260260 defer stmt .Close ()
261261
262- rows , err := server .Server .ChPool .Query (ctx , stmt .String (), stmt .Args ()... )
262+ rows , err := server .Server .RchPool .Query (ctx , stmt .String (), stmt .Args ()... )
263263 if err != nil {
264264 return
265265 }
@@ -403,7 +403,7 @@ func (a App) GetExceptionGroupsWithFilter(ctx context.Context, af *filter.AppFil
403403
404404 defer stmt .Close ()
405405
406- rows , err := server .Server .ChPool .Query (ctx , stmt .String (), stmt .Args ()... )
406+ rows , err := server .Server .RchPool .Query (ctx , stmt .String (), stmt .Args ()... )
407407 if err != nil {
408408 return
409409 }
@@ -520,7 +520,7 @@ func (a App) GetExceptionPlotInstances(ctx context.Context, af *filter.AppFilter
520520 stmt .GroupBy ("app_version, datetime_bucket" ).
521521 OrderBy ("app_version, datetime_bucket" )
522522
523- rows , err := server .Server .ChPool .Query (ctx , stmt .String (), stmt .Args ()... )
523+ rows , err := server .Server .RchPool .Query (ctx , stmt .String (), stmt .Args ()... )
524524 if err != nil {
525525 return
526526 }
@@ -609,7 +609,7 @@ func (a App) GetExceptionAttributesDistribution(ctx context.Context, fingerprint
609609
610610 defer stmt .Close ()
611611
612- rows , err := server .Server .ChPool .Query (ctx , stmt .String (), stmt .Args ()... )
612+ rows , err := server .Server .RchPool .Query (ctx , stmt .String (), stmt .Args ()... )
613613 if err != nil {
614614 return
615615 }
@@ -725,7 +725,7 @@ func (a App) GetExceptionsWithFilter(ctx context.Context, fingerprint string, af
725725
726726 defer stmt .Close ()
727727
728- rows , err := server .Server .ChPool .Query (ctx , stmt .String (), stmt .Args ()... )
728+ rows , err := server .Server .RchPool .Query (ctx , stmt .String (), stmt .Args ()... )
729729 if err != nil {
730730 return
731731 }
@@ -854,7 +854,7 @@ func (a App) GetANRGroupPlotInstances(ctx context.Context, fingerprint string, a
854854
855855 defer stmt .Close ()
856856
857- rows , err := server .Server .ChPool .Query (ctx , stmt .String (), stmt .Args ()... )
857+ rows , err := server .Server .RchPool .Query (ctx , stmt .String (), stmt .Args ()... )
858858 if err != nil {
859859 return
860860 }
@@ -945,7 +945,7 @@ func (a App) GetANRPlotInstances(ctx context.Context, af *filter.AppFilter) (iss
945945 stmt .GroupBy ("app_version, datetime_bucket" ).
946946 OrderBy ("app_version, datetime_bucket" )
947947
948- rows , err := server .Server .ChPool .Query (ctx , stmt .String (), stmt .Args ()... )
948+ rows , err := server .Server .RchPool .Query (ctx , stmt .String (), stmt .Args ()... )
949949 if err != nil {
950950 return
951951 }
@@ -1033,7 +1033,7 @@ func (a App) GetANRAttributesDistribution(ctx context.Context, fingerprint strin
10331033
10341034 defer stmt .Close ()
10351035
1036- rows , err := server .Server .ChPool .Query (ctx , stmt .String (), stmt .Args ()... )
1036+ rows , err := server .Server .RchPool .Query (ctx , stmt .String (), stmt .Args ()... )
10371037 if err != nil {
10381038 return
10391039 }
@@ -1198,7 +1198,7 @@ func (a App) GetANRGroupsWithFilter(ctx context.Context, af *filter.AppFilter) (
11981198
11991199 defer stmt .Close ()
12001200
1201- rows , err := server .Server .ChPool .Query (ctx , stmt .String (), stmt .Args ()... )
1201+ rows , err := server .Server .RchPool .Query (ctx , stmt .String (), stmt .Args ()... )
12021202 if err != nil {
12031203 return
12041204 }
@@ -1312,7 +1312,7 @@ func (a App) GetANRsWithFilter(ctx context.Context, fingerprint string, af *filt
13121312
13131313 defer stmt .Close ()
13141314
1315- rows , err := server .Server .ChPool .Query (ctx , stmt .String (), stmt .Args ()... )
1315+ rows , err := server .Server .RchPool .Query (ctx , stmt .String (), stmt .Args ()... )
13161316 if err != nil {
13171317 return
13181318 }
@@ -1512,7 +1512,7 @@ func (a App) GetIssueFreeMetrics(
15121512 dest = append (dest , & anrSelected , & anrUnselected , & perceivedANRSelected , & perceivedANRUnselected )
15131513 }
15141514
1515- if err = server .Server .ChPool .QueryRow (ctx , stmt .String (), stmt .Args ()... ).Scan (dest ... ); err != nil {
1515+ if err = server .Server .RchPool .QueryRow (ctx , stmt .String (), stmt .Args ()... ).Scan (dest ... ); err != nil {
15161516 return
15171517 }
15181518
@@ -1643,7 +1643,7 @@ func (a App) GetAdoptionMetrics(ctx context.Context, af *filter.AppFilter) (adop
16431643
16441644 defer stmt .Close ()
16451645
1646- if err = server .Server .ChPool .QueryRow (ctx , stmt .String (), stmt .Args ()... ).Scan (& adoption .SelectedVersion , & adoption .AllVersions , & adoption .Adoption ); err != nil {
1646+ if err = server .Server .RchPool .QueryRow (ctx , stmt .String (), stmt .Args ()... ).Scan (& adoption .SelectedVersion , & adoption .AllVersions , & adoption .Adoption ); err != nil {
16471647 return
16481648 }
16491649
@@ -1684,7 +1684,7 @@ func (a App) GetLaunchMetrics(ctx context.Context, af *filter.AppFilter) (launch
16841684
16851685 defer stmt .Close ()
16861686
1687- if err = server .Server .ChPool .QueryRow (ctx , stmt .String (), stmt .Args ()... ).Scan (
1687+ if err = server .Server .RchPool .QueryRow (ctx , stmt .String (), stmt .Args ()... ).Scan (
16881688 & launch .ColdLaunchP95 ,
16891689 & launch .WarmLaunchP95 ,
16901690 & launch .HotLaunchP95 ,
@@ -2346,7 +2346,7 @@ func (a App) FetchRootSpanNames(ctx context.Context) (traceNames []string, err e
23462346
23472347 defer stmt .Close ()
23482348
2349- rows , err := server .Server .ChPool .Query (ctx , stmt .String (), stmt .Args ()... )
2349+ rows , err := server .Server .RchPool .Query (ctx , stmt .String (), stmt .Args ()... )
23502350 if err != nil {
23512351 return
23522352 }
@@ -2390,7 +2390,7 @@ func (a App) FetchTracesForSessionId(ctx context.Context, sessionID uuid.UUID) (
23902390
23912391 defer stmt .Close ()
23922392
2393- rows , err := server .Server .ChPool .Query (ctx , stmt .String (), stmt .Args ()... )
2393+ rows , err := server .Server .RchPool .Query (ctx , stmt .String (), stmt .Args ()... )
23942394 if err != nil {
23952395 return
23962396 }
@@ -2536,7 +2536,7 @@ func (a App) GetSpansForSpanNameWithFilter(ctx context.Context, spanName string,
25362536
25372537 defer stmt .Close ()
25382538
2539- rows , err := server .Server .ChPool .Query (ctx , stmt .String (), stmt .Args ()... )
2539+ rows , err := server .Server .RchPool .Query (ctx , stmt .String (), stmt .Args ()... )
25402540 if err != nil {
25412541 return
25422542 }
@@ -2688,7 +2688,7 @@ func (a App) GetMetricsPlotForSpanNameWithFilter(ctx context.Context, spanName s
26882688
26892689 defer stmt .Close ()
26902690
2691- rows , err := server .Server .ChPool .Query (ctx , stmt .String (), stmt .Args ()... )
2691+ rows , err := server .Server .RchPool .Query (ctx , stmt .String (), stmt .Args ()... )
26922692 if err != nil {
26932693 return
26942694 }
@@ -2744,7 +2744,7 @@ func (a App) GetTrace(ctx context.Context, traceId string) (trace span.TraceDisp
27442744
27452745 defer stmt .Close ()
27462746
2747- rows , err := server .Server .ChPool .Query (ctx , stmt .String (), stmt .Args ()... )
2747+ rows , err := server .Server .RchPool .Query (ctx , stmt .String (), stmt .Args ()... )
27482748 if err != nil {
27492749 return
27502750 }
@@ -2973,7 +2973,7 @@ func (a App) GetBugReportsWithFilter(ctx context.Context, af *filter.AppFilter)
29732973 stmt .Where (stmtMatch .String (), stmtMatch .Args ()... )
29742974 }
29752975
2976- rows , err := server .Server .ChPool .Query (ctx , stmt .String (), stmt .Args ()... )
2976+ rows , err := server .Server .RchPool .Query (ctx , stmt .String (), stmt .Args ()... )
29772977 if err != nil {
29782978 return
29792979 }
@@ -3165,7 +3165,7 @@ func (a App) GetBugReportInstancesPlot(ctx context.Context, af *filter.AppFilter
31653165
31663166 defer stmt .Close ()
31673167
3168- rows , err := server .Server .ChPool .Query (ctx , stmt .String (), stmt .Args ()... )
3168+ rows , err := server .Server .RchPool .Query (ctx , stmt .String (), stmt .Args ()... )
31693169 if err != nil {
31703170 return
31713171 }
@@ -3218,7 +3218,7 @@ func (a App) GetBugReportById(ctx context.Context, bugReportId string) (bugRepor
32183218
32193219 defer stmt .Close ()
32203220
3221- row := server .Server .ChPool .QueryRow (ctx , stmt .String (), stmt .Args ()... )
3221+ row := server .Server .RchPool .QueryRow (ctx , stmt .String (), stmt .Args ()... )
32223222
32233223 if row .Err () != nil {
32243224 err = row .Err ()
@@ -3450,7 +3450,7 @@ func (a App) getJourneyEvents(ctx context.Context, af *filter.AppFilter, opts fi
34503450
34513451 defer stmt .Close ()
34523452
3453- rows , err := server .Server .ChPool .Query (ctx , stmt .String (), stmt .Args ()... )
3453+ rows , err := server .Server .RchPool .Query (ctx , stmt .String (), stmt .Args ()... )
34543454 if err != nil {
34553455 return
34563456 }
@@ -3961,7 +3961,7 @@ func (a *App) GetSessionEvents(ctx context.Context, sessionId uuid.UUID) (*Sessi
39613961 stmt .Where ("session_id = toUUID(?)" , sessionId )
39623962 stmt .OrderBy ("timestamp" )
39633963
3964- rows , err := server .Server .ChPool .Query (ctx , stmt .String (), stmt .Args ()... )
3964+ rows , err := server .Server .RchPool .Query (ctx , stmt .String (), stmt .Args ()... )
39653965
39663966 if err != nil {
39673967 return nil , err
0 commit comments