-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature-preconfigure-es-fleet-server-hosts
- Loading branch information
Showing
136 changed files
with
2,044 additions
and
5,740 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
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
58 changes: 58 additions & 0 deletions
58
packages/elastic-apm-synthtrace/src/scenarios/aws_lambda.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,58 @@ | ||
/* | ||
* 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 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
import { apm, timerange } from '..'; | ||
import { ApmFields } from '../lib/apm/apm_fields'; | ||
import { Scenario } from '../scripts/scenario'; | ||
import { getLogger } from '../scripts/utils/get_common_services'; | ||
import { RunOptions } from '../scripts/utils/parse_run_cli_flags'; | ||
|
||
const scenario: Scenario<ApmFields> = async (runOptions: RunOptions) => { | ||
const logger = getLogger(runOptions); | ||
|
||
return { | ||
generate: ({ from, to }) => { | ||
const range = timerange(from, to); | ||
const timestamps = range.interval('1s').rate(3); | ||
|
||
const instance = apm.service('lambda-python', 'production', 'python').instance('instance'); | ||
|
||
const traceEventsSetups = [ | ||
{ functionName: 'lambda-python-1', coldStart: true }, | ||
{ functionName: 'lambda-python-2', coldStart: false }, | ||
]; | ||
|
||
const traceEvents = ({ functionName, coldStart }: typeof traceEventsSetups[0]) => { | ||
return timestamps.generator((timestamp) => | ||
instance | ||
.transaction('GET /order/{id}') | ||
.defaults({ | ||
'service.runtime.name': 'AWS_Lambda_python3.8', | ||
'cloud.provider': 'aws', | ||
'cloud.service.name': 'lambda', | ||
'cloud.region': 'us-east-1', | ||
'faas.id': `arn:aws:lambda:us-west-2:123456789012:function:${functionName}`, | ||
'faas.coldstart': coldStart, | ||
'faas.trigger.type': 'other', | ||
}) | ||
.timestamp(timestamp) | ||
.duration(1000) | ||
.success() | ||
); | ||
}; | ||
|
||
return traceEventsSetups | ||
.map((traceEventsSetup) => | ||
logger.perf('generating_apm_events', () => traceEvents(traceEventsSetup)) | ||
) | ||
.reduce((p, c) => p.merge(c)); | ||
}, | ||
}; | ||
}; | ||
|
||
export default scenario; |
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
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
2 changes: 1 addition & 1 deletion
2
src/plugins/home/server/services/sample_data/data_sets/flights/saved_objects.ts
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
src/plugins/home/server/services/sample_data/data_sets/logs/saved_objects.ts
Large diffs are not rendered by default.
Oops, something went wrong.
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
78 changes: 0 additions & 78 deletions
78
x-pack/plugins/apm/server/routes/services/get_service_infrastructure.ts
This file was deleted.
Oops, something went wrong.
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
8 changes: 0 additions & 8 deletions
8
...arch/public/applications/enterprise_search_content/components/connector_settings/index.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.