RSPEED-2326: feat(rlsapi): integrate Splunk telemetry into v1 /infer endpoint #1050
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Integrates Splunk HEC telemetry into the rlsapi v1
/inferendpoint. This is the final PR in the Splunk integration series (building on #1031 and #1032).Changes:
_get_rh_identity_context()helper to extract org_id/system_id from request.state_queue_splunk_event()to build and queue telemetry events via FastAPI BackgroundTasksinfer_with_llmevents on success,infer_errorevents on failuredocs/splunk.md)src/observability/README.md)Events are sent asynchronously and never block or affect the main request flow.
Type of change
Tools used to create PR
Related Tickets & Documents
Checklist before requesting a review
Testing
uv run pytest tests/unit/app/endpoints/test_rlsapi_v1.py -v(24 tests)uv run pytest tests/integration/endpoints/test_rlsapi_v1_integration.py -v(11 tests)uv run pytest tests/unit/observability/ -v(11 tests)New tests verify:
Summary by CodeRabbit
New Features
Documentation
✏️ Tip: You can customize this high-level summary in your review settings.