Refactor of Trace analytics to improve readability by reducing duplicated checks.
Description
Files/calls using <mode === 'data_prepper'> and <mode === 'jaeger'> multiple times replaced with isDataPrepper and isJaeger to improve readability.
Also removed currPage argument from onTableChange in /trace_analytics/components/traces/traces_table.tsx call as it was not used in the function and was throwing an error.
Check List
[ ] New functionality includes testing.
[ ] All tests pass, including unit test, integration test and doctest
[ ] New functionality has been documented.
[ ] New functionality has javadoc added
[ ] New functionality has user manual doc added
[X] Commits are signed per the DCO using --signoff
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.
Refactor of Trace analytics to improve readability by reducing duplicated checks.
Description
Files/calls using <mode === 'data_prepper'> and <mode === 'jaeger'> multiple times replaced with isDataPrepper and isJaeger to improve readability.
Also removed currPage argument from onTableChange in /trace_analytics/components/traces/traces_table.tsx call as it was not used in the function and was throwing an error.
Check List
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.