forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
APM execution context - app, page, entitiy id (elastic#124996)
* Client side execution app level context propagation * context$ + apm rum integration * invert the context parent \ child relationship (cc @mikhail) move more things to top level context * Pass down context to apm on server * types * eslint * parent <> child * docs + eslint + jest * execution context mock * eslint * jest * jest * server jest * check * jest * storybook * jest * report the current space * fix server side context container * Remove spaces for now * docssss * jest * lint * test * docs * revert file * doc * all context params are optional * clear on page change * lint * ts * skipped test again * testing fixes * oops * code review #1 * code review #2 * getAsLabels * maps inherit dashboard context * docs * ts * Give common context to all vis editors * fix test * ts \ es \ tests * labels * missing types * docsy docs * cr #3 * improve jest * Use editor name * Update src/plugins/visualizations/public/visualize_app/components/visualize_editor.tsx Co-authored-by: Marco Liberati <[email protected]> * fix maps context * jest tests for maps * cr * docs * Update execution_context.test.ts * docs * lint Co-authored-by: Marco Liberati <[email protected]>
- Loading branch information
Showing
84 changed files
with
909 additions
and
113 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
...development/core/public/kibana-plugin-core-public.coresetup.executioncontext.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [CoreSetup](./kibana-plugin-core-public.coresetup.md) > [executionContext](./kibana-plugin-core-public.coresetup.executioncontext.md) | ||
|
||
## CoreSetup.executionContext property | ||
|
||
[ExecutionContextSetup](./kibana-plugin-core-public.executioncontextsetup.md) | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
executionContext: ExecutionContextSetup; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...development/core/public/kibana-plugin-core-public.corestart.executioncontext.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [CoreStart](./kibana-plugin-core-public.corestart.md) > [executionContext](./kibana-plugin-core-public.corestart.executioncontext.md) | ||
|
||
## CoreStart.executionContext property | ||
|
||
[ExecutionContextStart](./kibana-plugin-core-public.executioncontextstart.md) | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
executionContext: ExecutionContextStart; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...evelopment/core/public/kibana-plugin-core-public.executioncontextsetup.clear.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [ExecutionContextSetup](./kibana-plugin-core-public.executioncontextsetup.md) > [clear](./kibana-plugin-core-public.executioncontextsetup.clear.md) | ||
|
||
## ExecutionContextSetup.clear() method | ||
|
||
clears the context | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
clear(): void; | ||
``` | ||
<b>Returns:</b> | ||
|
||
void | ||
|
13 changes: 13 additions & 0 deletions
13
...lopment/core/public/kibana-plugin-core-public.executioncontextsetup.context_.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [ExecutionContextSetup](./kibana-plugin-core-public.executioncontextsetup.md) > [context$](./kibana-plugin-core-public.executioncontextsetup.context_.md) | ||
|
||
## ExecutionContextSetup.context$ property | ||
|
||
The current context observable | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
context$: Observable<KibanaExecutionContext>; | ||
``` |
17 changes: 17 additions & 0 deletions
17
.../development/core/public/kibana-plugin-core-public.executioncontextsetup.get.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [ExecutionContextSetup](./kibana-plugin-core-public.executioncontextsetup.md) > [get](./kibana-plugin-core-public.executioncontextsetup.get.md) | ||
|
||
## ExecutionContextSetup.get() method | ||
|
||
Get the current top level context | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
get(): KibanaExecutionContext; | ||
``` | ||
<b>Returns:</b> | ||
|
||
KibanaExecutionContext | ||
|
17 changes: 17 additions & 0 deletions
17
...ment/core/public/kibana-plugin-core-public.executioncontextsetup.getaslabels.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [ExecutionContextSetup](./kibana-plugin-core-public.executioncontextsetup.md) > [getAsLabels](./kibana-plugin-core-public.executioncontextsetup.getaslabels.md) | ||
|
||
## ExecutionContextSetup.getAsLabels() method | ||
|
||
returns apm labels | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
getAsLabels(): Labels; | ||
``` | ||
<b>Returns:</b> | ||
|
||
Labels | ||
|
30 changes: 30 additions & 0 deletions
30
docs/development/core/public/kibana-plugin-core-public.executioncontextsetup.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [ExecutionContextSetup](./kibana-plugin-core-public.executioncontextsetup.md) | ||
|
||
## ExecutionContextSetup interface | ||
|
||
Kibana execution context. Used to provide execution context to Elasticsearch, reporting, performance monitoring, etc. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface ExecutionContextSetup | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [context$](./kibana-plugin-core-public.executioncontextsetup.context_.md) | Observable<KibanaExecutionContext> | The current context observable | | ||
|
||
## Methods | ||
|
||
| Method | Description | | ||
| --- | --- | | ||
| [clear()](./kibana-plugin-core-public.executioncontextsetup.clear.md) | clears the context | | ||
| [get()](./kibana-plugin-core-public.executioncontextsetup.get.md) | Get the current top level context | | ||
| [getAsLabels()](./kibana-plugin-core-public.executioncontextsetup.getaslabels.md) | returns apm labels | | ||
| [set(c$)](./kibana-plugin-core-public.executioncontextsetup.set.md) | Set the current top level context | | ||
| [withGlobalContext(context)](./kibana-plugin-core-public.executioncontextsetup.withglobalcontext.md) | merges the current top level context with the specific event context | | ||
|
24 changes: 24 additions & 0 deletions
24
.../development/core/public/kibana-plugin-core-public.executioncontextsetup.set.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [ExecutionContextSetup](./kibana-plugin-core-public.executioncontextsetup.md) > [set](./kibana-plugin-core-public.executioncontextsetup.set.md) | ||
|
||
## ExecutionContextSetup.set() method | ||
|
||
Set the current top level context | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
set(c$: KibanaExecutionContext): void; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| c$ | KibanaExecutionContext | | | ||
|
||
<b>Returns:</b> | ||
|
||
void | ||
|
24 changes: 24 additions & 0 deletions
24
...ore/public/kibana-plugin-core-public.executioncontextsetup.withglobalcontext.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [ExecutionContextSetup](./kibana-plugin-core-public.executioncontextsetup.md) > [withGlobalContext](./kibana-plugin-core-public.executioncontextsetup.withglobalcontext.md) | ||
|
||
## ExecutionContextSetup.withGlobalContext() method | ||
|
||
merges the current top level context with the specific event context | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
withGlobalContext(context?: KibanaExecutionContext): KibanaExecutionContext; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| context | KibanaExecutionContext | | | ||
|
||
<b>Returns:</b> | ||
|
||
KibanaExecutionContext | ||
|
13 changes: 13 additions & 0 deletions
13
docs/development/core/public/kibana-plugin-core-public.executioncontextstart.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [ExecutionContextStart](./kibana-plugin-core-public.executioncontextstart.md) | ||
|
||
## ExecutionContextStart type | ||
|
||
See [ExecutionContextSetup](./kibana-plugin-core-public.executioncontextsetup.md)<!-- -->. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare type ExecutionContextStart = ExecutionContextSetup; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...ment/core/server/kibana-plugin-core-server.executioncontextsetup.getaslabels.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [ExecutionContextSetup](./kibana-plugin-core-server.executioncontextsetup.md) > [getAsLabels](./kibana-plugin-core-server.executioncontextsetup.getaslabels.md) | ||
|
||
## ExecutionContextSetup.getAsLabels() method | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
getAsLabels(): apm.Labels; | ||
``` | ||
<b>Returns:</b> | ||
|
||
apm.Labels | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.