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] conditionally waiting for index status (elastic#166438)
Closes elastic#166831. Checking for cluster health is not available on serverless. (More context in this [internal conversation](https://elastic.slack.com/archives/C877NKGBY/p1694595738607269?thread_ts=1694006744.669319&cid=C877NKGBY)) <img width="888" alt="image" src="https://github.com/elastic/kibana/assets/1313018/80b55f81-0a01-4b9c-a37d-1cfcff572041"> This Pr aims to conditionally waitForIndex status only if we are in a non-serverless deployment --------- Co-authored-by: kibanamachine <[email protected]>
- Loading branch information
1 parent
672d8f2
commit 4bf4c05
Showing
4 changed files
with
49 additions
and
7 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
14 changes: 14 additions & 0 deletions
14
x-pack/plugins/apm/server/lib/helpers/get_es_capabilities.ts
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,14 @@ | ||
/* | ||
* 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 { APMRouteHandlerResources } from '../../routes/apm_routes/register_apm_server_routes'; | ||
|
||
export async function getESCapabilities({ core }: APMRouteHandlerResources) { | ||
const es = (await core.start()).elasticsearch; | ||
|
||
return es.getCapabilities(); | ||
} |
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