fleet/server/contexts/ctxerr
Victor Lyuboslavsky c88cc953fb
Refactor endpoint_utils for modularization (#36484)
Resolves #37192

Separating generic endpoint_utils middleware logic from domain-specific
business logic. New bounded contexts would share the generic logic and
implement their own domain-specific logic. The two approaches used in
this PR are:
- Use common `platform` types
- Use interfaces

In the next PR we will move `endpointer_utils`, `authzcheck` and
`ratelimit` into `platform` directory.

# Checklist for submitter

- [x] Added changes file

## Testing

- [x] Added/updated tests
- [x] QA'd all new/changed functionality manually



<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Refactor**
* Restructured internal error handling and context management to support
bounded context architecture.
* Improved error context collection and telemetry observability through
a provider-based mechanism.
* Decoupled licensing and authentication concerns into interfaces for
better modularity.

* **Chores**
* Updated internal package dependencies to align with new architectural
boundaries.

<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-12-31 09:12:00 -06:00
..
ctxerr.go Refactor endpoint_utils for modularization (#36484) 2025-12-31 09:12:00 -06:00
ctxerr_otel_test.go Refactor endpoint_utils for modularization (#36484) 2025-12-31 09:12:00 -06:00
ctxerr_test.go Refactor endpoint_utils for modularization (#36484) 2025-12-31 09:12:00 -06:00
metadata.go Refactor endpoint_utils for modularization (#36484) 2025-12-31 09:12:00 -06:00
stack.go implement a thin wrapper around stdlib errors (#5733) 2022-05-18 11:47:55 -03:00
stack_test.go Update to Go 1.24.1 (#27506) 2025-03-31 11:14:09 -05:00
statistics.go Refactor endpoint_utils for modularization (#36484) 2025-12-31 09:12:00 -06:00
statistics_test.go Adding telemetry for specific Fleet Desktop errors (#23349) 2024-10-31 14:24:42 -05:00