[APM] Set level for all registered deprecations (#116272)
This commit is contained in:
parent
6f779c6d17
commit
b17e01dd9a
1 changed files with 26 additions and 11 deletions
|
@ -62,23 +62,38 @@ export const config: PluginConfigDescriptor<APMConfig> = {
|
|||
deprecations: ({ renameFromRoot, deprecateFromRoot, unusedFromRoot }) => [
|
||||
renameFromRoot(
|
||||
'apm_oss.transactionIndices',
|
||||
'xpack.apm.indices.transaction'
|
||||
'xpack.apm.indices.transaction',
|
||||
{ level: 'warning' }
|
||||
),
|
||||
renameFromRoot('apm_oss.spanIndices', 'xpack.apm.indices.span'),
|
||||
renameFromRoot('apm_oss.errorIndices', 'xpack.apm.indices.error'),
|
||||
renameFromRoot('apm_oss.metricsIndices', 'xpack.apm.indices.metric'),
|
||||
renameFromRoot('apm_oss.sourcemapIndices', 'xpack.apm.indices.sourcemap'),
|
||||
renameFromRoot('apm_oss.onboardingIndices', 'xpack.apm.indices.onboarding'),
|
||||
deprecateFromRoot('apm_oss.enabled', '8.0.0'),
|
||||
unusedFromRoot('apm_oss.fleetMode'),
|
||||
unusedFromRoot('apm_oss.indexPattern'),
|
||||
renameFromRoot('apm_oss.spanIndices', 'xpack.apm.indices.span', {
|
||||
level: 'warning',
|
||||
}),
|
||||
renameFromRoot('apm_oss.errorIndices', 'xpack.apm.indices.error', {
|
||||
level: 'warning',
|
||||
}),
|
||||
renameFromRoot('apm_oss.metricsIndices', 'xpack.apm.indices.metric', {
|
||||
level: 'warning',
|
||||
}),
|
||||
renameFromRoot('apm_oss.sourcemapIndices', 'xpack.apm.indices.sourcemap', {
|
||||
level: 'warning',
|
||||
}),
|
||||
renameFromRoot(
|
||||
'apm_oss.onboardingIndices',
|
||||
'xpack.apm.indices.onboarding',
|
||||
{ level: 'warning' }
|
||||
),
|
||||
deprecateFromRoot('apm_oss.enabled', '8.0.0', { level: 'warning' }),
|
||||
unusedFromRoot('apm_oss.fleetMode', { level: 'warning' }),
|
||||
unusedFromRoot('apm_oss.indexPattern', { level: 'warning' }),
|
||||
renameFromRoot(
|
||||
'xpack.apm.maxServiceEnvironments',
|
||||
`uiSettings.overrides[${maxSuggestions}]`
|
||||
`uiSettings.overrides[${maxSuggestions}]`,
|
||||
{ level: 'warning' }
|
||||
),
|
||||
renameFromRoot(
|
||||
'xpack.apm.maxServiceSelections',
|
||||
`uiSettings.overrides[${maxSuggestions}]`
|
||||
`uiSettings.overrides[${maxSuggestions}]`,
|
||||
{ level: 'warning' }
|
||||
),
|
||||
],
|
||||
exposeToBrowser: {
|
||||
|
|
Loading…
Reference in a new issue