Adding Getting Started PPL Documentation [5200]#5201
Adding Getting Started PPL Documentation [5200]#5201anasalkouz wants to merge 9 commits intoopensearch-project:mainfrom
Conversation
Signed-off-by: Anas Alkouz <aalkouz@amazon.com>
Signed-off-by: Anas Alkouz <aalkouz@amazon.com>
Signed-off-by: Anas Alkouz <aalkouz@amazon.com>
Signed-off-by: Anas Alkouz <aalkouz@amazon.com>
Signed-off-by: Anas Alkouz <aalkouz@amazon.com>
Signed-off-by: Anas Alkouz <aalkouz@amazon.com>
PR Reviewer Guide 🔍(Review updated until commit 33a205f)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 33a205f Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit 35cc46e
Suggestions up to commit fdacf43
Suggestions up to commit 9c1af6e
|
Signed-off-by: Anas Alkouz <aalkouz@amazon.com>
|
Persistent review updated to latest commit fdacf43 |
Signed-off-by: Anas Alkouz <aalkouz@amazon.com>
|
Persistent review updated to latest commit 35cc46e |
Signed-off-by: Anas Alkouz <aalkouz@amazon.com>
|
Persistent review updated to latest commit 33a205f |
| @@ -0,0 +1,1751 @@ | |||
| {"@timestamp": "2024-03-15T10:30:45.000Z", "severity": "INFO", "service.name": "checkout-service", "message": "Order created successfully", "http.status_code": 200, "duration_ms": 150, "http.route": "/api/checkout"} | |||
There was a problem hiding this comment.
Is it too much to have 1,751 records for doctest data? Would it make sense to trim this down to ~30-50 well-crafted records that still cover all use cases?
| "trace_id": "a1b2c3d4e5f6g7h8i9j0", | ||
| "span_id": "1a2b3c4d5e6f7g8h", |
There was a problem hiding this comment.
Are these missing in otel_logs test data?
|
|
||
| Throughout this tutorial, we'll use OpenTelemetry (OTEL) observability data. OTEL is the industry standard for collecting telemetry data (logs, metrics, and traces) from applications. | ||
|
|
||
| ### Sample Log Structure |
There was a problem hiding this comment.
Just curious any plan to cover trace, metrics and correlation case among them in future?
Description
This PR enhances the PPL documentation by adding a comprehensive "Getting Started" tutorial and reorganizing the PPL reference manual (index.md) for improved usability and discoverability.
Changes
1. New Getting Started Tutorial (
docs/user/ppl/tutorials/getting-started.md)Created a hands-on 15-minute tutorial that introduces PPL fundamentals through practical examples:
Tutorial Structure:
source,fields, andheadwhereto find errorsstats count()2. PPL Reference Manual Reorganization (
docs/user/ppl/index.md)Restructured the reference manual for better navigation and quick lookup:
3. Test Infrastructure
New Test Data:
doctest/test_data/otel_logs.jsonwith 1,747 OpenTelemetry log recordsdoctest/test_docs.pyto mapotel_logsindex to the data fileTest Coverage:
Testing
Run the tutorial tests:
Related Issues
Resolves #5200
Check List
--signoffor-s.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.