Skip to content

Commit e4495c4

Browse files
committed
Merge branch 'master' into reporting/performance-measurement
2 parents dd9c55b + 5629dd6 commit e4495c4

File tree

2,447 files changed

+30242
-10070
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,447 files changed

+30242
-10070
lines changed

.backportrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"targetBranchChoices": [
44
{ "name": "master", "checked": true },
55
{ "name": "7.x", "checked": true },
6+
"7.8",
67
"7.7",
78
"7.6",
89
"7.5",

.eslintignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ target
2626
/src/plugins/vis_type_timelion/public/webpackShims/jquery.flot.*
2727
/x-pack/legacy/plugins/**/__tests__/fixtures/**
2828
/x-pack/plugins/apm/e2e/cypress/**/snapshots.js
29-
/x-pack/legacy/plugins/canvas/canvas_plugin
30-
/x-pack/legacy/plugins/canvas/canvas_plugin_src/lib/flot-charts
31-
/x-pack/legacy/plugins/canvas/shareable_runtime/build
32-
/x-pack/legacy/plugins/canvas/storybook
29+
/x-pack/plugins/canvas/canvas_plugin
30+
/x-pack/plugins/canvas/canvas_plugin_src/lib/flot-charts
31+
/x-pack/plugins/canvas/shareable_runtime/build
32+
/x-pack/plugins/canvas/storybook
3333
/x-pack/plugins/monitoring/public/lib/jquery_flot
3434
/x-pack/legacy/plugins/infra/common/graphql/types.ts
3535
/x-pack/legacy/plugins/infra/public/graphql/types.ts

.eslintrc.js

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ module.exports = {
8989
},
9090
},
9191
{
92-
files: ['x-pack/legacy/plugins/canvas/**/*.{js,ts,tsx}'],
92+
files: ['x-pack/plugins/canvas/**/*.{js,ts,tsx}'],
9393
rules: {
9494
'react-hooks/exhaustive-deps': 'off',
9595
'jsx-a11y/click-events-have-key-events': 'off',
@@ -112,7 +112,6 @@ module.exports = {
112112
files: ['x-pack/plugins/lens/**/*.{js,ts,tsx}'],
113113
rules: {
114114
'react-hooks/exhaustive-deps': 'off',
115-
'react-hooks/rules-of-hooks': 'off',
116115
},
117116
},
118117
{
@@ -193,6 +192,11 @@ module.exports = {
193192
{
194193
basePath: __dirname,
195194
zones: [
195+
{
196+
target: ['(src|x-pack)/**/*', '!src/core/**/*'],
197+
from: ['src/core/utils/**/*'],
198+
errorMessage: `Plugins may only import from src/core/server and src/core/public.`,
199+
},
196200
{
197201
target: [
198202
'(src|x-pack)/legacy/**/*',
@@ -233,6 +237,7 @@ module.exports = {
233237
],
234238
from: [
235239
'(src|x-pack)/plugins/**/(public|server)/**/*',
240+
'!(src|x-pack)/plugins/**/(public|server)/mocks/index.{js,ts}',
236241
'!(src|x-pack)/plugins/**/(public|server)/(index|mocks).{js,ts,tsx}',
237242
],
238243
allowSameFolder: true,
@@ -888,7 +893,7 @@ module.exports = {
888893
* Canvas overrides
889894
*/
890895
{
891-
files: ['x-pack/legacy/plugins/canvas/**/*.js'],
896+
files: ['x-pack/plugins/canvas/**/*.js'],
892897
rules: {
893898
radix: 'error',
894899

@@ -932,12 +937,12 @@ module.exports = {
932937
},
933938
{
934939
files: [
935-
'x-pack/legacy/plugins/canvas/gulpfile.js',
936-
'x-pack/legacy/plugins/canvas/scripts/*.js',
937-
'x-pack/legacy/plugins/canvas/tasks/*.js',
938-
'x-pack/legacy/plugins/canvas/tasks/**/*.js',
939-
'x-pack/legacy/plugins/canvas/__tests__/**/*.js',
940-
'x-pack/legacy/plugins/canvas/**/{__tests__,__test__,__jest__,__fixtures__,__mocks__}/**/*.js',
940+
'x-pack/plugins/canvas/gulpfile.js',
941+
'x-pack/plugins/canvas/scripts/*.js',
942+
'x-pack/plugins/canvas/tasks/*.js',
943+
'x-pack/plugins/canvas/tasks/**/*.js',
944+
'x-pack/plugins/canvas/__tests__/**/*.js',
945+
'x-pack/plugins/canvas/**/{__tests__,__test__,__jest__,__fixtures__,__mocks__}/**/*.js',
941946
],
942947
rules: {
943948
'import/no-extraneous-dependencies': [
@@ -950,7 +955,7 @@ module.exports = {
950955
},
951956
},
952957
{
953-
files: ['x-pack/legacy/plugins/canvas/canvas_plugin_src/**/*.js'],
958+
files: ['x-pack/plugins/canvas/canvas_plugin_src/**/*.js'],
954959
globals: { canvas: true, $: true },
955960
rules: {
956961
'import/no-unresolved': [
@@ -962,13 +967,13 @@ module.exports = {
962967
},
963968
},
964969
{
965-
files: ['x-pack/legacy/plugins/canvas/public/**/*.js'],
970+
files: ['x-pack/plugins/canvas/public/**/*.js'],
966971
env: {
967972
browser: true,
968973
},
969974
},
970975
{
971-
files: ['x-pack/legacy/plugins/canvas/canvas_plugin_src/lib/flot-charts/**/*.js'],
976+
files: ['x-pack/plugins/canvas/canvas_plugin_src/lib/flot-charts/**/*.js'],
972977
env: {
973978
jquery: true,
974979
},

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
/x-pack/legacy/plugins/beats_management/ @elastic/beats
7878

7979
# Canvas
80-
/x-pack/legacy/plugins/canvas/ @elastic/kibana-canvas
80+
/x-pack/plugins/canvas/ @elastic/kibana-canvas
8181

8282
# Observability UIs
8383
/x-pack/legacy/plugins/infra/ @elastic/logs-metrics-ui

.i18nrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"src/plugins/telemetry",
4444
"src/plugins/telemetry_management_section"
4545
],
46-
"tileMap": "src/legacy/core_plugins/tile_map",
46+
"tileMap": "src/plugins/tile_map",
4747
"timelion": ["src/legacy/core_plugins/timelion", "src/plugins/vis_type_timelion"],
4848
"uiActions": "src/plugins/ui_actions",
4949
"visDefaultEditor": "src/plugins/vis_default_editor",

.sass-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ files:
55
- 'src/plugins/vis_type_vislib/**/*.s+(a|c)ss'
66
- 'src/plugins/vis_type_xy/**/*.s+(a|c)ss'
77
- 'x-pack/legacy/plugins/security/**/*.s+(a|c)ss'
8-
- 'x-pack/legacy/plugins/canvas/**/*.s+(a|c)ss'
8+
- 'x-pack/plugins/canvas/**/*.s+(a|c)ss'
99
- 'x-pack/plugins/triggers_actions_ui/**/*.s+(a|c)ss'
1010
- 'x-pack/plugins/lens/**/*.s+(a|c)ss'
1111
- 'x-pack/plugins/cross_cluster_replication/**/*.s+(a|c)ss'
1212
- 'x-pack/legacy/plugins/maps/**/*.s+(a|c)ss'
1313
- 'x-pack/plugins/maps/**/*.s+(a|c)ss'
1414
ignore:
15-
- 'x-pack/legacy/plugins/canvas/shareable_runtime/**/*.s+(a|c)ss'
15+
- 'x-pack/plugins/canvas/shareable_runtime/**/*.s+(a|c)ss'
1616
rules:
1717
quotes:
1818
- 2

docs/apm/spans.asciidoc

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,53 @@
11
[role="xpack"]
22
[[spans]]
3-
=== Span timeline
3+
=== Trace sample timeline
44

5-
TIP: A {apm-overview-ref-v}/transaction-spans.html[span] is the duration of a single event.
6-
Spans are automatically captured by APM agents, and you can also define custom spans.
7-
Each span has a type and is defined by a different color in the timeline/waterfall visualization.
8-
9-
The span timeline visualization is a bird's-eye view of what your application was doing while it was trying to respond to the request that came in.
5+
The trace sample timeline visualization is a bird's-eye view of what your application was doing while it was trying to respond to a request.
106
This makes it useful for visualizing where the selected transaction spent most of its time.
117

128
[role="screenshot"]
139
image::apm/images/apm-transaction-sample.png[Example of distributed trace colors in the APM app in Kibana]
1410

1511
View a span in detail by clicking on it in the timeline waterfall.
16-
When you click on an SQL Select database query,
12+
For example, when you click on an SQL Select database query,
1713
the information displayed includes the actual SQL that was executed, how long it took,
1814
and the percentage of the trace's total time.
1915
You also get a stack trace, which shows the SQL query in your code.
2016
Finally, APM knows which files are your code and which are just modules or libraries that you've installed.
2117
These library frames will be minimized by default in order to show you the most relevant stack trace.
2218

19+
TIP: A {apm-overview-ref-v}/transaction-spans.html[span] is the duration of a single event.
20+
Spans are automatically captured by APM agents, and you can also define custom spans.
21+
Each span has a type and is defined by a different color in the timeline/waterfall visualization.
22+
2323
[role="screenshot"]
2424
image::apm/images/apm-span-detail.png[Example view of a span detail in the APM app in Kibana]
2525

26-
If your span timeline is colorful, it's indicative of a <<distributed-tracing,distributed trace>>.
26+
[float]
27+
[[distributed-tracing]]
28+
==== Distributed tracing
29+
30+
If your trace sample timeline is colorful, it's indicative of a distributed trace.
2731
Services in a distributed trace are separated by color and listed in the order they occur.
2832

2933
[role="screenshot"]
3034
image::apm/images/apm-services-trace.png[Example of distributed trace colors in the APM app in Kibana]
3135

32-
Don't forget; a distributed trace includes more than one transaction.
36+
As application architectures are shifting from monolithic to more distributed, service-based architectures,
37+
distributed tracing has become a crucial feature of modern application performance monitoring.
38+
It allows you to trace requests through your service architecture automatically, and visualize those traces in one single view in the APM app.
39+
From initial web requests to your front-end service, to queries made to your back-end services,
40+
this makes finding possible bottlenecks throughout your application much easier and faster.
41+
42+
[role="screenshot"]
43+
image::apm/images/apm-distributed-tracing.png[Example view of the distributed tracing in APM app in Kibana]
44+
45+
Don't forget; by definition, a distributed trace includes more than one transaction.
3346
When viewing these distributed traces in the timeline waterfall, you'll see this image:apm/images/transaction-icon.png[APM icon] icon,
3447
which indicates the next transaction in the trace.
3548
These transactions can be expanded and viewed in detail by clicking on them.
3649

3750
After exploring these traces,
3851
you can return to the full trace by clicking *View full trace*.
52+
53+
TIP: Distributed tracing is supported by all APM agents, and there's no additional configuration needed.

docs/apm/traces.asciidoc

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
TIP: Traces link together related transactions to show an end-to-end performance of how a request was served
66
and which services were part of it.
7-
In addition to the Traces overview, you can view your application traces in the <<spans,span timeline waterfall>>.
7+
In addition to the Traces overview, you can view your application traces in the <<spans,trace sample timeline waterfall>>.
88

99
The *Traces* overview displays the entry transaction for all traces in your application.
1010
If you're using <<distributed-tracing>>, this view is key to finding the critical paths within your application.
@@ -17,25 +17,3 @@ If there's a particular endpoint you're worried about, you can click on it to vi
1717

1818
[role="screenshot"]
1919
image::apm/images/apm-traces.png[Example view of the Traces overview in APM app in Kibana]
20-
21-
[float]
22-
[[distributed-tracing]]
23-
==== Distributed tracing
24-
25-
Elastic APM supports distributed tracing.
26-
Distributed tracing is a key feature of modern application performance monitoring as application architectures are shifting from monolithic to more distributed,
27-
service-based architectures.
28-
29-
Distributed tracing allows APM users to automatically trace requests all the way through the service architecture,
30-
and visualize those traces in one single view in the APM app.
31-
This is accomplished by tracing all of the requests, from the initial web request to your front-end service,
32-
to queries made to your back-end services.
33-
This makes finding possible bottlenecks throughout your application much easier and faster.
34-
35-
By definition, a distributed trace includes more than one transaction.
36-
You can use the <<spans,span timeline visualization>> to view a waterfall display of all of the transactions from individual services that are connected in a trace.
37-
38-
[role="screenshot"]
39-
image::apm/images/apm-distributed-tracing.png[Example view of the distributed tracing in APM app in Kibana]
40-
41-
TIP: Distributed tracing is supported by all APM agents, and there's no additional configuration needed.

docs/apm/transactions.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ It's the requests on the right, the ones taking longer than average, that we pro
9595

9696
When you select one of these buckets,
9797
you're presented with up to ten trace samples.
98-
Each sample has a span timeline waterfall that shows what a typical request in that bucket was doing.
98+
Each sample has a trace timeline waterfall that shows what a typical request in that bucket was doing.
9999
By investigating this timeline waterfall, we can hopefully determine _why_ this request was slow and then implement a fix.
100100

101101
[role="screenshot"]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-core-public](./kibana-plugin-core-public.md) &gt; [AppCategory](./kibana-plugin-core-public.appcategory.md) &gt; [id](./kibana-plugin-core-public.appcategory.id.md)
4+
5+
## AppCategory.id property
6+
7+
Unique identifier for the categories
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
id: string;
13+
```

0 commit comments

Comments
 (0)