Skip to content

Commit

Permalink
[APM] Set level for all registered deprecations (#116272)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbamparop authored Oct 26, 2021
1 parent 6f779c6 commit b17e01d
Showing 1 changed file with 26 additions and 11 deletions.
37 changes: 26 additions & 11 deletions x-pack/plugins/apm/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit b17e01d

Please sign in to comment.