Skip to content

chore: add logs oauthv2 and cdm - #6022

Merged
utsabc merged 4 commits into
release/1.52.xfrom
chore.add-logs-oauthv2-and-cdm
Jun 19, 2025
Merged

utsabc merged 4 commits into
release/1.52.xfrom
chore.add-logs-oauthv2-and-cdm

Conversation

@utsabc

@utsabc utsabc commented Jun 19, 2025 •

Copy link
Copy Markdown
Contributor

Description

This pull request introduces logging enhancements to improve observability and debugging across the codebase. The changes include adding detailed context fields to logs, introducing unique request identifiers for traceability, and measuring execution times for critical operations.

Logging improvements:

  • Enhanced logging in CustomManagerT.refreshClient: Added timing metrics and context fields (destType, destID, refreshTime) to debug logs, enabling better tracking of refresh operations. (router/customdestinationmanager/customdestinationmanager.go, router/customdestinationmanager/customdestinationmanager.goR224-R231)
  • Improved logging in OAuthHandler.GetTokenInfo: Added detailed context fields (WorkerId, AccountId, DestinationID, etc.) and a unique RequestID for tracing requests. Also logged lock acquisition time and lock release events for better visibility into concurrency handling. (services/oauth/v2/oauth.go, services/oauth/v2/oauth.goR186-R218)

Dependency updates:

  • UUID library import: Added the github.com/google/uuid package to generate unique request IDs for improved traceability. (services/oauth/v2/oauth.go, services/oauth/v2/oauth.goR10)

Linear Ticket

https://linear.app/rudderstack/issue/INT-3729/fix-google-sheets-integration-token-refresh-timeout-issue
https://linear.app/rudderstack/issue/INT-3642/oncall-investigate-multiple-refresh-token-alerts

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

@utsabc utsabc changed the title Chore.add logs oauthv2 and cdm chore: add logs oauthv2 and cdm Jun 19, 2025
@utsabc
utsabc requested a review from cisse21 June 19, 2025 11:44
@codecov

codecov Bot commented Jun 19, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 69.56522% with 7 lines in your changes missing coverage. Please review.

Please upload report for BASE (release/1.52.x@3be7970). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...stomdestinationmanager/customdestinationmanager.go 0.00% 7 Missing ⚠️
Additional details and impacted files
@@                Coverage Diff                @@
##             release/1.52.x    #6022   +/-   ##
=================================================
  Coverage                  ?   76.67%           
=================================================
  Files                     ?      514           
  Lines                     ?    69148           
  Branches                  ?        0           
=================================================
  Hits                      ?    53019           
  Misses                    ?    13245           
  Partials                  ?     2884           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@utsabc
utsabc merged commit c999627 into release/1.52.x Jun 19, 2025
@utsabc
utsabc deleted the chore.add-logs-oauthv2-and-cdm branch June 19, 2025 12:01
utsabc pushed a commit that referenced this pull request Jun 19, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.52.3](v1.52.2...v1.52.3)
(2025-06-19)


### Miscellaneous

* add logs oauthv2 and cdm
([#6022](#6022))
([c999627](c999627))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
atzoum added a commit that referenced this pull request Jun 19, 2025
# Description

Syncing patch release v1.52.3 to main branch

**↓↓ Please review and edit commit overrides before merging ↓↓**

BEGIN_COMMIT_OVERRIDE
chore: add logs oauthv2 and cdm (#6022)
END_COMMIT_OVERRIDE

---------

Co-authored-by: Mihir Gandhi <[email protected]>
Co-authored-by: Aris Tzoumas <[email protected]>
Co-authored-by: shekhar-rudder <[email protected]>
Co-authored-by: Utsab Chowdhury <[email protected]>
Co-authored-by: Rohith BCS <[email protected]>
atzoum added a commit that referenced this pull request Jun 23, 2025
# Description

Syncing patch release v1.52.3 to main branch

**↓↓ Please review and edit commit overrides before merging ↓↓**

BEGIN_COMMIT_OVERRIDE
chore: add logs oauthv2 and cdm (#6022)
END_COMMIT_OVERRIDE

---------

Co-authored-by: Mihir Gandhi <[email protected]>
Co-authored-by: Aris Tzoumas <[email protected]>
Co-authored-by: shekhar-rudder <[email protected]>
Co-authored-by: Utsab Chowdhury <[email protected]>
Co-authored-by: Rohith BCS <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants