-
Notifications
You must be signed in to change notification settings - Fork 894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Home] Add support for otel sample data - logs, traces and metrics #8587
Conversation
Signed-off-by: Shenoy Pratik <[email protected]>
❌ Empty Changelog SectionThe Changelog section in your PR description is empty. Please add a valid changelog entry or entries. If you did add a changelog entry, check to make sure that it was not accidentally included inside the comment block in the Changelog section. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8587 +/- ##
==========================================
- Coverage 60.89% 60.83% -0.06%
==========================================
Files 3790 3793 +3
Lines 90262 90412 +150
Branches 14154 14196 +42
==========================================
+ Hits 54962 55004 +42
- Misses 31829 31932 +103
- Partials 3471 3476 +5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Not related to this PR, in the screen record, I noticed that you need to switch data source quite frequently, do you feel it's a bit overwhelming? |
src/plugins/home/server/services/sample_data/data_sets/otel/index.ts
Outdated
Show resolved
Hide resolved
}); | ||
const initialAppLinks = [] as AppLinkSchema[]; | ||
|
||
const DEFAULT_INDEX = 'i254a9691-8a1b-11ef-adb4-9f1097200c20'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this default index from? Seems we won't add any saved objects after sample data imported.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, this is not needed anymore. Updated here: c6949c4
previewImagePath: '/plugins/home/assets/sample_data_resources/otel/otel_traces.png', | ||
darkPreviewImagePath: '/plugins/home/assets/sample_data_resources/otel/otel_traces_dark.png', | ||
hasNewThemeImages: true, | ||
overviewDashboard: DASHBOARD_ID, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we update SampleDatsetSchema
to set field to optional? Since this overviewDashboard
value will be used in this line, do we need to hide this button or show another link?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Eric <[email protected]>
Signed-off-by: Eric <[email protected]>
Signed-off-by: Eric <[email protected]>
Signed-off-by: Ryan Liang <[email protected]>
Signed-off-by: Eric <[email protected]>
Signed-off-by: Eric <[email protected]>
Signed-off-by: Eric Wei <[email protected]>
…o utils Signed-off-by: Shenoy Pratik <[email protected]>
const initialAppLinks = [] as AppLinkSchema[]; | ||
|
||
const DEFAULT_INDEX = 'i254a9691-8a1b-11ef-adb4-9f1097200c20'; | ||
const DASHBOARD_ID = ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this empty?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed the variable, we don't have a default dashboard, users land on to traces page
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
defaultMessage: | ||
'Sample data including correlated observability signals for an e-commerce application in Open-Telemetry standard.', | ||
}); | ||
const initialAppLinks = [] as AppLinkSchema[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit. avoid assertions if possible
const initialAppLinks = [] as AppLinkSchema[]; | |
const initialAppLinks: AppLinkSchema[] = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to add traces and services links c6949c4
id: 'otel-v1-apm-span-sample', | ||
dataPath: path.join(__dirname, './sample_traces.json.gz'), | ||
fields: tracesFieldMappings, | ||
timeFields: ['startTime', 'endTime', 'traceGroupFields.endTime'], // TODO: add support for 'events.time' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is needed for events.time
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parsing array field needs to be added to search for the timefield inside the array and then update it in the doc. My understanding is this is not needed for P0 and can be fine if taken up later and trace queries use startTime
and endTime
src/plugins/home/server/services/sample_data/data_sets/otel/logs_field_mappings.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: Shenoy Pratik <[email protected]>
Signed-off-by: Eric <[email protected]>
src/plugins/home/server/services/sample_data/data_sets/otel/logs_field_mappings.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: Eric <[email protected]>
Signed-off-by: Eric <[email protected]>
Signed-off-by: Eric <[email protected]>
Signed-off-by: Eric <[email protected]>
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be better to remove the .keyword
field given it is already keyword type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, will mark this as discussed already with vamsi that we will enhance sample data experience including things like this.
) * add support for otel sample data - traces and services Signed-off-by: Shenoy Pratik <[email protected]> * Changeset file for PR #8587 created/updated * upload gz otel data Signed-off-by: Eric <[email protected]> * add mappings Signed-off-by: Eric <[email protected]> * correct mappings Signed-off-by: Eric <[email protected]> * Fix the time mismatch for otel sample data Signed-off-by: Ryan Liang <[email protected]> * adjust time maker Signed-off-by: Eric <[email protected]> * create index name tests Signed-off-by: Eric <[email protected]> * add indexName field to DataIndexSchema, move nested field functions to utils Signed-off-by: Shenoy Pratik <[email protected]> * add button for app redirection, resolve comments Signed-off-by: Shenoy Pratik <[email protected]> * adjust id field to be as keyword Signed-off-by: Eric <[email protected]> * remove redundant keyword declaration Signed-off-by: Eric <[email protected]> * move to use correct format sample suffix Signed-off-by: Eric <[email protected]> * update text and one log index name/id Signed-off-by: Eric <[email protected]> * fix sample data test Signed-off-by: Eric <[email protected]> --------- Signed-off-by: Shenoy Pratik <[email protected]> Signed-off-by: Eric <[email protected]> Signed-off-by: Ryan Liang <[email protected]> Signed-off-by: Eric Wei <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> Co-authored-by: Eric <[email protected]> Co-authored-by: Ryan Liang <[email protected]> (cherry picked from commit c8b5318) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
) (#8666) * add support for otel sample data - traces and services * Changeset file for PR #8587 created/updated * upload gz otel data * add mappings * correct mappings * Fix the time mismatch for otel sample data * adjust time maker * create index name tests * add indexName field to DataIndexSchema, move nested field functions to utils * add button for app redirection, resolve comments * adjust id field to be as keyword * remove redundant keyword declaration * move to use correct format sample suffix * update text and one log index name/id * fix sample data test --------- (cherry picked from commit c8b5318) Signed-off-by: Shenoy Pratik <[email protected]> Signed-off-by: Eric <[email protected]> Signed-off-by: Ryan Liang <[email protected]> Signed-off-by: Eric Wei <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> Co-authored-by: Eric <[email protected]> Co-authored-by: Ryan Liang <[email protected]>
…ensearch-project#8587) * add support for otel sample data - traces and services Signed-off-by: Shenoy Pratik <[email protected]> * Changeset file for PR opensearch-project#8587 created/updated * upload gz otel data Signed-off-by: Eric <[email protected]> * add mappings Signed-off-by: Eric <[email protected]> * correct mappings Signed-off-by: Eric <[email protected]> * Fix the time mismatch for otel sample data Signed-off-by: Ryan Liang <[email protected]> * adjust time maker Signed-off-by: Eric <[email protected]> * create index name tests Signed-off-by: Eric <[email protected]> * add indexName field to DataIndexSchema, move nested field functions to utils Signed-off-by: Shenoy Pratik <[email protected]> * add button for app redirection, resolve comments Signed-off-by: Shenoy Pratik <[email protected]> * adjust id field to be as keyword Signed-off-by: Eric <[email protected]> * remove redundant keyword declaration Signed-off-by: Eric <[email protected]> * move to use correct format sample suffix Signed-off-by: Eric <[email protected]> * update text and one log index name/id Signed-off-by: Eric <[email protected]> * fix sample data test Signed-off-by: Eric <[email protected]> --------- Signed-off-by: Shenoy Pratik <[email protected]> Signed-off-by: Eric <[email protected]> Signed-off-by: Ryan Liang <[email protected]> Signed-off-by: Eric Wei <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> Co-authored-by: Eric <[email protected]> Co-authored-by: Ryan Liang <[email protected]>
…ensearch-project#8587) * add support for otel sample data - traces and services Signed-off-by: Shenoy Pratik <[email protected]> * Changeset file for PR opensearch-project#8587 created/updated * upload gz otel data Signed-off-by: Eric <[email protected]> * add mappings Signed-off-by: Eric <[email protected]> * correct mappings Signed-off-by: Eric <[email protected]> * Fix the time mismatch for otel sample data Signed-off-by: Ryan Liang <[email protected]> * adjust time maker Signed-off-by: Eric <[email protected]> * create index name tests Signed-off-by: Eric <[email protected]> * add indexName field to DataIndexSchema, move nested field functions to utils Signed-off-by: Shenoy Pratik <[email protected]> * add button for app redirection, resolve comments Signed-off-by: Shenoy Pratik <[email protected]> * adjust id field to be as keyword Signed-off-by: Eric <[email protected]> * remove redundant keyword declaration Signed-off-by: Eric <[email protected]> * move to use correct format sample suffix Signed-off-by: Eric <[email protected]> * update text and one log index name/id Signed-off-by: Eric <[email protected]> * fix sample data test Signed-off-by: Eric <[email protected]> --------- Signed-off-by: Shenoy Pratik <[email protected]> Signed-off-by: Eric <[email protected]> Signed-off-by: Ryan Liang <[email protected]> Signed-off-by: Eric Wei <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> Co-authored-by: Eric <[email protected]> Co-authored-by: Ryan Liang <[email protected]>
Description
Add support for otel sample data - logs, traces and metrics
Issues Resolved
OTEL-sample-data.mov
Changelog
Check List
yarn test:jest
yarn test:jest_integration