Commit graph

19 commits

Author SHA1 Message Date
Tiago Costa
86bb11dfb3
chore(NA): upgrades bazel rules nodejs to v5 (#129522) (#129852)
* chore(NA): upgrade bazel into v5

* chore(NA): initial work to upgrade to rules v5

* chore(NA): remove @elastic/datemath jest unit test for eslint plugin imports

* chore(NA): removed packager tsc_wrapped added my mistake

(cherry picked from commit eb0ef19583)

# Conflicts:
#	.github/CODEOWNERS
#	packages/kbn-eslint-plugin-imports/src/integration_tests/resolve_kibana_import.test.ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-04-08 16:30:53 -07:00
Cauê Marcondes
1e33587b68
[APM] fix cypress (#128411)
* Fix synthtrace, some broken tests

* fixing comparison test

* fixing error count e2e

* fixing error details test

* Fix APM deep links

* Add default environment to /apm/services request in home.spec.ts

* fixing service overview filter test

* Fix accessibility test in transactions overview page

* testing CI

* removing time arg

* removing unused import

* Fix e2e tests for infrastructure feature flag

* fixing and skipping tests

* fixing test

* skipping flaky test

Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
Co-authored-by: gbamparop <georgios.bamparopoulos@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-29 12:16:32 -07:00
Martijn Laarman
dd4652b33a
APM Synthtrace: Introduce new DSL using generators (#123454)
Co-authored-by: Martijn Laarman <ml@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-08 12:18:15 +01:00
Spencer
614139b8e5
[bazel] avoid a little boilerplate in packages (#126309)
* [bazel] avoid a little boilerplate for @types packages

* [bazel/ts] stop building sourcemaps since they're ignored
2022-02-24 12:43:12 -06:00
Dave Snider
96efcb2f30
String replace from "experimental" to "technical preview" (#124311)
* change experimental mentions to technical preview

* fix table

* revert yml manifest change

* fix jest tests

* fix translation

* feedback and tests

* feedback and typos. ty

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-04 12:15:27 -05:00
Giorgos Bamparopoulos
78643f495c
APM UI changes for serverless services / AWS lambda (#122775)
* Adapted service UI for AWS lambda / serverless services

* Add unit tests for isServerlessAgent function

* Add story for cold start badge

* Add unit tests for service icons and icon details

* Add aws_lambda checks to isMetricsTabHidden and isJVMsTabHidden unit tests

* Add API test for coldstart_rate chart

* Change service icon API tests to use synthrace and test for serverless property

* Change service details API tests to use synthrace and add test for serverless

* Add e2e tests for cold start rate chart

* Add cold start badge to transaction flyout

* Add beta badge to cloud details in a lambda context

* Add support for multiple lambda functions in a single service

Co-authored-by: Alexander Wert <alexander.wert@elastic.co>
Co-authored-by: Casper Hübertz <casper@formgeist.com>
2022-01-31 04:54:34 -07:00
Dario Gieselaar
75cf64dca5
[APM] Add scenario options for synthtrace (#121034)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-01-17 11:36:04 +01:00
Tobias Stadler
d916a37cdf
[APM] Prefer host.name over host.hostname (#119737) (#119952) 2021-12-13 08:26:58 -05:00
Dario Gieselaar
ee289642b7
[APM] Display relevant anomalies from multi-metric job (#119709)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-01 07:44:55 -07:00
Dario Gieselaar
39a29cc769
[APM] Generate stack monitoring data (#118302)
* Generate stack monitoring data

* Update file import

* Fix imports after bad merge from upstream

* A cluster stats generator

* Wiring kibana docs to ES docs

* Adding fields to get kibana cards rendering

* [apm-synthtrace] Export types Fields, ApmException, ApmSynthtraceEsClient

* [APM] Update integration tests with synthtrace changes

* [APM] Update Cypress E2E tests with synthtrace changes

* Fix lint errors

Co-authored-by: Milton Hultgren <milton.hultgren@elastic.co>
Co-authored-by: Mat Schaffer <mat@elastic.co>
2021-11-29 02:14:33 -07:00
Tiago Costa
6aba4fbe02
chore(NA): splits types from code on @elastic/apm-synthtrace (#118786)
* chore(NA): auto creation of the package.json for the new types pkg rule

* chore(NA): first alpha api extractor working version

* chore(NA): support kbn-analytics

* chore(NA): correctly read tsconfig files and deps from ts_config rule

* chore(NA): layed out pkg_npm_types tree artifact custom rule

* chore(NA): missing todos

* chore(NA): node modules link mapping

* chore(NA): fully working pkg_npm_types rule

* chore(NA): fix changes on new packages using elastic datemath pkgs

* docs(NA): remove todo

* docs(NA): last todo text correction

* chore(NA): removed commented lines

* fix(NA): include missing package version

* chore(NA): include license keys

* chore(NA): change mock types package into private

* chore(NA): split types_pkg from code_pkg on @elastic/apm-synthtrace

* chore(NA): disable validator on ts_project rule

* chore(NA): move into ts_project wrapper

* chore(NA): complete types exports

* chore(NA): export types as type only

* chore(NA): fix type exports

* chore(NA): only include exception type

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-18 22:06:18 +00:00
Tiago Costa
5fe8d741a0
chore(NA): creates pkg_npm_types bazel rule (#116465)
* chore(NA): auto creation of the package.json for the new types pkg rule

* chore(NA): first alpha api extractor working version

* chore(NA): support kbn-analytics

* chore(NA): correctly read tsconfig files and deps from ts_config rule

* chore(NA): layed out pkg_npm_types tree artifact custom rule

* chore(NA): missing todos

* chore(NA): node modules link mapping

* chore(NA): fully working pkg_npm_types rule

* chore(NA): fix changes on new packages using elastic datemath pkgs

* docs(NA): remove todo

* docs(NA): last todo text correction

* chore(NA): removed commented lines

* fix(NA): include missing package version

* chore(NA): include license keys

* chore(NA): change mock types package into private

* chore(NA): disable validator on ts_project rule

* chore(NA): use the wrapper for ts_project

* commit using @elastic.co

* chore(NA): commit using @elastic.co

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-16 00:07:49 +00:00
Spencer
62be2737bc
[x-pack/test/apm_api_integration] make registry a service (#116365)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-11-05 16:22:55 +00:00
Dario Gieselaar
6d5ba9be5e
[APM] Use Synthtrace in Cypress tests (#116948)
Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-02 10:48:05 +00:00
Dario Gieselaar
2c887539d5
[APM] Synthtrace ES Client (#116770)
Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>
2021-11-01 18:19:29 +00:00
Giorgos Bamparopoulos
e0764bd1d0
Update examples in the elastic-apm-synthtrace CLI section (#116574) 2021-10-28 05:04:01 -04:00
Mikhail Shustov
3c8fa527a7
[ES] Upgrade client to v8.0 (#113950)
* bump to a pre-8.0 version

* export KibanaClient from /lib sub-folder

* workaround the problem of the absence of estypes

* update es client usage in pacakges

* export estypes from another path

* import errors from root

* import errors from root 2

* update transport import

* update import path for /api/types

* update import path for /api/types

* import errors from top export

* use TransportResult instead if ApiResponse

* fix errors in client_config

* fix src/core/server/saved_objects/migrationsv2/actions/integration_tests/actions.test.ts

* use KibanaClient in mock. we dont export the original Client

* fix client mocks

* fix errors on SO

* fix remaining core errors

* update estype import path

* fix errors in data plugin

* fix data_views

* fix es_ui_shared

* fix errors in interactive_setup

* fix errors in ./test folder

* add @elastic/transport to the runtime deps

* fix errors in packages

* fix erros in src/core

* fix errors in test/

* fix an error in actions plugin

* woraround and fix errors in APM plugin

* fix errors in canvas

* fix errors in event_log

* fix errors in fleet

* fix errors in ILM

* fix errors in infra

* fix errors in ingest_pipeline

* fix errors in lens

* fix errors in license_management

* fix errors in licensing

* fix errors in logstash

* fix errors in ml

* fix errors in monitoring

* fix errors in observability

* fix errors in rule_registry

* fix errors in reporting

* fix errors in rule_registry

* fix errors in security

* fix errors in security_solution

* fix errors in snapshot_restore

* fix errors in transform

* fix errors in UA

* fix errors in uptime

* fix errors in x-pack/test

* fix eslint errors

* fix new errors

* use default HTTP Connection. Undici does not support agent config options keepAlive and maxSockets

* create does not accept require_alias option

* update deps

* use transport types exported from ES client package

* fix ErrorCause | string errors

* do not use enum

* fix errors in data plugin

* update x-pack code

* fix transport

* fix apm search request

* do not crash on reporting

* fix kbn-test build

* mute reporting error to start

* fix ftr build

* another attempt

* update import path

* address or mute new errors

* REMOVE me. pin transport version temporarily.

* remove deep imports from transport package

* fix jest crash

* fix product check tests

* remove unnecessary ts-expect-error

* fix a few failed unit tests

* bump to canary 24

* remove unnecessary ts-expect-error

* remove dependency on transport

* fix types in tests

* mute errors in xpack tests

* product check doesn;t  spam in logs anymore

* filterPath --> filter_path

* ignoreUnavailable --> ignore_unavailable

* ignoreUnavailable --> ignore_unavailable

* trackScores --> track_scores

* trackTotalHits --> track_total_hits

* fix es-arcives

* fix data plugin crashes

* fix watcher test utils

* rollback unnecessary changes

* fix another problem in es-archiver

* fix scroll. for whatever reason scroll fails when request scroll_id in body

* add meta: true in kbn-securitysolution-es-utils

* bump client to canary 25

* fix errors in accordance with the es client spec

* update securityscolution-es-utils

* unify scroll api in reporting and fix tests

* fix unit tests in watcher

* refactor APM to abort request with AbortController API

* fix missing es client calls in tests

* fix missing meta in detection engine FTR tests

* fix another bunch of errors in js tests

* fix wrong coercion

* remove test-grep pattern

* fix apm unit test

* rename terminateAfter to terminate_after in infra plugin

* rename terminateAfter to terminate_after in uptime plugin

* rename terminateAfter to terminate_after in apm plugin

* fix security roles FTR tests

* fix reference

* fix post_privilidges test

* fix post_privilidges

* bump client to 26

* add meta for index_management test helpers

* remove ts-expect-error caused by bad type in reason

* bump client to 27

* REMOVE me. workaround until fixed in the es client

* fix incorrect type casting

* swtich from camelCase params

* use `HttpConnection` for FTR-related clients

* bump client to 29

* Revert "REMOVE me. workaround until fixed in the es client"

This reverts commit c038850c09.

* fix new util

* revert repository changes

* do not crash if cannot store event_loop data

* fix new estypes imports

* fix more types

* fix security test types and add ts-ignore for custom ES client

* fix more estypes imports

* yet more ts violations

* line by line fixing is hard

* adapt `evaluateAlert` from infra as it's also used from FTR tests

* use convertToKibanaClient in FTR test instead of meta:true in plugin code

* migrate from deprecated API in fleet

* fix intergration tests

* fix fleet tests

* fix another fleet test

* fix more tests

* let's call it a day

* Removes custom header check on 404 responses, includes es client ProductNotSupportedError in EsUnavailableError conditional (#116029)

* Removes custom header check on 404 responses, includes es client ProductNotSupportedError in EsUnavailableError conditional

* Updates proxy response integration test

* disable APM until compatible with client v8

* skip async_search FTR test

* use kbnClient in integration tests

* bump version to 29

* bump to 30

* have configureClient return a KibanaClient instead of Client, remove resolved violations.

* bump to 31

* bump to 31

* Revert "bump to 31"

This reverts commit 5ac713e640.

* trigger stop to unusubscribe

* update generated docs

* remove obsolete test

* put "as" back

* cleanup

* skip test

* remove new type errors in apm package

* remove ErrorCause casting

* update a comment

* bump version to 32

* remove unnecessary ts-expect-error in apm code

* update comments

* update to client v33

* remove outdated type definition

* bump to 34 without params mutation

* unskip the test that should not fail anymore

* remove unnecessary ts-expect-error comments

* update to v35. body can be string

* move `sort` to body and use body friendly syntax

* fix a failing test. maps register the same SO that has been already registered by home

Co-authored-by: pgayvallet <pierre.gayvallet@gmail.com>
Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
2021-10-26 14:08:22 +02:00
Dario Gieselaar
9d9eeb0e8c
[APM] Optimize synthtrace (#116091) 2021-10-26 12:42:33 +02:00
Søren Louv-Jansen
51f8feaea0
Rename apm-generator to apm-synthtrace (#116075) 2021-10-25 16:25:01 -04:00