Features
* Add Python 3.12 support (See Known Issues)
* Collect the `configured_hostname` and `detected_hostname` separately, and switch to FQDN for the `detected_hostname`. [1891]
* Improve postgres dollar-quote detection to be much faster [1905]
Bug fixes
* Fix url argument fetching in aiohttp_client instrumentation [1890]
* Fix a bug in the AWS Lambda instrumentation when `event["headers"] is None` [1907]
* Fix a bug in AWS Lambda where metadata could be incomplete, causing validation errors with the APM Server [1914]
* Fix a bug in AWS Lambda where sending the partial transaction would be recorded as an extra span [1914]
Pending Deprecations
* The log shipping feature in the Flask instrumentation will be removed in version 7.0.0 of the agent.
Known Issues
* Python 3.12.0 has a bug that may cause a segfault with short-lived Client objects. Track the progress of this bug here: https://github.com/python/cpython/issues/111049
New Contributors
* fritzdj made their first contribution in https://github.com/elastic/apm-agent-python/pull/1897
* nbarbey made their first contribution in https://github.com/elastic/apm-agent-python/pull/1890
* alexmojaki made their first contribution in https://github.com/elastic/apm-agent-python/pull/1905
* orsinium made their first contribution in https://github.com/elastic/apm-agent-python/pull/1915
**Full Changelog**: https://github.com/elastic/apm-agent-python/compare/v6.18.0...v6.19.0
<details>
<summary>Elastic APM Python agent layer ARNs</summary>
|Region|ARN|
|------|---|
|af-south-1|arn:aws:lambda:af-south-1:267093732750:layer:elastic-apm-python-ver-6-19-0:1|
|ap-east-1|arn:aws:lambda:ap-east-1:267093732750:layer:elastic-apm-python-ver-6-19-0:1|
|ap-northeast-1|arn:aws:lambda:ap-northeast-1:267093732750:layer:elastic-apm-python-ver-6-19-0:1|
|ap-northeast-2|arn:aws:lambda:ap-northeast-2:267093732750:layer:elastic-apm-python-ver-6-19-0:1|
|ap-northeast-3|arn:aws:lambda:ap-northeast-3:267093732750:layer:elastic-apm-python-ver-6-19-0:1|
|ap-south-1|arn:aws:lambda:ap-south-1:267093732750:layer:elastic-apm-python-ver-6-19-0:1|
|ap-southeast-1|arn:aws:lambda:ap-southeast-1:267093732750:layer:elastic-apm-python-ver-6-19-0:1|
|ap-southeast-2|arn:aws:lambda:ap-southeast-2:267093732750:layer:elastic-apm-python-ver-6-19-0:1|
|ap-southeast-3|arn:aws:lambda:ap-southeast-3:267093732750:layer:elastic-apm-python-ver-6-19-0:1|
|ca-central-1|arn:aws:lambda:ca-central-1:267093732750:layer:elastic-apm-python-ver-6-19-0:1|
|eu-central-1|arn:aws:lambda:eu-central-1:267093732750:layer:elastic-apm-python-ver-6-19-0:1|
|eu-north-1|arn:aws:lambda:eu-north-1:267093732750:layer:elastic-apm-python-ver-6-19-0:1|
|eu-south-1|arn:aws:lambda:eu-south-1:267093732750:layer:elastic-apm-python-ver-6-19-0:1|
|eu-west-1|arn:aws:lambda:eu-west-1:267093732750:layer:elastic-apm-python-ver-6-19-0:1|
|eu-west-2|arn:aws:lambda:eu-west-2:267093732750:layer:elastic-apm-python-ver-6-19-0:1|
|eu-west-3|arn:aws:lambda:eu-west-3:267093732750:layer:elastic-apm-python-ver-6-19-0:1|
|me-south-1|arn:aws:lambda:me-south-1:267093732750:layer:elastic-apm-python-ver-6-19-0:1|
|sa-east-1|arn:aws:lambda:sa-east-1:267093732750:layer:elastic-apm-python-ver-6-19-0:1|
|us-east-1|arn:aws:lambda:us-east-1:267093732750:layer:elastic-apm-python-ver-6-19-0:1|
|us-east-2|arn:aws:lambda:us-east-2:267093732750:layer:elastic-apm-python-ver-6-19-0:1|
|us-west-1|arn:aws:lambda:us-west-1:267093732750:layer:elastic-apm-python-ver-6-19-0:1|
|us-west-2|arn:aws:lambda:us-west-2:267093732750:layer:elastic-apm-python-ver-6-19-0:1|
</details>