Skip to content

ElasticSearch logging in RemoteRolloutProcessor (part 2)#242

Merged
dphuang2 merged 11 commits intomainfrom
rollout-logs-integration-part-2
Oct 2, 2025
Merged

ElasticSearch logging in RemoteRolloutProcessor (part 2)#242
dphuang2 merged 11 commits intomainfrom
rollout-logs-integration-part-2

Conversation

@dphuang2
Copy link
Copy Markdown
Collaborator

@dphuang2 dphuang2 commented Oct 1, 2025

  • Add rollout_id handling to ElasticSearchDirectHttpHandler
  • Add status handling to ElasticSearchDirectHttpHandler
  • Updated remote_server.py to use new tracing.fireworks.ai proxy

Dylan Huang added 11 commits October 1, 2025 12:57
- Updated _has_correct_timestamp_mapping method to check for rollout_id as a keyword field in Elasticsearch mappings.
- Added rollout_id fixture to tests for setting up environment variable during test execution.
- Modified test functions to include rollout_id in log messages and assertions, ensuring proper indexing and retrieval from Elasticsearch.
- Implemented new tests to verify the presence and correctness of rollout_id in logged messages.
- Added a method to extract status information from log records in ElasticSearchDirectHttpHandler.
- Updated the data structure sent to Elasticsearch to include status_code, status_message, and status_details if present.
- Modified ElasticsearchIndexManager to validate the mapping of new status fields.
- Implemented tests to verify logging of status information and searching by status code in Elasticsearch.
- Replaced direct HTTP requests with an ElasticsearchClient for handling interactions with Elasticsearch in ElasticSearchDirectHttpHandler and ElasticsearchIndexManager.
- Updated configuration handling to encapsulate Elasticsearch settings within a single config object.
- Simplified index management and document indexing processes, improving code maintainability and readability.
- Adjusted tests to utilize the new client for searching and verifying log entries, enhancing test reliability.
- Updated Elasticsearch integration to use ElasticSearchConfig from the types module, improving consistency across the codebase.
- Removed the local ElasticsearchConfig dataclass in favor of the new model, streamlining configuration management.
- Adjusted related classes and tests to utilize the updated configuration structure, enhancing maintainability and readability.
- Updated all instances of ElasticSearchConfig to ElasticsearchConfig across the codebase to align with official naming conventions.
- Ensured that related classes and methods reflect this change, enhancing code clarity and maintainability.
@dphuang2 dphuang2 merged commit 1283ce2 into main Oct 2, 2025
7 checks passed
@dphuang2 dphuang2 deleted the rollout-logs-integration-part-2 branch October 2, 2025 16:18
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.

1 participant