This is a cache of https://www.elastic.co/guide/en/apm/agent/java/current/config-serverless.html. It is a snapshot of the page at 2024-08-28T01:00:53.559+0000.
Serverless configuration options | APM Java Agent Reference [1.x] | Elastic

Serverless configuration options

edit

aws_lambda_handler ( [1.28.0] Added in 1.28.0. )

edit

This config option must be used when running the agent in an AWS Lambda context. This config value allows to specify the fully qualified name of the class handling the lambda function. An empty value (default value) indicates that the agent is not running within an AWS lambda function.

Default Type Dynamic

<none>

String

false

Java System Properties Property file Environment

elastic.apm.aws_lambda_handler

aws_lambda_handler

ELASTIC_APM_AWS_LAMBDA_HANDLER

data_flush_timeout ( [1.28.0] Added in 1.28.0. )

edit

This config value allows to specify the timeout in milliseconds for flushing APM data at the end of a serverless function. For serverless functions, APM data is written in a synchronous way, thus, blocking the termination of the function util data is written or the specified timeout is reached.

Default Type Dynamic

1000

Long

false

Java System Properties Property file Environment

elastic.apm.data_flush_timeout

data_flush_timeout

ELASTIC_APM_DATA_FLUSH_TIMEOUT