[PR #2781] [MERGED] [management] Add DB access duration to logs for context cancel #18236

Closed
opened 2026-08-05 04:08:16 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2781
Author: @pascal-fischer
Created: 10/25/2024
Status: Merged
Merged: 11/1/2024
Merged by: @pascal-fischer

Base: mainHead: feature/add-db-timings-to-log


📝 Commits (3)

  • 3de9145 add context cancel timings
  • f0a40a7 Merge branch 'main' into feature/add-db-timings-to-log
  • 900ceda fix merge

📊 Changes

2 files changed (+198 additions, -10 deletions)

View changed files

📝 management/server/sql_store.go (+192 -10)
📝 management/server/status/error.go (+6 -0)

📄 Description

Describe your changes

This PR stops how long a database operation is running when receiving a context-canceled error.

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/2781 **Author:** [@pascal-fischer](https://github.com/pascal-fischer) **Created:** 10/25/2024 **Status:** ✅ Merged **Merged:** 11/1/2024 **Merged by:** [@pascal-fischer](https://github.com/pascal-fischer) **Base:** `main` ← **Head:** `feature/add-db-timings-to-log` --- ### 📝 Commits (3) - [`3de9145`](https://github.com/netbirdio/netbird/commit/3de914563c16c3069a133a3bce71f27306847937) add context cancel timings - [`f0a40a7`](https://github.com/netbirdio/netbird/commit/f0a40a7d93555f7af5949489edfe052c5a6c1dca) Merge branch 'main' into feature/add-db-timings-to-log - [`900ceda`](https://github.com/netbirdio/netbird/commit/900ceda60c22d00ef22d3f5aaa3af737ca9a5dbd) fix merge ### 📊 Changes **2 files changed** (+198 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `management/server/sql_store.go` (+192 -10) 📝 `management/server/status/error.go` (+6 -0) </details> ### 📄 Description ## Describe your changes This PR stops how long a database operation is running when receiving a context-canceled error. ## Issue ticket number and link ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 04:08:16 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#18236