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

[Security Solution][Execution Context] - Adds execution context to top pages for APM logs #128688

Closed
wants to merge 16 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
updates from feedback
  • Loading branch information
yctercero committed Apr 13, 2022
commit 8872def9230738b5c8836613d50762cf6e2ebb9d
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const AlertsContainerComponent: React.FC = () => {
// Application ID and current URL are traced automatically.
useExecutionContext(executionContext, {
page: SecurityPageName.alerts,
yctercero marked this conversation as resolved.
Show resolved Hide resolved
yctercero marked this conversation as resolved.
Show resolved Hide resolved
id: 'all',
type: 'application'
});

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ const CreateRulePageComponent: React.FC = () => {

// Application ID and current URL are traced automatically.
useExecutionContext(executionContext, {
page: SecurityPageName.rules,
id: 'create',
page: `${SecurityPageName.rules}_create`,
type: 'application'
});

const loading = userInfoLoading || listsConfigLoading;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ const RuleDetailsPageComponent: React.FC<DetectionEngineComponentProps> = ({

// Application ID and current URL are traced automatically.
useExecutionContext(executionContext, {
page: SecurityPageName.rules,
id: 'details',
page: `${SecurityPageName.rules}_details`,
type: 'application'
});

const graphEventId = useShallowEqualSelector(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ const EditRulePageComponent: FC = () => {

// Application ID and current URL are traced automatically.
useExecutionContext(executionContext, {
page: SecurityPageName.rules,
id: 'edit',
page: `${SecurityPageName.rules}_edit`,
type: 'application'
});

const formHooks = useRef<RuleStepsFormHooks>({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ const RulesPageComponent: React.FC = () => {

// Application ID and current URL are traced automatically.
useExecutionContext(executionContext, {
page: SecurityPageName.rules,
id: 'management',
page: `${SecurityPageName.rules}_management`,
type: 'application'
});

const [
Expand Down
4 changes: 2 additions & 2 deletions x-pack/plugins/security_solution/public/exceptions/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ const ExceptionsContainerComponent: React.FC = () => {

// Application ID and current URL are traced automatically.
useExecutionContext(executionContext, {
page: SecurityPageName.exceptions,
id: 'new',
page: `${SecurityPageName.exceptions}_all`,
type: 'application'
});

return (
Expand Down
1 change: 1 addition & 0 deletions x-pack/plugins/security_solution/public/hosts/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const HostsRoutes = () => {
// Application ID and current URL are traced automatically.
useExecutionContext(executionContext, {
page: SecurityPageName.hosts,
type: 'application'
});

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const ManagementRoutes = () => {
// Application ID and current URL are traced automatically.
useExecutionContext(executionContext, {
page: 'Manage',
type: 'application'
});

return (
Expand Down
1 change: 1 addition & 0 deletions x-pack/plugins/security_solution/public/network/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const NetworkRoutes = () => {
// Application ID and current URL are traced automatically.
useExecutionContext(executionContext, {
page: SecurityPageName.network,
type: 'application'
});

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const TimelinesRoutes = () => {
// Application ID and current URL are traced automatically.
useExecutionContext(executionContext, {
page: SecurityPageName.timelines,
type: 'application'
});

return (
Expand Down
1 change: 1 addition & 0 deletions x-pack/plugins/security_solution/public/users/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const UsersRoutes = () => {
// Application ID and current URL are traced automatically.
useExecutionContext(executionContext, {
page: SecurityPageName.users,
type: 'application'
});

return (
Expand Down