fleet/server/service/middleware
Victor Lyuboslavsky f522611f21
Added missing OpenTelemetry instrumentation to several API endpoints. (#32960)
Fixes #32331 

Manually tested all paths. `/test` path removed in
https://github.com/fleetdm/fleet/pull/32962

Also added support for sending errors to OpenTelemetry, like we do for
APM/Sentry.

# Checklist for submitter

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files)
for more information.

## Testing
- [x] QA'd all new/changed functionality manually


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

* **New Features**
* Added OpenTelemetry tracing across core HTTP endpoints (health,
version, assets, metrics, enroll/root, debug, Apple MDM, SCEP, SCIM)
with dynamic per-request route instrumentation.
* Enhanced error reporting to include OpenTelemetry spans/events with
contextual user/host attributes.

* **Tests**
* Added unit tests validating SCIM and error-handling telemetry, span
naming, and sensitive-data redaction.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-16 11:10:33 -05:00
..
auth Add SCIM Users (#27551) 2025-04-01 11:02:24 -05:00
authzcheck Fix 500 return code for several endpoints. (#14859) 2023-11-02 12:32:34 -05:00
endpoint_utils Replace home-made SAML implementation with https://github.com/crewjam/saml (#28486) 2025-07-07 15:13:46 -03:00
log Add SCIM Users (#27551) 2025-04-01 11:02:24 -05:00
mdmconfigured Update error message for VerifyMDMWindowsConfigured (#28646) 2025-04-29 14:11:31 -05:00
otel Added missing OpenTelemetry instrumentation to several API endpoints. (#32960) 2025-09-16 11:10:33 -05:00
ratelimit Fixes to the offline indicator (#31685) 2025-08-07 16:24:13 -03:00