Skip to content

Commit

Permalink
[7.x] [APM] Fix typo in serviceMapEnabled config value (elastic#51382) (
Browse files Browse the repository at this point in the history
  • Loading branch information
smith authored Nov 26, 2019
1 parent c5b2d91 commit ddeddfe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion x-pack/legacy/plugins/apm/server/routes/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const serviceMapRoute = createRoute(() => ({
query: rangeRt
},
handler: async ({ context }) => {
if (context.config['xpack.apm.servicemapEnabled']) {
if (context.config['xpack.apm.serviceMapEnabled']) {
return getServiceMap();
}
return new Boom('Not found', { statusCode: 404 });
Expand Down
4 changes: 2 additions & 2 deletions x-pack/plugins/apm/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { APMPlugin } from './plugin';

export const config = {
schema: schema.object({
servicemapEnabled: schema.boolean({ defaultValue: false }),
serviceMapEnabled: schema.boolean({ defaultValue: false }),
autocreateApmIndexPattern: schema.boolean({ defaultValue: true }),
'ui.transactionGroupBucketSize': schema.number({ defaultValue: 100 }),
'ui.maxTraceItems': schema.number({ defaultValue: 1000 }),
Expand All @@ -29,7 +29,7 @@ export function mergeConfigs(apmOssConfig: APMOSSConfig, apmConfig: APMXPackConf
'apm_oss.sourcemapIndices': apmOssConfig.sourcemapIndices,
'apm_oss.onboardingIndices': apmOssConfig.onboardingIndices,
'apm_oss.indexPattern': apmOssConfig.indexPattern,
'xpack.apm.servicemapEnabled': apmConfig.servicemapEnabled,
'xpack.apm.serviceMapEnabled': apmConfig.serviceMapEnabled,
'xpack.apm.ui.maxTraceItems': apmConfig['ui.maxTraceItems'],
'xpack.apm.ui.transactionGroupBucketSize': apmConfig['ui.transactionGroupBucketSize'],
'xpack.apm.autocreateApmIndexPattern': apmConfig.autocreateApmIndexPattern,
Expand Down

0 comments on commit ddeddfe

Please sign in to comment.