Skip to content

Latest commit

 

History

History
1078 lines (757 loc) · 39.5 KB

CHANGELOG.asciidoc

File metadata and controls

1078 lines (757 loc) · 39.5 KB
Note
Release notes are best read in our documentation at elastic.co

Unreleased

Bug fixes
  • Fixed a performance issue for local variable shortening via varmap() {pull}1593[#1593]

Python Agent version 6.x

6.10.1 - 2022-06-30

Bug fixes
  • Fix an issue with Kafka instrumentation and unsampled transactions {pull}1579[#1579]

6.10.0 - 2022-06-22

Features
  • Add instrumentation for aiobotocore {pull}1520[#1520]

  • Add instrumentation for kafka-python {pull}1555[#1555]

  • Add API for span links, and implement span link support for OpenTelemetry bridge {pull}1562[#1562]

  • Add span links to SQS ReceiveMessage call {pull}1575[#1575]

  • Add specific instrumentation for SQS delete/batch-delete {pull}1567[#1567]

  • Add trace_continuation_strategy setting {pull}1564[#1564]

Bug fixes
  • Fix return for opentelemetry.Span.is_recording() {pull}1530[#1530]

  • Fix error logging for bad SERVICE_NAME config {pull}1546[#1546]

  • Do not instrument old versions of Tornado > 6.0 due to incompatibility {pull}1566[#1566]

  • Fix transaction names for class based views in Django 4.0+ {pull}1571[#1571]

  • Fix a problem with our logging handler failing to report internal errors in its emitter {pull}1568[#1568]

6.9.1 - 2022-03-30

Bug fixes
  • Fix otel_attributes-related regression with older versions of APM Server (<7.16) {pull}1510[#1510]

6.9.0 - 2022-03-29

Features
  • Add OpenTelemetry API bridge {pull}1411[#1411]

  • Change default for sanitize_field_names to sanitize auth instead of authorization {pull}1494[#1494]

  • Add span_stack_trace_min_duration to replace deprecated span_frames_min_duration {pull}1498[#1498]

  • Enable exact_match span compression by default {pull}1504[#1504]

  • Allow parent celery tasks to specify the downstream parent_span_id in celery headers {pull}1500[#1500]

Bug fixes
  • Fix Sanic integration to properly respect the capture_body config {pull}1485[#1485]

  • Lambda fixes to align with the cross-agent spec {pull}1489[#1489]

  • Lambda fix for custom service_name {pull}1493[#1493]

  • Change default for stack_trace_limit from 500 to 50 {pull}1492[#1492]

  • Switch all duration handling to use datetime.timedelta objects {pull}1488[#1488]

6.8.1 - 2022-03-09

Bug fixes
  • Fix exit_span_min_duration and disable by default {pull}1483[#1483]

6.8.0 - 2022-02-22

Features
  • use "unknown-python-service" as default service name if no service name is configured {pull}1438[#1438]

  • add transaction name to error objects {pull}1441[#1441]

  • don’t send unsampled transactions to APM Server 8.0+ {pull}1442[#1442]

  • implement snapshotting of certain configuration during transaction lifetime {pull}1431[#1431]

  • propagate traceparent IDs via Celery {pull}1371[#1371]

  • removed Python 2 compatibility shims {pull}1463[#1463]

    • Note: Python 2 support was already removed with version 6.0 of the agent, this now removes unused compatibilit shims.

Bug fixes
  • fix span compression for redis, mongodb, cassandra and memcached {pull}1444[#1444]

  • fix recording of status_code for starlette {pull}1466[#1466]

  • fix aioredis span context handling {pull}1462[#1462]

6.7.2 - 2021-12-07

Bug fixes
  • fix AttributeError in sync instrumentation of httpx {pull}1423[#1423]

  • add setting to disable span compression, default to disabled {pull}1429[#1429]

6.7.1 - 2021-11-29

Bug fixes
  • fix an issue with Sanic exception tracking {pull}1414[#1414]

  • asyncpg: Limit SQL queries in context data to 10000 characters {pull}1416[#1416]

6.7.0 - 2021-11-17

Features
  • Add support for Sanic framework {pull}1390[#1390]

Bug fixes
  • fix compatibility issues with httpx 0.21 {pull}1403[#1403]

  • fix span_compression_exact_match_max_duration default value {pull}1407[#1407]

6.6.3 - 2021-11-15

Bug fixes
  • fix an issue with metrics_sets configuration referencing the TransactionMetricSet removed in 6.6.2 {pull}1397[#1397]

6.6.2 - 2021-11-10

Bug fixes
  • Fix an issue where compressed spans would count against transaction_max_spans {pull}1377[#1377]

  • Make sure HTTP connections are not re-used after a process fork {pull}1374[#1374]

  • Fix an issue with psycopg2 instrumentation when multiple hosts are defined {pull}1386[#1386]

  • Update the User-Agent header to the new spec {pull}1378[#1378]

  • Improve status_code handling in AWS Lambda integration {pull}1382[#1382]

  • Fix aiohttp exception handling to allow for non-500 responses including HTTPOk {pull}1384[#1384]

  • Force transaction names to strings {pull}1389[#1389]

Other
  • Remove unused http.request.socket.encrypted context field {pull}1332[#1332]

  • Remove unused transaction metrics (APM Server handles these metrics instead) {pull}1388[#1388]

6.6.1 - 2021-11-02

Bug fixes
  • Fix some context fields and metadata handling in AWS Lambda support {pull}1368[#1368]

6.6.0 - 2021-10-18

Features
  • Add experimental support for AWS lambda instrumentation {pull}1193[#1193]

  • Add support for span compression {pull}1321[#1321]

  • Auto-infer destination resources for easier instrumentation of new resources {pull}1359[#1359]

  • Add support for dropped span statistics {pull}1327[#1327]

Bug fixes
  • Ensure that Prometheus histograms are encoded correctly for APM Server {pull}1354[#1354]

  • Remove problematic (and duplicate) event.dataset from logging integrations {pull}1365[#1365]

  • Fix for memcache instrumentation when configured with a unix socket {pull}1357[#1357]

6.5.0 - 2021-10-04

Features
  • Add instrumentation for Azure Storage (blob/table/fileshare) and Azure Queue {pull}1316[#1316]

Bug fixes
  • Improve span coverage for asyncpg {pull}1328[#1328]

  • aiohttp: Correctly pass custom client to tracing middleware {pull}1345[#1345]

  • Fixed an issue with httpx instrumentation {pull}1337[#1337]

  • Fixed an issue with Django 4.0 removing a private method {pull}1347[#1347]

6.4.0 - 2021-08-31

Features
  • Rename the experimental log_ecs_formatting config to log_ecs_reformatting {pull}1300[#1300]

  • Add support for Prometheus histograms {pull}1165[#1165]

Bug fixes
  • Fixed cookie sanitization when Cookie is capitalized {pull}1301[#1301]

  • Fix a bug with exception capturing for bad UUIDs {pull}1304[#1304]

  • Fix potential errors in json serialization {pull}1203[#1203]

  • Fix an issue with certain aioredis commands {pull}1308[#1308]

6.3.3 - 2021-07-14

Bug fixes
  • ensure that the elasticsearch instrumentation handles DroppedSpans correctly {pull}1190[#1190]

6.3.2 - 2021-07-07

Bug fixes
  • Fix handling of non-http scopes in Starlette/FastAPI middleware {pull}1187[#1187]

6.3.1 - 2021/07/07

Bug fixes
  • Fix issue with Starlette/FastAPI hanging on startup {pull}1185[#1185]

6.3.0 - 2021/07/06

Features
  • Add additional context information about elasticsearch client requests {pull}1108[#1108]

  • Add use_certifi config option to allow users to disable certifi {pull}1163[#1163]

Bug fixes
  • Fix for Starlette 0.15.0 error collection {pull}1174[#1174]

  • Fix for Starlette static files {pull}1137[#1137]

6.2.3 - 2021/06/28

Bug fixes
  • suppress the default_app_config attribute in Django 3.2+ {pull}1155[#1155]

  • bump log level for multiple set_client calls to WARNING {pull}1164[#1164]

  • fix issue with adding disttracing to SQS messages when dropping spans {pull}1170[#1170]

6.2.2 - 2021/06/07

Bug fixes
  • Fix an attribute access bug introduced in 6.2.0 {pull}1149[#1149]

6.2.1 - 2021/06/03

Bug fixes
  • catch and log exceptions in interval timer threads {pull}1145[#1145]

6.2.0 - 2021/05/31

Features
  • Added support for aioredis 1.x {pull}1082[#2526]

  • Added support for aiomysql {pull}1107[#1107]

  • Added Redis pub/sub instrumentation {pull}1129[#1129]

  • Added specific instrumentation for AWS SQS {pull}1123[#1123]

Bug fixes
  • ensure metrics are flushed before agent shutdown {pull}1139[#1139]

  • added safeguard for exceptions in processors {pull}1138[#1138]

  • ensure sockets are closed which were opened for cloud environment detection {pull}1134[#1134]

6.1.3 - 2021/04/28

Bug fixes
  • added destination information to asyncpg instrumentation {pull}1115[#1115]

  • fixed issue with collecting request meta data with Django REST Framework {pull}1117[#1117]

  • fixed httpx instrumentation for newly released httpx 0.18.0 {pull}1118[#1118]

6.1.2 - 2021/04/14

Bug fixes
  • fixed issue with empty transaction name for the root route with Django {pull}1095[#1095]

  • fixed on-the-fly initialisation of Flask apps {pull}1099[#1099]

v6.1.1 - 2021/04/08

Bug fixes
  • fixed a validation issue with the newly introduced instrumentation for S3, SNS and DynamoDB {pull}1090[#1090]

v6.1.0 - 2021/03/31

Features
  • Add global access to Client singleton object at elasticapm.get_client() {pull}1043[#1043]

  • Add log_ecs_formatting config option {pull}1058[#1058] {pull}1063[#1063]

  • Add instrumentation for httplib2 {pull}1031[#1031]

  • Add better instrumentation for some AWS services (S3, SNS, DynamoDB) {pull}1054[#1054]

  • Added beta support for collecting metrics from prometheus_client {pull}1083[#1083]

Bug fixes
  • Fix for potential capture_body: error hang in Starlette/FastAPI {pull}1038[#1038]

  • Fix a rare error around processing stack frames {pull}1012[#1012]

  • Fix for Starlette/FastAPI to correctly capture request bodies as strings {pull}1042[#1041]

  • Fix transaction names for Starlette Mount routes {pull}1037[#1037]

  • Fix for elastic excepthook arguments {pull}1050[#1050]

  • Fix issue with remote configuration when resetting config values {pull}1068[#1068]

  • Use a label for the elasticapm Django app that is compatible with Django 3.2 validation {pull}1064[#1064]

  • Fix an issue with undefined routes in Starlette {pull}1076[#1076]

v6.0.0 - 2021/02/01

Breaking changes
  • Python 2.7 and 3.5 support has been deprecated. The Python agent now requires Python 3.6+ {pull}1021[#1021]

  • No longer collecting body for elasticsearch-py update and delete_by_query {pull}1013[#1013]

  • Align sanitize_field_names config with the cross-agent spec. If you are using a non-default sanitize_field_names, surrounding each of your entries with stars (e.g. secret) will retain the old behavior. {pull}982[#982]

  • Remove credit card sanitization for field values. This improves performance, and the security value of this check was dubious anyway. {pull}982[#982]

  • Remove HTTP querystring sanitization. This improves performance, and is meant to standardize behavior across the agents, as defined in elastic/apm#334. {pull}982[#982]

  • Remove elasticapm.tag() (deprecated since 5.0.0) {pull}1034[#1034]

Bug fixes
  • Fix for GraphQL span spamming from scalar fields with required flag {pull}1015[#1015]

Python Agent version 5.x

v5.10.1 - 2021/01/20

Bug fixes
  • Fix for custom serializers in elasticsearch-py {pull}998[#998]

  • Fix large query truncation in psycopg2 {pull}994[#994]

  • Fix memory metrics reporting when memory.usage_in_bytes is unavailable {pull}987[#987]

  • Fix for Starlette/FastAPI integration to properly obey enabled config {pull}1000[#1000]

v5.10.0 - 2020/11/18

Features
  • Implement "sample_rate" property for transactions and spans, and propagate through tracestate {pull}891[#891]

  • Add support for callbacks on config changes {pull}912[#912]

  • Override sys.excepthook to catch all exceptions {pull}943[#943]

  • Implement log_level config (supports central config) {pull}946[#946]

  • Implement transaction_ignore_urls config (supports central config) {pull}923[#923]

  • Add public API to retrieve trace parent header {pull}956[#956]

  • Added support for cgroup memory metrics {pull}846[#846]

Bug fixes
  • Fix to collect the whole query body in elasticsearch-py {pull}940[#940]

  • Fix for GraphQL transaction naming {pull}881[#881]

  • Ensure that query string max length is maintained after sanitization {pull}968[#968]

  • Adapted kubernetes kubepod regex for detecting kubernetes metadata {pull}958[#958]

  • Updated Starlette integration to use the route as transaction name if possible {pull}957[#957]

v5.9.0 - 2020/09/23

Features
  • Add instrumentation support for httpx and httpcore {pull}898[#898]

  • Implement "outcome" property for transactions and spans {pull}899[#899]

  • Add support for asyncpg {pull}889[#889]

Bug fixes
  • Fix validation of config to properly require required config items. {pull}927[#927]

v5.8.1 - 2020/07/13

Bug fixes
  • Updated CLOUD_PROVIDER config to allow for new options defined in #289 {pull}878[#878]

  • Fixed a bug in AWS metadata collection on docker containers in AWS Elastic Beanstalk {pull}884[#884]

  • Fixed a bug in local variable serialization that could occur in multi-threaded applications {pull}885[#885]

v5.8.0 - 2020/06/30

Features
  • Added graphql (graphene) support {pull}850[#850]

  • Collect cloud provider metadata {pull}826[#826]

  • Added sanitize_field_names config {pull}860[#860]

Bug fixes
  • Fix header fetching for ASGI implementations {pull}856[#856]

v5.7.0 - 2020/06/11

Features
  • capture number of affected rows for INSERT/UPDATE/DELETE SQL queries {pull}614[#614]

  • Added instrumentation for AsyncElasticsearch {pull}843[#843]

Bug fixes
  • Added error handling around frame processing in Django {pull}837[#837]

  • Limit SQL queries in context data to 10000 characters {pull}842[#842]

  • Omit the "sync" property on spans by default {pull}854[#854]

  • Update the pid/ppid in transport metadata when they change {pull}825[#825]

  • Added better error handling around closing the transport {pull}838[#838]

  • Fixed an issue with the django admin command not detecting misconfigured server urls {pull}855[#855]

v5.6.0 - 2020/05/06

New features
  • Added SERVICE_NODE_NAME config {pull}592[#592]

  • Added instrumentation support for pymemcache {pull}812[#812]

  • Added new configuration options enabled and recording {pull}790[#790]

Bug fixes
  • Fixed an issue with metrics collection raising RuntimeErrors {pull}802[#802]

  • Fixed an issue with getting extended destination data from pymongo {pull}797[#797]

  • Fixed an issue with Tornado instrumentation when Tornado isn’t the "main" framework {pull}813[#813]

  • Fixed an issue with streaming requests being consumed by the agent even if capture_body is disabled {pull}817[#817]

Pending Deprecations
  • Python 2.7 suppot will be dropped in version 6.0 of the agent.

v5.5.2 - 2020/03/20

Bug fixes
  • Fixed an issue with Redis using unix domain sockets and destination information {pull}766[#766]

v5.5.1 - 2020/03/19

Bug fixes
  • Fixed Starlette middleware when capturing request body while the content-type header is absent {pull}763[#763]

v5.5.0 - 2020/03/19

Features
  • Added destination information to database/HTTP spans, used for service maps {pull}618[#618]

Deprecations
  • Python 3.4 is no longer supported.

v5.4.3 - 2020/02/27

Bug fixes
  • fixed a bug in our aiohttp.client support if used with a yarl URL {pull}733[#733]

v5.4.2 - 2020/02/18

Bug fixes
  • fixed a bug in our celery implementation related to the threading refactor in 5.4.0 {pull}724[#724]

v5.4.1 - 2020/02/18

Bug fixes
  • fixed an issue with a DEBUG log message raising an error in some cases {pull}722[#722]

v5.4.0 - 2020/02/17

Deprecations

This will be the last minor release to support the following versions:

  • Python 3.4

  • Django 1.8, 1.9 and 1.10

  • Flask < 1.0

In addition, as of this release we only supported capturing extended information on Elasticsearch queries when using keyword arguments with the elasticsearch-py API. This is in keeping with the upstream policy of positional arguments being unsupported. {pull}697[#697]

New Features
  • Refactored spawning of background threads {pull}636[#636]

  • Added support for aiohttp client and server {pull}659[#659]

  • Added support for tornado web framework {pull}661[#661]

  • Added support for starlette/fastapi {pull}694[#694]

  • Added support for W3C traceparent and tracestate headers {pull}660[#660]

  • Added Django 3.0 and Flask 1.1 to the support matrix {pull}667[#667]

  • Added support for aiopg {pull}668[#668]

  • Use Span ID as parent ID in errors if an error happens inside a span {pull}669[#669]

  • Added experimental support for API Key authentication {pull}679[#679]

Bug fixes
  • introduced workaround to avoid instrumenting twice in rare cases {pull}708[#708]

v5.3.3 - 2020/01/14

Bug fixes
  • Fixed an issue with OpenTracing bridge and dropped spans {pull}687[#687]

  • Fixed bug that would make the agent ignore the hostname configuration setting {pull}689[#689]

v5.3.2 - 2019/11/25

Bug fixes
  • Added support for IPv6 address format when parsing urls {pull}649[#649]

v5.3.1 - 2019/11/18

New Features
  • Added support for shortening dicts in local variables {pull}638[#638]

v5.3.0 - 2019/11/14

New Features
  • Added instrumentation for mysql-connector and pymysql {pull}603[#603]

  • Implemented stack_trace_limit configuration option {pull}623[#623]

  • Autoinsert tracing middleware in django settings {pull}625[#625]

Bug fixes
  • Fixed issue with transactions not being captured when errors occur in Flask {pull}635[#635]

v5.2.3 - 2019/11/13

Bug fixes
  • Ensure that metrics with value 0 are not collected if they have the reset_on_collect flag set {pull}615[#615]

  • Unwrap postgres cursor for newly introduced psycopg2 extensions {pull}621[#621]

  • Fix pod ID for kubernetes when using the systemd cgroup driver {pull}631[#631]

v5.2.2 - 2019/10/16

Bug fixes
  • Fixed an issue where a cpu_total of 0 could cause an exception {pull}610[#610], {pull}611[#611]

v5.2.1 - 2019/10/09

Bug fixes
  • Fixed an issue with DroppedSpans and logging integration {pull}602[#602]

  • Fixed an issue with processors not being applied to chained exceptions {pull}604[#604]

v5.2.0 - 2019/10/02

New Features
  • Added automatic tagging of LogRecord objects with transaction, trace, and span IDs via a LogRecordFactory (Python 3.2+) {pull}520[#520], {pull}586[#586]

  • Added logging filter and record factory for adding transaction, trace, and span IDs {pull}520[#520], {pull}586[#586]

  • Added structlog processor for adding transaction, trace, and span IDs {pull}520[#520], {pull}586[#586]

  • Added new public API calls for getting transaction, trace, and span IDs {pull}520[#520], {pull}586[#586]

  • Added support for chained exceptions in Python 3 {pull}596[#596]. Note that chained exceptions will be captured and stored in Elasticsearch, but not yet visualized in the APM UI. The UI component will be released in an upcoming Kibana release (7.5 or later).

  • Added support for using structlog for agent logging {pull}591[#591]

Bug fixes
  • Drop events immediately if a processor returns a falsy value {pull}585[#585]

v5.1.2 - 2019/09/04

Bugfixes
  • Fixed an issue with http server_url and 'VERIFY_SERVER_CERT': False {pull}570[#570], {pull}578[#578]

  • Fixed instrumenting of psycopg2 when using their context manager interface {pull}577[#577], {pull}580[#580]

  • Fixed zerorpc tests {pull}581[#581]

  • Fixed to correctly check if gevent has patched threading.local {pull}579[#579]

v5.1.1 - 2019/08/22

Bug fixes
  • Fixed an issue with empty responses from APM Server’s config endpoint {pull}562[#562], {pull}563[#563]

  • Fixed Windows tests by avoiding time.sleep in breakdown metrics tests {pull}537[#537], {pull}550[#550]

  • Fixed container ID matching to match CloudFoundry Garden container IDs {pull}523[#523], {pull}564[#564]

  • Fixed an issue in the urllib instrumentation if no port is set {pull}567[#567]

Other
  • Added Python 3.8 RC to the test matrix {pull}565[#565]

v5.1.0 - 2019/08/14

Security issues
  • This release fixes CVE-2019-7617

New Features
  • Added support for global labels which will be applied to every transaction/error/metric {pull}549[#549]

  • Added support for NO_PROXY environment variable {pull}458[#458], {pull}551[#551]

Bugfixes
  • Fixed an issue with using callables in set_context with unsampled transactions {pull}541[#541], {pull}542[#542]

  • Limited the length of error.culprit to 1024 characters {pull}491[#491], {pull}543[#543]

  • Fixed an issue with the instrument config option {pull}546[#546], {pull}547[#547]

  • Limited the amount of distinct metrics to 1000 {pull}540[#540], {pull}544[#544]

v5.0.0 - 2019/07/31

Breaking changes
  • Implemented type/subtype/action hierachy for spans. Ensure that you run at least APM Server 6.6 {pull}377[#377]

  • renamed tags to labels and changed API. The old API remains for backwards compatibility until 6.0 of the agent {pull}538[#538]

Other changes
  • Added support for recording breakdown metrics {pull}535[#535]

  • Added support for central config management {pull}511[#511]

  • Added instrumentation for urllib2 (Python 2) / urllib.request (Python 3) {pull}464[#464]

  • Added disable_metrics setting {pull}399[#399]

  • Updated elasticsearch instrumentation for 7.x {pull}482[#482], {pull}483[#483]

  • Fixed an issue with opentracing-python 2.1 {pull}471[#471]

  • Fixed an issue with certificate pinning {pull}497[#497]

  • Lowered log level of transport success messages {pull}527[#527], {pull}531[#531]

Python Agent version 4.x

v4.2.2 - 2019/04/10

  • Fixed an issue with Celery and the prefork worker pool {pull}444[#444]

  • Fixed an issue when running uwsgi without a master process {pull}446[#446]

  • Fixed an issue with gevent/eventlet on Python 3.7 {pull}451[#451], {pull}454[#454]

  • Introduced IntervalTimer and use it instead of threading.Timer {pull}452[#452]

  • Added license header check as pre-commit hook {pull}456[#456]

v4.2.1 - 2019/03/22

  • Fixed an issue with the certificate pinning feature introduced in 4.2.0 {pull}433[#433], {pull}434[#434]

  • Fixed incompatibility with eventlet introduced in 4.2.0 {pull}435[#435], {pull}436[#436]

v4.2.0 - 2019/03/20

  • Implemented a new transport queue, which should avoid certain deadlock scenarios {pull}411[#411]

  • Implemented server certificate pinning {pull}405[#405]

  • Moved context.url to context.http.url for requests/urllib3 spans {pull}393[#393], {pull}394[#394]

  • Added support for using route as transaction name in Django 2.2+ {pull}86[#86], {pull}396[#396]

  • Added some randomness to time between requests to APM Server {pull}426[#426]

  • Fixed an issue with custom user models in Django using non-string usernames {pull}397[#397], {pull}398[#398]

  • Fixed an issue with sending kubernetes metadata to the API {pull}401[#401], {pull}402[#402]

  • Fixed an issue with parsing /proc/stat in RHEL/centos 6 {pull}406[#406], {pull}407[#407]

  • Added copyright header to all files, and a CI check {pull}429[#429]

v4.1.0 - 2019/01/29

  • Added support for collecting system and process metrics {pull}361[#361]

  • Added an OpenTracing bridge {pull}388[#388]

  • Added transaction.sampled to errors {pull}371[#371]

  • Added transaction.type to errors {pull}391[#391]

  • Added parsing of /proc/self/cgroup to capture container meta data {pull}352[#352]

  • Added option to configure logging for Flask using a log level {pull}344[#344]

  • Added capture_headers config option {pull}392[#392]

v4.0.3 - 2018/12/24

  • Implemented de-dotting of tag names and context keys {pull}353[#353]

  • wrote a quickfix for the boto3/botocore instrumentation {pull}367[#367]

  • Fixed an issue with psycopg2 and encoded strings {pull}366[#366]

v4.0.2 - 2018/12/05

  • Fixed another issue in the new v2 transport {pull}351[#351]

v4.0.1 - 2018/11/16

  • Fixed an issue with instrumenting redis-py 3.0+

  • Fixed a multithreading issue that occurs when using threaded workers {pull}335[#335]

v4.0.0 - 2018/11/14

BREAKING Version 4 of the agent implements a new wire protocol for communicating with the APM Server. This format is only supported in APM Server 6.5+.

Further breaking changes:

  • The undocumented AsyncioHTTPTransport has been removed.

  • The flush_interval and max_queue_size settings have been removed.

  • new settings introduced: api_request_time and api_request_size.

  • Some settings now require a unit for duration or size. See documentation on configuration for more information.

  • The option to provide a custom date for exceptions and messages has been removed.

Other changes: * on Python 3.7, use contextvars instead of threadlocals for storing current transaction and span. This is a necessary precursor for full asyncio support. {pull}291[#291]

Python Agent version 3.x

v3.0.2 - 2018/10/17

  • Fixed an issue with detecting names of wrapped functions that are partials {pull}294[#294]

  • Fixed a bug in Flask instrumentation that could appear together with FlaskAPI {pull}286[#286]

v3.0.1 - 2018/08/30

  • Added sanitization for Set-Cookie response headers {pull}264[#264]

  • Added instrumentation for the non-standard Connection.execute() method for SQLite3 {pull}271[#271]

  • Added "authorization" to list of sensitive keywords, to ensure that "Authorization" HTTP headers are properly sanitized {pull}275[#275]

  • Taught the Logbook handler how to handle the stack=False option {pull}278[#278]

  • Fixed a race condition with managing the timer-send thread {pull}279[#279]

v3.0.0 - 2018/07/20

  • adapted "black" code formatter for this repository {pull}262[#262]

  • BREAKING: dropped support for Python 3.3 {pull}242[#242]

  • BREAKING: changed order of precedence when evaluating configuration {pull}255[#255], {pull}261[#261]

  • BREAKING: changed default value of span_frames_min_duration setting from -1 (always collect) to 5 (only collect for spans longer than 5 ms) {pull}243[#243]

  • added instrumentation for pymssql {pull}241[#241]

  • added instrumentation for pyodbc {pull}238[#238]

Python Agent version 2.x

v2.2.1 - 2018/06/13

  • fixed an issue with Django Channels {pull}232[#232], {pull}233[#233]

v2.2.0 - 2018/06/13

  • introduced consistent logger name scheme for all elasticapm internal log messages {pull}212[#212]

  • added instrumentation of cassandra-driver {pull}205[#205]

  • added instrumentation of elasticsearch-py {pull}191[#191]

  • added Flask 1.0 to the test matrix {pull}207[#207]

  • fixed an issue with our minimalistic SQL parser and "fully qualified" table names {pull}206[#206]

  • fixed issue with spans in Django’s StreamingHTTPResponse not being captured {pull}201[#201], {pull}202[#202]

  • fixed issue with spans with Flask’s streaming response not being captured {pull}201[#201], {pull}202[#202]

NOTE: This will be the last release with support for Python 3.3.

v2.1.1 - 2018/04/09

  • fixed bug in Django management command that would be triggered on Django 1.10 or 1.11 while using the MIDDLEWARE_CLASSES setting {pull}186[#186], {pull}187[#187]

  • fix an encoding issue with log messages that are hit in rare cases {pull}188[#188], {pull}189[#189]

v2.1.0 - 2018/03/19

  • made skipping of initial elasticapm frames for span stack traces more generic {pull}167[#167]

  • added context.process.ppid field (supported in apm-server 6.3+) {pull}168[#168]

  • added option to disable stack frame collection for very short spans {pull}142[#142]

  • several bug fixes:

  • fix an issue in boto3 instrumentation with nonstandard endpoint URLs {pull}178[#178]

  • fix bug with OPTIONS requests and body capturing {pull}174[#174]

  • fix issue when message has % character, but no params {pull}175[#175]

v2.0.1 - 2018/02/15

  • fixed compatibility issue with aiohttp 3.0 {pull}157[#157]

  • Added truncation for fields that have a maxLength in the JSON Schema {pull}159[#159]

v2.0.0 - 2018/02/06

  • moved the library-frame detection from a processor to the stacktrace collection {pull}113[#113].

  • added settings to enable/disable source code collection and local variables collection for errors and transactions {pull}117[#117]

  • added service.environment to provide an environment name (e.g. "production", "staging") {pull}123[#123]

  • added transaction.id to errors to better correlate errors with transactions {pull}122[#122]

  • added transaction_sample_rate to define a rate with which transactions are sampled {pull}116[#116]

  • added error.handled to indicate if an exception was handled or not {pull}124[#124].

  • added transaction_max_spans setting to limit the amount of spans that are recorded per transaction {pull}127[#127]

  • added configuration options to limit captured local variables to a certain length {pull}130[#130]

  • added options for configuring the amount of context lines that are captured with each frame {pull}136[#136]

  • added support for tracing queries formatted as psycopg2.sql.SQL objects {pull}148[#148]

  • switched to time.perf_counter as timing function on Python 3 {pull}138[#138]

  • added option to disable capturing of request body {pull}151[#151]

  • BREAKING: Several settings and APIs have been renamed (#111, #119, #143):

  • The decorator for custom instrumentation, elasticapm.trace, is now elasticapm.capture_span

  • The setting traces_send_frequency has been renamed to flush_interval. The name of the analogous environment variable changed from ELASTIC_APM_TRACES_SEND_FREQ to ELASTIC_APM_FLUSH_INTERVAL

  • The app_name setting has been renamed to service_name. The name of the analogous environment variable changed from ELASTIC_APM_APP_NAME to ELASTIC_APM_SERVICE_NAME.

  • app_name arguments to API calls in the whole code base changed to service_name.

  • The app_version setting has been renamed to service_version. The name of the analogous environment variable changed from ELASTIC_APM_APP_VERSION to ELASTIC_APM_SERVICE_VERSION.

  • context.request.url.raw has been renamed to context.request.url.full {pull}121[#121]

  • BREAKING: added elasticapm.set_custom_context in favor of the more generic set_custom_data function {pull}133[#133]

  • BREAKING: include_patterns and exclude_patterns now use shell globs instead of regular expressions, and are matched against the full path file path of the module, not against the module name {pull}137[#137]

  • BREAKING: renamed several configuration options to align better with other language agents {pull}145[#145]:

  • disable_instrumentation became instrument and inverted its meaning

  • max_event_queue_length became max_queue_size

  • timeout became server_timeout

Python Agent version 1.x

v1.0.0 - 2017/12/11

  • added max-event-queue-length setting. {pull}67[#67]

  • changed name that the agent reports itself with to the APM server from elasticapm-python to python. This aligns the Python agent with other languages. {pull}104[#104]

  • changed Celery integration to store the task state (e.g. SUCCESS or FAILURE) in transaction.result {pull}100[#100]

  • added setting to disable SSL certificate verification {pull}108[#108]

  • BREAKING: renamed server configuration variable to server_url to better align with other language agents {pull}105[#105]

  • BREAKING: removed the old and unused urllib2-based HTTP transport, and renamed the urllib3 transport {pull}107[#107]

  • BREAKING: several API changes to capture_exception, capture_message, and added documentation for these and other APIs {pull}112[#112]

v1.0.0.dev3 - 2017/11/13

  • added a background thread to process the transactions queue every 60 seconds (configurable) {pull}68[#68]

  • adapted trace context for SQL traces to new API {pull}77[#77]

  • ensured that transaction data is also passed through processors {pull}84[#84]

  • added uninstrument function to reverse instrumentation, and exposed both instrument and uninstrument as public API in the elasticapm namespace {pull}90[#90]

  • added normalization of HTTP status codes into classes for the transaction.result field. A HTTP status of 200 will be turned into HTTP 2xx. The unchanged status code is still available in context.response.status_code. {pull}85[#85]

v1.0.0.dev2 - 2017/09/29

  • added request context information for Flask {pull}58[#58]

  • added response context information for Flask {pull}65[#65]

  • BREAKING: changed the SERVERS list setting to a single SERVER string setting. With this change, we now only support sending events to a single server {pull}59[#59]

  • BREAKING: removed root trace. Due to historical reason, we used to create a "root trace" which was equivalent to the transaction. This is no longer necessary. #61

v1.0.0.dev1 - 2017/09/18

  • unified configuration across supported frameworks {pull}33[#33]

  • added in-app frame detection {pull}36[#36]

  • added tagging functionality {pull}28[#28]

  • preliminary support for Django 2.0 {pull}26[#26]

  • initial set of documentation

v1.0.0.dev0 - 2017/08/17

First release of the Python agent for Elastic APM