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] Show Universal Profiling data on transaction details page (elas…
…tic#176922) - For Java agent services we show the flamegraph/functions based on APM data. - Use APM kql bar for java/otel-java agents - For non-java agent services we show the flamegraph/functions based on Profling data. - Use Profiling kql bar for non-java/otel-java agents - On the transaction details page we show the flamegraph/functions based on APM data filtering by transaction.name. - Hide Transaction Universal Profiling tab for non-java/otel-java agents. - `apmEnableTransactionProfiling` Feature flag, enabled by default. https://github.com/elastic/kibana/assets/55978943/0df83f11-6adf-4942-bf03-93c2779a1d97
- Loading branch information
1 parent
3c2956c
commit a84b420
Showing
19 changed files
with
676 additions
and
491 deletions.
There are no files selected for viewing
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
81 changes: 81 additions & 0 deletions
81
...ability_solution/apm/public/components/app/profiling_overview/profiling_hosts_callout.tsx
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,81 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
import { | ||
EuiButton, | ||
EuiCallOut, | ||
EuiFlexGroup, | ||
EuiFlexItem, | ||
EuiLink, | ||
} from '@elastic/eui'; | ||
import React from 'react'; | ||
import { i18n } from '@kbn/i18n'; | ||
import { useKibana } from '@kbn/kibana-react-plugin/public'; | ||
import { ApmPluginStartDeps } from '../../../plugin'; | ||
import { useLocalStorage } from '../../../hooks/use_local_storage'; | ||
|
||
interface Props { | ||
serviceName: string; | ||
} | ||
|
||
export function ProfilingHostsCallout({ serviceName }: Props) { | ||
const { services } = useKibana<ApmPluginStartDeps>(); | ||
|
||
const baseUrl = | ||
services.docLinks?.ELASTIC_WEBSITE_URL || 'https://www.elastic.co/'; | ||
|
||
const [ | ||
apmUniversalProfilingShowCallout, | ||
setAPMUniversalProfilingShowCallout, | ||
] = useLocalStorage('apmUniversalProfilingShowCallout', true); | ||
|
||
if (apmUniversalProfilingShowCallout === false) { | ||
return null; | ||
} | ||
|
||
return ( | ||
<EuiCallOut | ||
title={i18n.translate('xpack.apm.profiling.callout.title', { | ||
defaultMessage: | ||
'Displaying profiling insights from the host(s) running {serviceName} services', | ||
values: { serviceName }, | ||
})} | ||
color="primary" | ||
iconType="iInCircle" | ||
> | ||
<p> | ||
{i18n.translate('xpack.apm.profiling.callout.description', { | ||
defaultMessage: | ||
'Universal Profiling provides unprecedented code visibility into the runtime behaviour of all applications. It profiles every line of code on the host(s) running your services, including not only your application code but also the kernel and third-party libraries.', | ||
})} | ||
</p> | ||
<EuiFlexGroup direction="row"> | ||
<EuiFlexItem grow={false} style={{ justifyContent: 'center' }}> | ||
<EuiLink | ||
href={`${baseUrl}observability/universal-profiling`} | ||
target="_blank" | ||
data-test-subj="apmProfilingOverviewLearnMoreLink" | ||
> | ||
{i18n.translate('xpack.apm.profiling.callout.learnMore', { | ||
defaultMessage: 'Learn more', | ||
})} | ||
</EuiLink> | ||
</EuiFlexItem> | ||
<EuiFlexItem grow={false}> | ||
<EuiButton | ||
data-test-subj="apmProfilingOverviewLinkButtonButton" | ||
color="primary" | ||
onClick={() => setAPMUniversalProfilingShowCallout(false)} | ||
> | ||
{i18n.translate('xpack.apm.profiling.callout.dismiss', { | ||
defaultMessage: 'Dismiss', | ||
})} | ||
</EuiButton> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
</EuiCallOut> | ||
); | ||
} |
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.