You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: remove source labels in repo query stats (#6483)
🔒 Scanned for secrets using gitleaks 8.28.0
# Description
- Remove sourceId labels from warehouse repo query stats.
## Linear Ticket
- Resolves INT-4323
## Security
- [x] The code changed/added as part of this pull request won't create
any security issues with how the software is being used.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Removes sourceId labels from warehouse repo query stats and downgrades
a snowpipe streaming polling log line to debug.
>
> - **Warehouse Repo (stats tags)**:
> - Drop `sourceId` from `TimerStat` tags across repos: `load.go`
(`Insert`, `DistinctTableName`), `schema.go` (`Insert`, `GetNamespace`),
`source.go` (`Insert`), `staging.go` (`Insert`, `Pending`,
`CountPendingForSource`), `staging_snapshot.go` (`Insert`, `GetLatest`),
`table_upload.go` (`GetByJobRunTaskRun`), `upload.go` (`LastCreatedAt`,
`GetLatestUploadInfo`, `RetryFailedBatches`, `GetSyncLatencies`).
> - Update tests in `warehouse/internal/repo/repo_test.go` to align with
removed `sourceId` tags.
> - **Snowpipe Streaming**:
> - Change polling log for in-progress flushing from `Infon` to `Debugn`
in `snowpipestreaming.go`.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
4bdd695. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
0 commit comments