Skip to content
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

[APM] Export ProcessorEvent type #90540

Merged
merged 2 commits into from
Feb 8, 2021

Conversation

sorenlouv
Copy link
Member

@sorenlouv sorenlouv commented Feb 6, 2021

Related to: #82724

To use the APM client ProcessorEvent is required:

const apmEventClient = createApmEventClient({ request, context });
const params = {
  apm: { events: [ProcessorEvent.transaction] },
  body: { size: 0, query, aggs },
};
const resp = await apmEventClient.search(params);

This PR export ProcessorEvent for anyone to use

@sorenlouv sorenlouv requested a review from a team as a code owner February 6, 2021 00:53
@botelastic botelastic bot added the Team:APM All issues that need APM UI Team support label Feb 6, 2021
@elasticmachine
Copy link
Contributor

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

@sorenlouv sorenlouv added release_note:skip Skip the PR/issue when compiling release notes v7.12.0 labels Feb 6, 2021
@sorenlouv
Copy link
Member Author

@elasticmachine merge upstream

@sorenlouv
Copy link
Member Author

retest

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / X-Pack Accessibility Tests.x-pack/test/accessibility/apps/uptime·ts.uptime overview alert popover controls

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 2 times on tracked branches: https://github.com/elastic/kibana/issues/90555

[00:00:00]       │
[00:01:26]         └-: uptime
[00:01:26]           └-> "before all" hook for "overview page"
[00:01:26]           └-> "before all" hook for "overview page"
[00:01:26]             │ info [uptime/blank] Loading "mappings.json"
[00:01:26]             │ info [uptime/blank] Loading "data.json"
[00:01:26]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1612742233390364915] [heartbeat-8-generated-test] creating index, cause [api], templates [], shards [1]/[1]
[00:01:26]             │ info [uptime/blank] Created index "heartbeat-8-generated-test"
[00:01:26]             │ debg [uptime/blank] "heartbeat-8-generated-test" settings undefined
[00:01:27]           └-> overview page
[00:01:27]             └-> "before each" hook: global before each for "overview page"
[00:01:27]             └-> "before each" hook for "overview page"
[00:01:27]               │ debg TestSubjects.exists(uptimeSettingsToOverviewLink)
[00:01:27]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeSettingsToOverviewLink"]') with timeout=0
[00:01:27]               │ debg --- retry.tryForTime error: [data-test-subj="uptimeSettingsToOverviewLink"] is not displayed
[00:01:28]               │ debg navigating to uptime url: http://localhost:61201/app/uptime
[00:01:28]               │ debg navigate to: http://localhost:61201/app/uptime
[00:01:28]               │ debg browser[INFO] http://localhost:61201/app/uptime?_t=1612744332320 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:01:28]               │
[00:01:28]               │ debg browser[INFO] http://localhost:61201/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:28]               │ debg ... sleep(700) start
[00:01:29]               │ debg ... sleep(700) end
[00:01:29]               │ debg returned from get, calling refresh
[00:01:29]               │ debg browser[INFO] http://localhost:61201/app/uptime?_t=1612744332320 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:01:29]               │
[00:01:29]               │ debg browser[INFO] http://localhost:61201/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:30]               │ debg currentUrl = http://localhost:61201/app/uptime
[00:01:30]               │          appUrl = http://localhost:61201/app/uptime
[00:01:30]               │ debg TestSubjects.find(kibanaChrome)
[00:01:30]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:30]               │ debg ... sleep(501) start
[00:01:31]               │ debg ... sleep(501) end
[00:01:31]               │ debg in navigateTo url = http://localhost:61201/app/uptime
[00:01:31]               │ debg TestSubjects.exists(statusPageContainer)
[00:01:31]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:01:33]               │ERROR browser[SEVERE] http://localhost:61201/40214/bundles/plugin/uptime/uptime.chunk.1.js 2:18780 "API /api/uptime/monitor/list is not returning expected response, Invalid value \"undefined\" supplied to \"summaries.state.summaryPings.tls.server.x509.issuer.distinguished_name\",Invalid value \"undefined\" supplied to \"summaries.state.summaryPings.tls.server.x509.subject.distinguished_name\",Invalid value \"undefined\" supplied to \"summaries.state.summaryPings.tls.server.x509.serial_number\",Invalid value \"undefined\" supplied to \"summaries.state.summaryPings.tls.server.x509.public_key_algorithm\",Invalid value \"undefined\" supplied to \"summaries.state.summaryPings.tls.server.x509.signature_algorithm\",Invalid value \"undefined\" supplied to \"summaries.state.summaryPings.tls.server.x509.not_after\",Invalid value \"undefined\" supplied to \"summaries.state.summaryPings.tls.server.x509.not_before\" for response" Object
[00:01:33]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:01:34]               │ debg isGlobalLoadingIndicatorVisible
[00:01:34]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:34]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:35]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:01:36]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:36]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:36]               │ debg TestSubjects.exists(uptimeOverviewPage)
[00:01:36]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeOverviewPage"]') with timeout=2000
[00:01:36]             └- ✓ pass  (578ms) "uptime overview page"
[00:01:36]           └-> overview page with expanded monitor detail
[00:01:36]             └-> "before each" hook: global before each for "overview page with expanded monitor detail"
[00:01:36]             └-> "before each" hook for "overview page with expanded monitor detail"
[00:01:36]               │ debg TestSubjects.exists(uptimeSettingsToOverviewLink)
[00:01:36]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeSettingsToOverviewLink"]') with timeout=0
[00:01:36]               │ debg TestSubjects.click(uptimeSettingsToOverviewLink)
[00:01:36]               │ debg Find.clickByCssSelector('[data-test-subj="uptimeSettingsToOverviewLink"]') with timeout=10000
[00:01:36]               │ debg Find.findByCssSelector('[data-test-subj="uptimeSettingsToOverviewLink"]') with timeout=10000
[00:01:36]               │ debg isGlobalLoadingIndicatorVisible
[00:01:36]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:36]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:38]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:01:39]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:39]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:39]               │ debg TestSubjects.exists(uptimeOverviewPage)
[00:01:39]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeOverviewPage"]') with timeout=2000
[00:01:39]             │ debg TestSubjects.click(xpack.uptime.monitorList.a11yTestMonitor.expandMonitorDetail)
[00:01:39]             │ debg Find.clickByCssSelector('[data-test-subj="xpack.uptime.monitorList.a11yTestMonitor.expandMonitorDetail"]') with timeout=10000
[00:01:39]             │ debg Find.findByCssSelector('[data-test-subj="xpack.uptime.monitorList.a11yTestMonitor.expandMonitorDetail"]') with timeout=10000
[00:01:39]             │ debg TestSubjects.click(xpack.uptime.monitorList.actionsPopover.a11yTestMonitor)
[00:01:39]             │ debg Find.clickByCssSelector('[data-test-subj="xpack.uptime.monitorList.actionsPopover.a11yTestMonitor"]') with timeout=10000
[00:01:39]             │ debg Find.findByCssSelector('[data-test-subj="xpack.uptime.monitorList.actionsPopover.a11yTestMonitor"]') with timeout=10000
[00:01:39]             └- ✓ pass  (758ms) "uptime overview page with expanded monitor detail"
[00:01:39]           └-> overview alert popover controls
[00:01:39]             └-> "before each" hook: global before each for "overview alert popover controls"
[00:01:39]             └-> "before each" hook for "overview alert popover controls"
[00:01:39]               │ debg TestSubjects.exists(uptimeSettingsToOverviewLink)
[00:01:39]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeSettingsToOverviewLink"]') with timeout=0
[00:01:39]               │ debg TestSubjects.click(uptimeSettingsToOverviewLink)
[00:01:39]               │ debg Find.clickByCssSelector('[data-test-subj="uptimeSettingsToOverviewLink"]') with timeout=10000
[00:01:39]               │ debg Find.findByCssSelector('[data-test-subj="uptimeSettingsToOverviewLink"]') with timeout=10000
[00:01:39]               │ debg isGlobalLoadingIndicatorVisible
[00:01:39]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:39]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:41]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:01:42]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:42]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:42]               │ debg TestSubjects.exists(uptimeOverviewPage)
[00:01:42]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeOverviewPage"]') with timeout=2000
[00:01:42]             │ debg TestSubjects.click(xpack.uptime.alertsPopover.toggleButton)
[00:01:42]             │ debg Find.clickByCssSelector('[data-test-subj="xpack.uptime.alertsPopover.toggleButton"]') with timeout=10000
[00:01:42]             │ debg Find.findByCssSelector('[data-test-subj="xpack.uptime.alertsPopover.toggleButton"]') with timeout=10000
[00:01:42]             │ info Taking screenshot "/dev/shm/workspace/parallel/20/kibana/x-pack/test/functional/screenshots/failure/uptime overview alert popover controls.png"
[00:01:42]             │ info Current URL is: http://localhost:61201/app/uptime
[00:01:42]             │ info Saving page source to: /dev/shm/workspace/parallel/20/kibana/x-pack/test/functional/failure_debug/html/uptime overview alert popover controls.html
[00:01:42]             └- ✖ fail: uptime overview alert popover controls
[00:01:42]             │      Error: a11y report:
[00:01:42]             │ 
[00:01:42]             │ VIOLATION
[00:01:42]             │   [aria-hidden-focus]: Ensures aria-hidden elements do not contain focusable elements
[00:01:42]             │     Help: https://dequeuniversity.com/rules/axe/4.0/aria-hidden-focus?application=axeAPI
[00:01:42]             │     Elements:
[00:01:42]             │       - #kibana-body
[00:01:42]             │       - div[data-focus-guard="true"][data-aria-hidden="true"][aria-hidden="true"]:nth-child(1)
[00:01:42]             │       - div[data-focus-guard="true"][data-aria-hidden="true"][aria-hidden="true"]:nth-child(2)
[00:01:42]             │       - div[data-focus-guard="true"][data-aria-hidden="true"][aria-hidden="true"]:nth-child(4)
[00:01:42]             │       at Accessibility.testAxeReport (/dev/shm/workspace/parallel/20/kibana/test/accessibility/services/a11y/a11y.ts:76:15)
[00:01:42]             │       at Accessibility.testAppSnapshot (/dev/shm/workspace/parallel/20/kibana/test/accessibility/services/a11y/a11y.ts:49:18)
[00:01:42]             │       at runMicrotasks (<anonymous>)
[00:01:42]             │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:01:42]             │       at Context.<anonymous> (test/accessibility/apps/uptime.ts:62:7)
[00:01:42]             │       at Object.apply (/dev/shm/workspace/parallel/20/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:01:42]             │ 
[00:01:42]             │ 

Stack Trace

Error: a11y report:

VIOLATION
  [aria-hidden-focus]: Ensures aria-hidden elements do not contain focusable elements
    Help: https://dequeuniversity.com/rules/axe/4.0/aria-hidden-focus?application=axeAPI
    Elements:
      - #kibana-body
      - div[data-focus-guard="true"][data-aria-hidden="true"][aria-hidden="true"]:nth-child(1)
      - div[data-focus-guard="true"][data-aria-hidden="true"][aria-hidden="true"]:nth-child(2)
      - div[data-focus-guard="true"][data-aria-hidden="true"][aria-hidden="true"]:nth-child(4)
    at Accessibility.testAxeReport (/dev/shm/workspace/parallel/20/kibana/test/accessibility/services/a11y/a11y.ts:76:15)
    at Accessibility.testAppSnapshot (/dev/shm/workspace/parallel/20/kibana/test/accessibility/services/a11y/a11y.ts:49:18)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Context.<anonymous> (test/accessibility/apps/uptime.ts:62:7)
    at Object.apply (/dev/shm/workspace/parallel/20/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Metrics [docs]

✅ unchanged

History

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

@sorenlouv sorenlouv merged commit be9f7c3 into elastic:master Feb 8, 2021
@sorenlouv sorenlouv deleted the export-processor-event branch February 8, 2021 13:37
gmmorris added a commit to gmmorris/kibana that referenced this pull request Feb 8, 2021
* master: (55 commits)
  [APM-UI][E2E] use githubNotify step (elastic#90514)
  [APM] Export ProcessorEvent type (elastic#90540)
  [Lens] Retain column config (elastic#90048)
  [Data Table] Add unit tests (elastic#90173)
  Migrate most plugins to synchronous lifecycle (elastic#89562)
  skip flaky suite (elastic#90555)
  skip flaky suite (elastic#64473)
  [actions] improve email action doc (elastic#90020)
  [Fleet] Support Fleet server system indices (elastic#89372)
  skip flaky suite (elastic#90552)
  Bump immer dependencies (elastic#90267)
  Unrevert "Migrations v2: don't auto-create indices + FTR/esArchiver support (elastic#85778)" (elastic#89992)
  [Search Sessions] Use sync config (elastic#90138)
  chore(NA): add safe guard to remove bazelisk from yarn global at bootstrap (elastic#90538)
  [test] Await retry.waitFor (elastic#90456)
  chore(NA): integrate build buddy with our bazel setup and remote cache for ci (elastic#90116)
  Skip failing suite (elastic#90526)
  [Fleet] Fix incorrect conversion of string to numeric values in agent YAML (elastic#90371)
  [Docs] Update reporting troubleshooting for arm rhel/centos (elastic#90385)
  chore(NA): build bazel projects all at once in the distributable build process (elastic#90328)
  ...
sorenlouv added a commit that referenced this pull request Feb 8, 2021
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:APM All issues that need APM UI Team support v7.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants