Skip to content

[APM] Don't use service tx metrics on transaction detail page - #159085

Merged
dgieselaar merged 7 commits into
elastic:mainfrom
dgieselaar:service-metrics-tx-name
Jun 8, 2023
Merged

dgieselaar merged 7 commits into
elastic:mainfrom
dgieselaar:service-metrics-tx-name

Conversation

@dgieselaar

@dgieselaar dgieselaar commented Jun 6, 2023 •

Copy link
Copy Markdown
Contributor

Closes #158964.

@dgieselaar
dgieselaar requested a review from a team June 6, 2023 05:16
@elasticmachine

Copy link
Copy Markdown
Contributor

Pinging @elastic/apm-ui (Team:APM)

@ghost

ghost commented Jun 6, 2023

Copy link
Copy Markdown

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@sorenlouv sorenlouv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix!

@sorenlouv

Copy link
Copy Markdown
Contributor

... I still think we should do a follow-up to this with an e2e test. This is not the first time this bug is introduced. I'd like it to be the last 🤞

@dgieselaar

Copy link
Copy Markdown
Contributor Author

@sqren agreed, keeping it in draft until I figure out a way to add some kind of test. Just worried about having to parse SVG or canvas 🥲

@sorenlouv

Copy link
Copy Markdown
Contributor

Just worried about having to parse SVG or canvas 🥲

Yeah, I also briefly looked into it. There are no DOM elements to target (obviously) and I can't find a way to enable canvas inspection in Chrome (was that feature removed recently?). Firefox doesn't have canvas inspection afaict.

@kibana-ci

Copy link
Copy Markdown

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
apm 3.5MB 3.5MB +211.0B
profiling 287.5KB 287.6KB +143.0B
ux 165.2KB 165.4KB +143.0B
total +497.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
securitySolution 413 417 +4
total +6

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
securitySolution 497 501 +4
total +6

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@dgieselaar

Copy link
Copy Markdown
Contributor Author

@sqren I've added some E2E tests in , mind having another look? ee8c4c0 (#159085)

@dgieselaar dgieselaar added v8.8.2 and removed v8.8.1 labels Jun 6, 2023
@dgieselaar
dgieselaar marked this pull request as ready for review June 6, 2023 13:34

@sorenlouv sorenlouv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding an e2e test. Intercepting APIs feel a little fragile in the sense that tests will fail if an API is renamed - even if the UI stays unchanged.

@dgieselaar

Copy link
Copy Markdown
Contributor Author

@sqren agreed, but in this case if they're renamed we'll have a type check failure. Which at least is something.

@dgieselaar
dgieselaar merged commit 74102e5 into elastic:main Jun 8, 2023
@dgieselaar
dgieselaar deleted the service-metrics-tx-name branch June 8, 2023 07:22
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jun 8, 2023
@kibanamachine

Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
✅ 8.8

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jun 8, 2023
…159085) (#159281)

# Backport

This will backport the following commits from `main` to `8.8`:
- [[APM] Don't use service tx metrics on transaction detail page
(#159085)](#159085)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Dario
Gieselaar","email":"dario.gieselaar@elastic.co"},"sourceCommit":{"committedDate":"2023-06-08T07:20:13Z","message":"[APM]
Don't use service tx metrics on transaction detail page
(#159085)","sha":"74102e592f5193e9566b16d921931c2dc2a67a86","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:APM","v8.9.0","v8.8.2"],"number":159085,"url":"https://github.com/elastic/kibana/pull/159085","mergeCommit":{"message":"[APM]
Don't use service tx metrics on transaction detail page
(#159085)","sha":"74102e592f5193e9566b16d921931c2dc2a67a86"}},"sourceBranch":"main","suggestedTargetBranches":["8.8"],"targetPullRequestStates":[{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/159085","number":159085,"mergeCommit":{"message":"[APM]
Don't use service tx metrics on transaction detail page
(#159085)","sha":"74102e592f5193e9566b16d921931c2dc2a67a86"}},{"branch":"8.8","label":"v8.8.2","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
@mistic mistic removed the v8.8.1 label Jun 8, 2023
@mistic

mistic commented Jun 8, 2023

Copy link
Copy Markdown
Contributor

This PR backport didn't make it into the latest BC for 8.8.1. Updating the labels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

APM latency graph is not filtering properly on 8.8

6 participants