Move helpers required for trace metrics to the apm-data-access plugin#248513
Move helpers required for trace metrics to the apm-data-access plugin#248513viduni94 merged 16 commits intoelastic:mainfrom
Conversation
|
/ci |
|
/ci |
|
/ci |
|
/ci |
|
/ci |
1 similar comment
|
/ci |
1deab51 to
3e14fe0
Compare
|
/ci |
1 similar comment
|
/ci |
|
Pinging @elastic/obs-ai-team (Team:obs-ai) |
|
Pinging @elastic/obs-presentation-team (Team:obs-presentation) |
💔 Build Failed
Failed CI StepsHistory
cc @viduni94 |
| const durationField = getDurationFieldForTransactions(documentType, hasDurationSummaryField); | ||
| const outcomeAggs = getOutcomeAggregation(documentType); | ||
|
|
||
| const response = await apmEventClient.search('get_trace_metrics', { |
There was a problem hiding this comment.
Woop! Awesome to see the apmEventClient working outside of the APM plugin!!
sorenlouv
left a comment
There was a problem hiding this comment.
Thank you Viduni!
I was worried how many new dependencies this would add to the apm-data-access plugin. It looks like zero? That's awesome!
With this change APM data is much more accessible.
|
Are there other Agent Builder specifics queries in APM plugin that we can now move back to observability_agent_builder? Or was Edit: yes, this one: #247810 |
@sorenlouv |
|
Starting backport for target branches: 9.3 https://github.com/elastic/kibana/actions/runs/20959174415 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
…elastic#248513) Closes elastic/obs-ai-team#452 ## Summary This PR moves the trace metrics implementation from the APM plugin to the Observability Agent Builder plugin. - The reason for this change is to keep all the tool implementations within the Observability Agent Builder plugin. (The trace metrics implementation was originally included in the APM plugin as it used some helpers defined in the APM plugin) ### Changes - The trace metrics implementation was removed from the APM plugin and moved to the Observability Agent Builder plugin - Helpers used to calculate trace metrics that were located in the APM plugin were moved to the `apm-data-access` plugin (The Observability Agent Builder plugin already depends on the `apm-data-access` plugin) Helpers that were moved from the APM plugin to the `apm-data-access` plugin: - `calculateThroughputWithRange` - `getOutcomeAggregation` - `calculateFailedTransactionRate` - `getDurationFieldForTransactions` - `isSummaryFieldSupportedByDocType` - `getHasTransactionsEvents` Additionally, `getRollupIntervalForTimeRange` helper that was defined in the Observability Agent Builder plugin was also moved to the `apm-data-access` plugin. (See [comment](elastic#247474 (comment))) ### Checklist - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) - [x] Review the [backport guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing) and apply applicable `backport:*` labels. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Closes https://github.com/elastic/obs-ai-team/issues/452
Summary
This PR moves the trace metrics implementation from the APM plugin to the Observability Agent Builder plugin.
(The trace metrics implementation was originally included in the APM plugin as it used some helpers defined in the APM plugin)
Changes
apm-data-accessplugin (The Observability Agent Builder plugin already depends on theapm-data-accessplugin)Helpers that were moved from the APM plugin to the
apm-data-accessplugin:calculateThroughputWithRangegetOutcomeAggregationcalculateFailedTransactionRategetDurationFieldForTransactionsisSummaryFieldSupportedByDocTypegetHasTransactionsEventsAdditionally,
getRollupIntervalForTimeRangehelper that was defined in the Observability Agent Builder plugin was also moved to theapm-data-accessplugin. (See comment)Checklist
release_note:*label is applied per the guidelinesbackport:*labels.