Skip to content

Enhance logging with contextual information across services #459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 25, 2025

Conversation

onahprosper
Copy link
Collaborator

@onahprosper onahprosper commented Apr 23, 2025

  • Updated logging in priority_queue.go to include additional context such as Redis keys, provider IDs, and error details for better traceability.
  • Improved error handling in tasks.go by adding more descriptive logging for RPC client connections, order operations, and refund processes.
  • Enhanced the logger utility in logger.go to automatically include caller information (file, line, function) in log entries for easier debugging.
  • Refined error logging in utils.go to provide more context when invalid provider data is encountered, including token and currency details.

Description

Describe the purpose of this PR along with any background information and the impacts of the proposed change. For the benefit of the community, please do not assume prior context.

Provide details that support your chosen implementation, including: breaking changes, alternatives considered, changes to the API, contracts etc.

References

Include any links supporting this change such as a:

Testing

Describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this project has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.

Please include any manual steps for testing end-to-end or functionality not covered by unit/integration tests.

Also include details of the environment this PR was developed in (language/platform/browser version).

  • This change adds test coverage for new/changed/fixed functionality

Checklist

  • I have added documentation and tests for new/changed functionality in this PR
  • All active GitHub checks for tests, formatting, and security are passing
  • The correct base branch is being used, if not main

Sentry Logs sample for additional informations that are required for detailed error message:
Screenshot 2025-04-24 at 18 09 38

By submitting a PR, I agree to Paycrest's Contributor Code of Conduct and Contribution Guide.

@onahprosper onahprosper marked this pull request as draft April 23, 2025 10:43
@onahprosper onahprosper marked this pull request as ready for review April 23, 2025 15:05
- Updated logging in `priority_queue.go` to include additional context such as Redis keys, provider IDs, and error details for better traceability.
- Improved error handling in `tasks.go` by adding more descriptive logging for RPC client connections, order operations, and refund processes.
- Enhanced the logger utility in `logger.go` to automatically include caller information (file, line, function) in log entries for easier debugging.
- Refined error logging in `utils.go` to provide more context when invalid provider data is encountered, including token and currency details.
…ting

- Updated error logging across multiple services to use fmt.Sprintf for better error message formatting.
- Ensured all error messages include detailed context for easier debugging.
- Adjusted tests to accommodate changes in error handling.
@chibie chibie force-pushed the fix/sentry-stack-trace-handling branch from 56ee064 to 1965cfa Compare April 25, 2025 21:01
@chibie chibie merged commit 088148e into main Apr 25, 2025
1 check passed
sundayonah pushed a commit that referenced this pull request Apr 26, 2025
* Enhance logging with contextual information across services

- Updated logging in `priority_queue.go` to include additional context such as Redis keys, provider IDs, and error details for better traceability.
- Improved error handling in `tasks.go` by adding more descriptive logging for RPC client connections, order operations, and refund processes.
- Enhanced the logger utility in `logger.go` to automatically include caller information (file, line, function) in log entries for easier debugging.
- Refined error logging in `utils.go` to provide more context when invalid provider data is encountered, including token and currency details.

* fix(logger): enhance logging with caller information and improve error context for indexer

* Refactor error logging to use fmt.Sprintf for consistent error formatting

- Updated error logging across multiple services to use fmt.Sprintf for better error message formatting.
- Ensured all error messages include detailed context for easier debugging.
- Adjusted tests to accommodate changes in error handling.

* fix(auth): update logging to use UserID instead of Email for errors logging

* fix(logger): update log field keys to use PascalCase for consistency

* fix(logger): update OrderID logging to use hex encoding for consistency
sundayonah pushed a commit that referenced this pull request Apr 28, 2025
* Enhance logging with contextual information across services

- Updated logging in `priority_queue.go` to include additional context such as Redis keys, provider IDs, and error details for better traceability.
- Improved error handling in `tasks.go` by adding more descriptive logging for RPC client connections, order operations, and refund processes.
- Enhanced the logger utility in `logger.go` to automatically include caller information (file, line, function) in log entries for easier debugging.
- Refined error logging in `utils.go` to provide more context when invalid provider data is encountered, including token and currency details.

* fix(logger): enhance logging with caller information and improve error context for indexer

* Refactor error logging to use fmt.Sprintf for consistent error formatting

- Updated error logging across multiple services to use fmt.Sprintf for better error message formatting.
- Ensured all error messages include detailed context for easier debugging.
- Adjusted tests to accommodate changes in error handling.

* fix(auth): update logging to use UserID instead of Email for errors logging

* fix(logger): update log field keys to use PascalCase for consistency

* fix(logger): update OrderID logging to use hex encoding for consistency
sundayonah pushed a commit that referenced this pull request Apr 28, 2025
* Enhance logging with contextual information across services

- Updated logging in `priority_queue.go` to include additional context such as Redis keys, provider IDs, and error details for better traceability.
- Improved error handling in `tasks.go` by adding more descriptive logging for RPC client connections, order operations, and refund processes.
- Enhanced the logger utility in `logger.go` to automatically include caller information (file, line, function) in log entries for easier debugging.
- Refined error logging in `utils.go` to provide more context when invalid provider data is encountered, including token and currency details.

* fix(logger): enhance logging with caller information and improve error context for indexer

* Refactor error logging to use fmt.Sprintf for consistent error formatting

- Updated error logging across multiple services to use fmt.Sprintf for better error message formatting.
- Ensured all error messages include detailed context for easier debugging.
- Adjusted tests to accommodate changes in error handling.

* fix(auth): update logging to use UserID instead of Email for errors logging

* fix(logger): update log field keys to use PascalCase for consistency

* fix(logger): update OrderID logging to use hex encoding for consistency
sundayonah pushed a commit that referenced this pull request Apr 28, 2025
* Enhance logging with contextual information across services

- Updated logging in `priority_queue.go` to include additional context such as Redis keys, provider IDs, and error details for better traceability.
- Improved error handling in `tasks.go` by adding more descriptive logging for RPC client connections, order operations, and refund processes.
- Enhanced the logger utility in `logger.go` to automatically include caller information (file, line, function) in log entries for easier debugging.
- Refined error logging in `utils.go` to provide more context when invalid provider data is encountered, including token and currency details.

* fix(logger): enhance logging with caller information and improve error context for indexer

* Refactor error logging to use fmt.Sprintf for consistent error formatting

- Updated error logging across multiple services to use fmt.Sprintf for better error message formatting.
- Ensured all error messages include detailed context for easier debugging.
- Adjusted tests to accommodate changes in error handling.

* fix(auth): update logging to use UserID instead of Email for errors logging

* fix(logger): update log field keys to use PascalCase for consistency

* fix(logger): update OrderID logging to use hex encoding for consistency
sundayonah pushed a commit that referenced this pull request Apr 28, 2025
* Enhance logging with contextual information across services

- Updated logging in `priority_queue.go` to include additional context such as Redis keys, provider IDs, and error details for better traceability.
- Improved error handling in `tasks.go` by adding more descriptive logging for RPC client connections, order operations, and refund processes.
- Enhanced the logger utility in `logger.go` to automatically include caller information (file, line, function) in log entries for easier debugging.
- Refined error logging in `utils.go` to provide more context when invalid provider data is encountered, including token and currency details.

* fix(logger): enhance logging with caller information and improve error context for indexer

* Refactor error logging to use fmt.Sprintf for consistent error formatting

- Updated error logging across multiple services to use fmt.Sprintf for better error message formatting.
- Ensured all error messages include detailed context for easier debugging.
- Adjusted tests to accommodate changes in error handling.

* fix(auth): update logging to use UserID instead of Email for errors logging

* fix(logger): update log field keys to use PascalCase for consistency

* fix(logger): update OrderID logging to use hex encoding for consistency
sundayonah pushed a commit that referenced this pull request Apr 29, 2025
* Enhance logging with contextual information across services

- Updated logging in `priority_queue.go` to include additional context such as Redis keys, provider IDs, and error details for better traceability.
- Improved error handling in `tasks.go` by adding more descriptive logging for RPC client connections, order operations, and refund processes.
- Enhanced the logger utility in `logger.go` to automatically include caller information (file, line, function) in log entries for easier debugging.
- Refined error logging in `utils.go` to provide more context when invalid provider data is encountered, including token and currency details.

* fix(logger): enhance logging with caller information and improve error context for indexer

* Refactor error logging to use fmt.Sprintf for consistent error formatting

- Updated error logging across multiple services to use fmt.Sprintf for better error message formatting.
- Ensured all error messages include detailed context for easier debugging.
- Adjusted tests to accommodate changes in error handling.

* fix(auth): update logging to use UserID instead of Email for errors logging

* fix(logger): update log field keys to use PascalCase for consistency

* fix(logger): update OrderID logging to use hex encoding for consistency
sundayonah pushed a commit that referenced this pull request Apr 29, 2025
* Enhance logging with contextual information across services

- Updated logging in `priority_queue.go` to include additional context such as Redis keys, provider IDs, and error details for better traceability.
- Improved error handling in `tasks.go` by adding more descriptive logging for RPC client connections, order operations, and refund processes.
- Enhanced the logger utility in `logger.go` to automatically include caller information (file, line, function) in log entries for easier debugging.
- Refined error logging in `utils.go` to provide more context when invalid provider data is encountered, including token and currency details.

* fix(logger): enhance logging with caller information and improve error context for indexer

* Refactor error logging to use fmt.Sprintf for consistent error formatting

- Updated error logging across multiple services to use fmt.Sprintf for better error message formatting.
- Ensured all error messages include detailed context for easier debugging.
- Adjusted tests to accommodate changes in error handling.

* fix(auth): update logging to use UserID instead of Email for errors logging

* fix(logger): update log field keys to use PascalCase for consistency

* fix(logger): update OrderID logging to use hex encoding for consistency
sundayonah pushed a commit that referenced this pull request Apr 29, 2025
* Enhance logging with contextual information across services

- Updated logging in `priority_queue.go` to include additional context such as Redis keys, provider IDs, and error details for better traceability.
- Improved error handling in `tasks.go` by adding more descriptive logging for RPC client connections, order operations, and refund processes.
- Enhanced the logger utility in `logger.go` to automatically include caller information (file, line, function) in log entries for easier debugging.
- Refined error logging in `utils.go` to provide more context when invalid provider data is encountered, including token and currency details.

* fix(logger): enhance logging with caller information and improve error context for indexer

* Refactor error logging to use fmt.Sprintf for consistent error formatting

- Updated error logging across multiple services to use fmt.Sprintf for better error message formatting.
- Ensured all error messages include detailed context for easier debugging.
- Adjusted tests to accommodate changes in error handling.

* fix(auth): update logging to use UserID instead of Email for errors logging

* fix(logger): update log field keys to use PascalCase for consistency

* fix(logger): update OrderID logging to use hex encoding for consistency
sundayonah pushed a commit that referenced this pull request Apr 29, 2025
* Enhance logging with contextual information across services

- Updated logging in `priority_queue.go` to include additional context such as Redis keys, provider IDs, and error details for better traceability.
- Improved error handling in `tasks.go` by adding more descriptive logging for RPC client connections, order operations, and refund processes.
- Enhanced the logger utility in `logger.go` to automatically include caller information (file, line, function) in log entries for easier debugging.
- Refined error logging in `utils.go` to provide more context when invalid provider data is encountered, including token and currency details.

* fix(logger): enhance logging with caller information and improve error context for indexer

* Refactor error logging to use fmt.Sprintf for consistent error formatting

- Updated error logging across multiple services to use fmt.Sprintf for better error message formatting.
- Ensured all error messages include detailed context for easier debugging.
- Adjusted tests to accommodate changes in error handling.

* fix(auth): update logging to use UserID instead of Email for errors logging

* fix(logger): update log field keys to use PascalCase for consistency

* fix(logger): update OrderID logging to use hex encoding for consistency
sundayonah pushed a commit that referenced this pull request Apr 29, 2025
* Enhance logging with contextual information across services

- Updated logging in `priority_queue.go` to include additional context such as Redis keys, provider IDs, and error details for better traceability.
- Improved error handling in `tasks.go` by adding more descriptive logging for RPC client connections, order operations, and refund processes.
- Enhanced the logger utility in `logger.go` to automatically include caller information (file, line, function) in log entries for easier debugging.
- Refined error logging in `utils.go` to provide more context when invalid provider data is encountered, including token and currency details.

* fix(logger): enhance logging with caller information and improve error context for indexer

* Refactor error logging to use fmt.Sprintf for consistent error formatting

- Updated error logging across multiple services to use fmt.Sprintf for better error message formatting.
- Ensured all error messages include detailed context for easier debugging.
- Adjusted tests to accommodate changes in error handling.

* fix(auth): update logging to use UserID instead of Email for errors logging

* fix(logger): update log field keys to use PascalCase for consistency

* fix(logger): update OrderID logging to use hex encoding for consistency
sundayonah pushed a commit that referenced this pull request Apr 29, 2025
* Enhance logging with contextual information across services

- Updated logging in `priority_queue.go` to include additional context such as Redis keys, provider IDs, and error details for better traceability.
- Improved error handling in `tasks.go` by adding more descriptive logging for RPC client connections, order operations, and refund processes.
- Enhanced the logger utility in `logger.go` to automatically include caller information (file, line, function) in log entries for easier debugging.
- Refined error logging in `utils.go` to provide more context when invalid provider data is encountered, including token and currency details.

* fix(logger): enhance logging with caller information and improve error context for indexer

* Refactor error logging to use fmt.Sprintf for consistent error formatting

- Updated error logging across multiple services to use fmt.Sprintf for better error message formatting.
- Ensured all error messages include detailed context for easier debugging.
- Adjusted tests to accommodate changes in error handling.

* fix(auth): update logging to use UserID instead of Email for errors logging

* fix(logger): update log field keys to use PascalCase for consistency

* fix(logger): update OrderID logging to use hex encoding for consistency
sundayonah pushed a commit that referenced this pull request Apr 29, 2025
* Enhance logging with contextual information across services

- Updated logging in `priority_queue.go` to include additional context such as Redis keys, provider IDs, and error details for better traceability.
- Improved error handling in `tasks.go` by adding more descriptive logging for RPC client connections, order operations, and refund processes.
- Enhanced the logger utility in `logger.go` to automatically include caller information (file, line, function) in log entries for easier debugging.
- Refined error logging in `utils.go` to provide more context when invalid provider data is encountered, including token and currency details.

* fix(logger): enhance logging with caller information and improve error context for indexer

* Refactor error logging to use fmt.Sprintf for consistent error formatting

- Updated error logging across multiple services to use fmt.Sprintf for better error message formatting.
- Ensured all error messages include detailed context for easier debugging.
- Adjusted tests to accommodate changes in error handling.

* fix(auth): update logging to use UserID instead of Email for errors logging

* fix(logger): update log field keys to use PascalCase for consistency

* fix(logger): update OrderID logging to use hex encoding for consistency
sundayonah pushed a commit that referenced this pull request Apr 29, 2025
* Enhance logging with contextual information across services

- Updated logging in `priority_queue.go` to include additional context such as Redis keys, provider IDs, and error details for better traceability.
- Improved error handling in `tasks.go` by adding more descriptive logging for RPC client connections, order operations, and refund processes.
- Enhanced the logger utility in `logger.go` to automatically include caller information (file, line, function) in log entries for easier debugging.
- Refined error logging in `utils.go` to provide more context when invalid provider data is encountered, including token and currency details.

* fix(logger): enhance logging with caller information and improve error context for indexer

* Refactor error logging to use fmt.Sprintf for consistent error formatting

- Updated error logging across multiple services to use fmt.Sprintf for better error message formatting.
- Ensured all error messages include detailed context for easier debugging.
- Adjusted tests to accommodate changes in error handling.

* fix(auth): update logging to use UserID instead of Email for errors logging

* fix(logger): update log field keys to use PascalCase for consistency

* fix(logger): update OrderID logging to use hex encoding for consistency
sundayonah pushed a commit that referenced this pull request Apr 29, 2025
* Enhance logging with contextual information across services

- Updated logging in `priority_queue.go` to include additional context such as Redis keys, provider IDs, and error details for better traceability.
- Improved error handling in `tasks.go` by adding more descriptive logging for RPC client connections, order operations, and refund processes.
- Enhanced the logger utility in `logger.go` to automatically include caller information (file, line, function) in log entries for easier debugging.
- Refined error logging in `utils.go` to provide more context when invalid provider data is encountered, including token and currency details.

* fix(logger): enhance logging with caller information and improve error context for indexer

* Refactor error logging to use fmt.Sprintf for consistent error formatting

- Updated error logging across multiple services to use fmt.Sprintf for better error message formatting.
- Ensured all error messages include detailed context for easier debugging.
- Adjusted tests to accommodate changes in error handling.

* fix(auth): update logging to use UserID instead of Email for errors logging

* fix(logger): update log field keys to use PascalCase for consistency

* fix(logger): update OrderID logging to use hex encoding for consistency
sundayonah pushed a commit that referenced this pull request Apr 29, 2025
* Enhance logging with contextual information across services

- Updated logging in `priority_queue.go` to include additional context such as Redis keys, provider IDs, and error details for better traceability.
- Improved error handling in `tasks.go` by adding more descriptive logging for RPC client connections, order operations, and refund processes.
- Enhanced the logger utility in `logger.go` to automatically include caller information (file, line, function) in log entries for easier debugging.
- Refined error logging in `utils.go` to provide more context when invalid provider data is encountered, including token and currency details.

* fix(logger): enhance logging with caller information and improve error context for indexer

* Refactor error logging to use fmt.Sprintf for consistent error formatting

- Updated error logging across multiple services to use fmt.Sprintf for better error message formatting.
- Ensured all error messages include detailed context for easier debugging.
- Adjusted tests to accommodate changes in error handling.

* fix(auth): update logging to use UserID instead of Email for errors logging

* fix(logger): update log field keys to use PascalCase for consistency

* fix(logger): update OrderID logging to use hex encoding for consistency
sundayonah pushed a commit that referenced this pull request Apr 29, 2025
* Enhance logging with contextual information across services

- Updated logging in `priority_queue.go` to include additional context such as Redis keys, provider IDs, and error details for better traceability.
- Improved error handling in `tasks.go` by adding more descriptive logging for RPC client connections, order operations, and refund processes.
- Enhanced the logger utility in `logger.go` to automatically include caller information (file, line, function) in log entries for easier debugging.
- Refined error logging in `utils.go` to provide more context when invalid provider data is encountered, including token and currency details.

* fix(logger): enhance logging with caller information and improve error context for indexer

* Refactor error logging to use fmt.Sprintf for consistent error formatting

- Updated error logging across multiple services to use fmt.Sprintf for better error message formatting.
- Ensured all error messages include detailed context for easier debugging.
- Adjusted tests to accommodate changes in error handling.

* fix(auth): update logging to use UserID instead of Email for errors logging

* fix(logger): update log field keys to use PascalCase for consistency

* fix(logger): update OrderID logging to use hex encoding for consistency
sundayonah pushed a commit that referenced this pull request Apr 29, 2025
* Enhance logging with contextual information across services

- Updated logging in `priority_queue.go` to include additional context such as Redis keys, provider IDs, and error details for better traceability.
- Improved error handling in `tasks.go` by adding more descriptive logging for RPC client connections, order operations, and refund processes.
- Enhanced the logger utility in `logger.go` to automatically include caller information (file, line, function) in log entries for easier debugging.
- Refined error logging in `utils.go` to provide more context when invalid provider data is encountered, including token and currency details.

* fix(logger): enhance logging with caller information and improve error context for indexer

* Refactor error logging to use fmt.Sprintf for consistent error formatting

- Updated error logging across multiple services to use fmt.Sprintf for better error message formatting.
- Ensured all error messages include detailed context for easier debugging.
- Adjusted tests to accommodate changes in error handling.

* fix(auth): update logging to use UserID instead of Email for errors logging

* fix(logger): update log field keys to use PascalCase for consistency

* fix(logger): update OrderID logging to use hex encoding for consistency
sundayonah pushed a commit that referenced this pull request Apr 29, 2025
* Enhance logging with contextual information across services

- Updated logging in `priority_queue.go` to include additional context such as Redis keys, provider IDs, and error details for better traceability.
- Improved error handling in `tasks.go` by adding more descriptive logging for RPC client connections, order operations, and refund processes.
- Enhanced the logger utility in `logger.go` to automatically include caller information (file, line, function) in log entries for easier debugging.
- Refined error logging in `utils.go` to provide more context when invalid provider data is encountered, including token and currency details.

* fix(logger): enhance logging with caller information and improve error context for indexer

* Refactor error logging to use fmt.Sprintf for consistent error formatting

- Updated error logging across multiple services to use fmt.Sprintf for better error message formatting.
- Ensured all error messages include detailed context for easier debugging.
- Adjusted tests to accommodate changes in error handling.

* fix(auth): update logging to use UserID instead of Email for errors logging

* fix(logger): update log field keys to use PascalCase for consistency

* fix(logger): update OrderID logging to use hex encoding for consistency
sundayonah pushed a commit that referenced this pull request Apr 29, 2025
* Enhance logging with contextual information across services

- Updated logging in `priority_queue.go` to include additional context such as Redis keys, provider IDs, and error details for better traceability.
- Improved error handling in `tasks.go` by adding more descriptive logging for RPC client connections, order operations, and refund processes.
- Enhanced the logger utility in `logger.go` to automatically include caller information (file, line, function) in log entries for easier debugging.
- Refined error logging in `utils.go` to provide more context when invalid provider data is encountered, including token and currency details.

* fix(logger): enhance logging with caller information and improve error context for indexer

* Refactor error logging to use fmt.Sprintf for consistent error formatting

- Updated error logging across multiple services to use fmt.Sprintf for better error message formatting.
- Ensured all error messages include detailed context for easier debugging.
- Adjusted tests to accommodate changes in error handling.

* fix(auth): update logging to use UserID instead of Email for errors logging

* fix(logger): update log field keys to use PascalCase for consistency

* fix(logger): update OrderID logging to use hex encoding for consistency
sundayonah pushed a commit that referenced this pull request Apr 29, 2025
* Enhance logging with contextual information across services

- Updated logging in `priority_queue.go` to include additional context such as Redis keys, provider IDs, and error details for better traceability.
- Improved error handling in `tasks.go` by adding more descriptive logging for RPC client connections, order operations, and refund processes.
- Enhanced the logger utility in `logger.go` to automatically include caller information (file, line, function) in log entries for easier debugging.
- Refined error logging in `utils.go` to provide more context when invalid provider data is encountered, including token and currency details.

* fix(logger): enhance logging with caller information and improve error context for indexer

* Refactor error logging to use fmt.Sprintf for consistent error formatting

- Updated error logging across multiple services to use fmt.Sprintf for better error message formatting.
- Ensured all error messages include detailed context for easier debugging.
- Adjusted tests to accommodate changes in error handling.

* fix(auth): update logging to use UserID instead of Email for errors logging

* fix(logger): update log field keys to use PascalCase for consistency

* fix(logger): update OrderID logging to use hex encoding for consistency
sundayonah pushed a commit that referenced this pull request Apr 29, 2025
* Enhance logging with contextual information across services

- Updated logging in `priority_queue.go` to include additional context such as Redis keys, provider IDs, and error details for better traceability.
- Improved error handling in `tasks.go` by adding more descriptive logging for RPC client connections, order operations, and refund processes.
- Enhanced the logger utility in `logger.go` to automatically include caller information (file, line, function) in log entries for easier debugging.
- Refined error logging in `utils.go` to provide more context when invalid provider data is encountered, including token and currency details.

* fix(logger): enhance logging with caller information and improve error context for indexer

* Refactor error logging to use fmt.Sprintf for consistent error formatting

- Updated error logging across multiple services to use fmt.Sprintf for better error message formatting.
- Ensured all error messages include detailed context for easier debugging.
- Adjusted tests to accommodate changes in error handling.

* fix(auth): update logging to use UserID instead of Email for errors logging

* fix(logger): update log field keys to use PascalCase for consistency

* fix(logger): update OrderID logging to use hex encoding for consistency
sundayonah pushed a commit that referenced this pull request Apr 29, 2025
* Enhance logging with contextual information across services

- Updated logging in `priority_queue.go` to include additional context such as Redis keys, provider IDs, and error details for better traceability.
- Improved error handling in `tasks.go` by adding more descriptive logging for RPC client connections, order operations, and refund processes.
- Enhanced the logger utility in `logger.go` to automatically include caller information (file, line, function) in log entries for easier debugging.
- Refined error logging in `utils.go` to provide more context when invalid provider data is encountered, including token and currency details.

* fix(logger): enhance logging with caller information and improve error context for indexer

* Refactor error logging to use fmt.Sprintf for consistent error formatting

- Updated error logging across multiple services to use fmt.Sprintf for better error message formatting.
- Ensured all error messages include detailed context for easier debugging.
- Adjusted tests to accommodate changes in error handling.

* fix(auth): update logging to use UserID instead of Email for errors logging

* fix(logger): update log field keys to use PascalCase for consistency

* fix(logger): update OrderID logging to use hex encoding for consistency
sundayonah pushed a commit that referenced this pull request May 12, 2025
* Enhance logging with contextual information across services

- Updated logging in `priority_queue.go` to include additional context such as Redis keys, provider IDs, and error details for better traceability.
- Improved error handling in `tasks.go` by adding more descriptive logging for RPC client connections, order operations, and refund processes.
- Enhanced the logger utility in `logger.go` to automatically include caller information (file, line, function) in log entries for easier debugging.
- Refined error logging in `utils.go` to provide more context when invalid provider data is encountered, including token and currency details.

* fix(logger): enhance logging with caller information and improve error context for indexer

* Refactor error logging to use fmt.Sprintf for consistent error formatting

- Updated error logging across multiple services to use fmt.Sprintf for better error message formatting.
- Ensured all error messages include detailed context for easier debugging.
- Adjusted tests to accommodate changes in error handling.

* fix(auth): update logging to use UserID instead of Email for errors logging

* fix(logger): update log field keys to use PascalCase for consistency

* fix(logger): update OrderID logging to use hex encoding for consistency
sundayonah pushed a commit that referenced this pull request May 13, 2025
* Enhance logging with contextual information across services

- Updated logging in `priority_queue.go` to include additional context such as Redis keys, provider IDs, and error details for better traceability.
- Improved error handling in `tasks.go` by adding more descriptive logging for RPC client connections, order operations, and refund processes.
- Enhanced the logger utility in `logger.go` to automatically include caller information (file, line, function) in log entries for easier debugging.
- Refined error logging in `utils.go` to provide more context when invalid provider data is encountered, including token and currency details.

* fix(logger): enhance logging with caller information and improve error context for indexer

* Refactor error logging to use fmt.Sprintf for consistent error formatting

- Updated error logging across multiple services to use fmt.Sprintf for better error message formatting.
- Ensured all error messages include detailed context for easier debugging.
- Adjusted tests to accommodate changes in error handling.

* fix(auth): update logging to use UserID instead of Email for errors logging

* fix(logger): update log field keys to use PascalCase for consistency

* fix(logger): update OrderID logging to use hex encoding for consistency
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.

Improve Sentry Implementation for Better Parameter and Stack Trace Handling
2 participants