Skip to content

Releases: elastic/apm-agent-python

v6.19.0

11 Oct 21:17
v6.19.0
c9a1f7a
Compare
Choose a tag to compare

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: python/cpython#111049

New Contributors

Full Changelog: v6.18.0...v6.19.0

Elastic APM Python agent layer ARNs
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

v6.18.0

25 Jul 16:13
v6.18.0
da93e7a
Compare
Choose a tag to compare

Features

  • Add support for grpc aio server interceptor [#1870]

Bug fixes

  • Fix a bug in the Elasticsearch client instrumentation which was causing loss of database context (including statement) when interacting with Elastic Cloud [#1878]

New Contributors

Full Changelog: v6.17.0...v6.18.0

Elastic APM Python agent layer ARNs
Region ARN
af-south-1 arn:aws:lambda:af-south-1:267093732750:layer:elastic-apm-python-ver-6-18-0:1
ap-east-1 arn:aws:lambda:ap-east-1:267093732750:layer:elastic-apm-python-ver-6-18-0:1
ap-northeast-1 arn:aws:lambda:ap-northeast-1:267093732750:layer:elastic-apm-python-ver-6-18-0:1
ap-northeast-2 arn:aws:lambda:ap-northeast-2:267093732750:layer:elastic-apm-python-ver-6-18-0:1
ap-northeast-3 arn:aws:lambda:ap-northeast-3:267093732750:layer:elastic-apm-python-ver-6-18-0:1
ap-south-1 arn:aws:lambda:ap-south-1:267093732750:layer:elastic-apm-python-ver-6-18-0:1
ap-southeast-1 arn:aws:lambda:ap-southeast-1:267093732750:layer:elastic-apm-python-ver-6-18-0:1
ap-southeast-2 arn:aws:lambda:ap-southeast-2:267093732750:layer:elastic-apm-python-ver-6-18-0:1
ap-southeast-3 arn:aws:lambda:ap-southeast-3:267093732750:layer:elastic-apm-python-ver-6-18-0:1
ca-central-1 arn:aws:lambda:ca-central-1:267093732750:layer:elastic-apm-python-ver-6-18-0:1
eu-central-1 arn:aws:lambda:eu-central-1:267093732750:layer:elastic-apm-python-ver-6-18-0:1
eu-north-1 arn:aws:lambda:eu-north-1:267093732750:layer:elastic-apm-python-ver-6-18-0:1
eu-south-1 arn:aws:lambda:eu-south-1:267093732750:layer:elastic-apm-python-ver-6-18-0:1
eu-west-1 arn:aws:lambda:eu-west-1:267093732750:layer:elastic-apm-python-ver-6-18-0:1
eu-west-2 arn:aws:lambda:eu-west-2:267093732750:layer:elastic-apm-python-ver-6-18-0:1
eu-west-3 arn:aws:lambda:eu-west-3:267093732750:layer:elastic-apm-python-ver-6-18-0:1
me-south-1 arn:aws:lambda:me-south-1:267093732750:layer:elastic-apm-python-ver-6-18-0:1
sa-east-1 arn:aws:lambda:sa-east-1:267093732750:layer:elastic-apm-python-ver-6-18-0:1
us-east-1 arn:aws:lambda:us-east-1:267093732750:layer:elastic-apm-python-ver-6-18-0:1
us-east-2 arn:aws:lambda:us-east-2:267093732750:layer:elastic-apm-python-ver-6-18-0:1
us-west-1 arn:aws:lambda:us-west-1:267093732750:layer:elastic-apm-python-ver-6-18-0:1
us-west-2 arn:aws:lambda:us-west-2:267093732750:layer:elastic-apm-python-ver-6-18-0:1

v6.17.0

04 Jul 13:03
v6.17.0
0eaa44a
Compare
Choose a tag to compare

Features

  • Add server_ca_cert_file option to provide custom CA certificate (#1852)
  • Add include_process_args option to allow users to opt-in to collecting process args (#1867)

Bug fixes

  • Fix a bug in the GRPC instrumentation when reaching the maximum amount of spans per transaction (#1861)
Elastic APM Python agent layer ARNs
Region ARN
af-south-1 arn:aws:lambda:af-south-1:267093732750:layer:elastic-apm-python-ver-6-17-0:1
ap-east-1 arn:aws:lambda:ap-east-1:267093732750:layer:elastic-apm-python-ver-6-17-0:1
ap-northeast-1 arn:aws:lambda:ap-northeast-1:267093732750:layer:elastic-apm-python-ver-6-17-0:1
ap-northeast-2 arn:aws:lambda:ap-northeast-2:267093732750:layer:elastic-apm-python-ver-6-17-0:1
ap-northeast-3 arn:aws:lambda:ap-northeast-3:267093732750:layer:elastic-apm-python-ver-6-17-0:1
ap-south-1 arn:aws:lambda:ap-south-1:267093732750:layer:elastic-apm-python-ver-6-17-0:1
ap-southeast-1 arn:aws:lambda:ap-southeast-1:267093732750:layer:elastic-apm-python-ver-6-17-0:1
ap-southeast-2 arn:aws:lambda:ap-southeast-2:267093732750:layer:elastic-apm-python-ver-6-17-0:1
ap-southeast-3 arn:aws:lambda:ap-southeast-3:267093732750:layer:elastic-apm-python-ver-6-17-0:1
ca-central-1 arn:aws:lambda:ca-central-1:267093732750:layer:elastic-apm-python-ver-6-17-0:1
eu-central-1 arn:aws:lambda:eu-central-1:267093732750:layer:elastic-apm-python-ver-6-17-0:1
eu-north-1 arn:aws:lambda:eu-north-1:267093732750:layer:elastic-apm-python-ver-6-17-0:1
eu-south-1 arn:aws:lambda:eu-south-1:267093732750:layer:elastic-apm-python-ver-6-17-0:1
eu-west-1 arn:aws:lambda:eu-west-1:267093732750:layer:elastic-apm-python-ver-6-17-0:1
eu-west-2 arn:aws:lambda:eu-west-2:267093732750:layer:elastic-apm-python-ver-6-17-0:1
eu-west-3 arn:aws:lambda:eu-west-3:267093732750:layer:elastic-apm-python-ver-6-17-0:1
me-south-1 arn:aws:lambda:me-south-1:267093732750:layer:elastic-apm-python-ver-6-17-0:1
sa-east-1 arn:aws:lambda:sa-east-1:267093732750:layer:elastic-apm-python-ver-6-17-0:1
us-east-1 arn:aws:lambda:us-east-1:267093732750:layer:elastic-apm-python-ver-6-17-0:1
us-east-2 arn:aws:lambda:us-east-2:267093732750:layer:elastic-apm-python-ver-6-17-0:1
us-west-1 arn:aws:lambda:us-west-1:267093732750:layer:elastic-apm-python-ver-6-17-0:1
us-west-2 arn:aws:lambda:us-west-2:267093732750:layer:elastic-apm-python-ver-6-17-0:1

Full Changelog: v6.16.2...v6.17.0

v6.16.2

12 Jun 22:38
v6.16.2
82e0c59
Compare
Choose a tag to compare

Bug Fixes

  • Fix compatibility issue with older versions of OpenSSL in lambda runtimes [#1847]
  • Add latest tag to docker images [#1848]
  • Fix issue with redacting user:pass in URLs in Python 3.11.4 [#1850]
Elastic APM Python agent layer ARNs
Region ARN
af-south-1 arn:aws:lambda:af-south-1:267093732750:layer:elastic-apm-python-ver-6-16-2:1
ap-east-1 arn:aws:lambda:ap-east-1:267093732750:layer:elastic-apm-python-ver-6-16-2:1
ap-northeast-1 arn:aws:lambda:ap-northeast-1:267093732750:layer:elastic-apm-python-ver-6-16-2:1
ap-northeast-2 arn:aws:lambda:ap-northeast-2:267093732750:layer:elastic-apm-python-ver-6-16-2:1
ap-northeast-3 arn:aws:lambda:ap-northeast-3:267093732750:layer:elastic-apm-python-ver-6-16-2:1
ap-south-1 arn:aws:lambda:ap-south-1:267093732750:layer:elastic-apm-python-ver-6-16-2:1
ap-southeast-1 arn:aws:lambda:ap-southeast-1:267093732750:layer:elastic-apm-python-ver-6-16-2:1
ap-southeast-2 arn:aws:lambda:ap-southeast-2:267093732750:layer:elastic-apm-python-ver-6-16-2:1
ap-southeast-3 arn:aws:lambda:ap-southeast-3:267093732750:layer:elastic-apm-python-ver-6-16-2:1
ca-central-1 arn:aws:lambda:ca-central-1:267093732750:layer:elastic-apm-python-ver-6-16-2:1
eu-central-1 arn:aws:lambda:eu-central-1:267093732750:layer:elastic-apm-python-ver-6-16-2:1
eu-north-1 arn:aws:lambda:eu-north-1:267093732750:layer:elastic-apm-python-ver-6-16-2:1
eu-south-1 arn:aws:lambda:eu-south-1:267093732750:layer:elastic-apm-python-ver-6-16-2:1
eu-west-1 arn:aws:lambda:eu-west-1:267093732750:layer:elastic-apm-python-ver-6-16-2:1
eu-west-2 arn:aws:lambda:eu-west-2:267093732750:layer:elastic-apm-python-ver-6-16-2:1
eu-west-3 arn:aws:lambda:eu-west-3:267093732750:layer:elastic-apm-python-ver-6-16-2:1
me-south-1 arn:aws:lambda:me-south-1:267093732750:layer:elastic-apm-python-ver-6-16-2:1
sa-east-1 arn:aws:lambda:sa-east-1:267093732750:layer:elastic-apm-python-ver-6-16-2:1
us-east-1 arn:aws:lambda:us-east-1:267093732750:layer:elastic-apm-python-ver-6-16-2:1
us-east-2 arn:aws:lambda:us-east-2:267093732750:layer:elastic-apm-python-ver-6-16-2:1
us-west-1 arn:aws:lambda:us-west-1:267093732750:layer:elastic-apm-python-ver-6-16-2:1
us-west-2 arn:aws:lambda:us-west-2:267093732750:layer:elastic-apm-python-ver-6-16-2:1

Full Changelog: v6.16.1...v6.16.2

v6.16.1

06 Jun 15:30
v6.16.1
e373de8
Compare
Choose a tag to compare

Bugfixes

  • Fix release process for docker and the lambda layer [#1845]
Elastic APM Python agent layer ARNs
Region ARN
af-south-1 arn:aws:lambda:af-south-1:267093732750:layer:elastic-apm-python-ver-6-16-1:1
ap-east-1 arn:aws:lambda:ap-east-1:267093732750:layer:elastic-apm-python-ver-6-16-1:1
ap-northeast-1 arn:aws:lambda:ap-northeast-1:267093732750:layer:elastic-apm-python-ver-6-16-1:1
ap-northeast-2 arn:aws:lambda:ap-northeast-2:267093732750:layer:elastic-apm-python-ver-6-16-1:1
ap-northeast-3 arn:aws:lambda:ap-northeast-3:267093732750:layer:elastic-apm-python-ver-6-16-1:1
ap-south-1 arn:aws:lambda:ap-south-1:267093732750:layer:elastic-apm-python-ver-6-16-1:1
ap-southeast-1 arn:aws:lambda:ap-southeast-1:267093732750:layer:elastic-apm-python-ver-6-16-1:1
ap-southeast-2 arn:aws:lambda:ap-southeast-2:267093732750:layer:elastic-apm-python-ver-6-16-1:1
ap-southeast-3 arn:aws:lambda:ap-southeast-3:267093732750:layer:elastic-apm-python-ver-6-16-1:1
ca-central-1 arn:aws:lambda:ca-central-1:267093732750:layer:elastic-apm-python-ver-6-16-1:1
eu-central-1 arn:aws:lambda:eu-central-1:267093732750:layer:elastic-apm-python-ver-6-16-1:1
eu-north-1 arn:aws:lambda:eu-north-1:267093732750:layer:elastic-apm-python-ver-6-16-1:1
eu-south-1 arn:aws:lambda:eu-south-1:267093732750:layer:elastic-apm-python-ver-6-16-1:1
eu-west-1 arn:aws:lambda:eu-west-1:267093732750:layer:elastic-apm-python-ver-6-16-1:1
eu-west-2 arn:aws:lambda:eu-west-2:267093732750:layer:elastic-apm-python-ver-6-16-1:1
eu-west-3 arn:aws:lambda:eu-west-3:267093732750:layer:elastic-apm-python-ver-6-16-1:1
me-south-1 arn:aws:lambda:me-south-1:267093732750:layer:elastic-apm-python-ver-6-16-1:1
sa-east-1 arn:aws:lambda:sa-east-1:267093732750:layer:elastic-apm-python-ver-6-16-1:1
us-east-1 arn:aws:lambda:us-east-1:267093732750:layer:elastic-apm-python-ver-6-16-1:1
us-east-2 arn:aws:lambda:us-east-2:267093732750:layer:elastic-apm-python-ver-6-16-1:1
us-west-1 arn:aws:lambda:us-west-1:267093732750:layer:elastic-apm-python-ver-6-16-1:1
us-west-2 arn:aws:lambda:us-west-2:267093732750:layer:elastic-apm-python-ver-6-16-1:1

Full Changelog: v6.16.0...v6.16.1

v6.16.0

06 Jun 15:02
v6.16.0
78a9d26
Compare
Choose a tag to compare

Features

  • Add lambda layer for instrumenting AWS Lambda functions [#1826]
  • Implement instrumentation of Azure Functions [#1766]
  • Add support for Django to wrapper script [#1780]
  • Add support for Starlette to wrapper script [#1830]
  • Add transport_json_serializer configuration option [#1777]
  • Add S3 bucket and key name to OTel attributes [#1790]
  • Implement partial transaction support in AWS lambda [#1784]
  • Add instrumentation for redis.asyncio [#1807]
  • Add support for urllib3 v2.0.1+ [#1822]
  • Add service.environment to log correlation [#1833]
  • Add ecs_logging as a dependency [#1840]
  • Add support for synchronous psycopg3 [#1841]

Bug fixes

  • Fix spans being dropped if they don't have a name [#1770]
  • Fix AWS Lambda support when event is not a dict [#1775]
  • Fix deprecation warning with urllib3 2.0.0 pre-release versions [#1778]
  • Fix activation_method to only send to APM server 8.7.1+ [#1787]
  • Fix span.context.destination.service.resource for S3 spans to have an "s3/" prefix. [#1783]

    Note: While this is considered a bugfix, it can potentially be a breaking
    change in the Kibana APM app: It can break the history of the S3-Spans / metrics
    for users relying on context.destination.service.resource. If users happen to
    run agents both with and without this fix (for same or different languages), the
    same S3-buckets can appear twice in the service map (with and without
    s3-prefix).

  • Fix instrumentation to not bubble up exceptions during instrumentation [#1791]
  • Fix HTTP transport to not print useless and confusing stack trace [#1809]

New Contributors

Full Changelog: v6.15.1...v6.16.0

v6.15.1

06 Mar 19:50
v6.15.1
28e4497
Compare
Choose a tag to compare

Bug fixes

  • Fix issue with botocore instrumentation creating spans with an incorrect service.name [#1765]
  • Fix a bug in the GRPC instrumentation when the agent is disabled or not recording [#1761]

Full Changelog: v6.15.0...v6.15.1

v6.15.0

16 Feb 18:34
v6.15.0
da8e41d
Compare
Choose a tag to compare

Features

  • Add service.agent.activation_method to the metadata [#1743]

Bug fixes

  • Small fix to underlying Starlette logic to prevent duplicate Client objects [#1735]
  • Change server_url default to http://127.0.0.1:8200 to avoid ipv6 ambiguity [#1744]
  • Fix an issue in GRPC instrumentation with unsampled transactions [#1740]
  • Fix error in async Elasticsearch instrumentation when spans are dropped [#1758]

New Contributors

Full Changelog: v6.14.0...v6.15.0

v6.14.0

30 Jan 16:58
v6.14.0
4102f8f
Compare
Choose a tag to compare

Features

  • GRPC support [#1703]
  • Wrapper script Flask support (experimental) [#1709]

Bug fixes

  • Fix an async issue with long elasticsearch queries [#1725]
  • Fix a minor inconsistency with the W3C tracestate spec [#1728]
  • Fix a cold start performance issue with our AWS Lambda integration [#1727]
  • Mark **kwargs config usage in our AWS Lambda integration as deprecated [#1727]

New Contributors

Full Changelog: v6.13.2...v6.14.0

v6.13.2

17 Nov 18:54
v6.13.2
734be1d
Compare
Choose a tag to compare

Bug fixes

  • Fix error in Elasticsearch instrumentation when spans are dropped [#1690]
  • Lower log level for errors in APM Server version fetching [#1692]
  • Fix for missing parent.id when logging from a DroppedSpan under a leaf span [#1695]

New Contributors

Full Changelog: v6.13.1...v6.13.2