apm-agent-python

The official Python module for Elastic APM

BSD-3-CLAUSE License

Downloads
1.1M
Stars
410
Committers
203

Bot releases are hidden (Show)

apm-agent-python - v6.21.1

Published by xrmx 8 months ago

Bug fixes

  • Fix CI release workflow [#1990]

Full Changelog: https://github.com/elastic/apm-agent-python/compare/v6.21.0...v6.21.1

apm-agent-python - v6.21.0

Published by xrmx 8 months ago

Bug fixes

  • Fix starlette middleware setup without client argument [#1952]
  • Fix blocking of gRPC stream-to-stream requests [#1967]
  • Always take into account body reading time for starlette requests [#1970]
  • Make urllib3 transport tests more robust against local env [#1969]
  • Clarify starlette integration documentation [#1956]
  • Make dbapi2 query scanning for dollar quotes a bit more correct [#1976]
  • Normalize headers in AWS Lambda integration on API Gateway v1 requests [#1982]

New Contributors

Full Changelog: https://github.com/elastic/apm-agent-python/compare/v6.20.0...v6.21.0

apm-agent-python - v6.16.0

Published by basepi over 1 year ago

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: https://github.com/elastic/apm-agent-python/compare/v6.15.1...v6.16.0

apm-agent-python - v6.15.1

Published by basepi over 1 year ago

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: https://github.com/elastic/apm-agent-python/compare/v6.15.0...v6.15.1

apm-agent-python - v6.15.0

Published by basepi over 1 year ago

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: https://github.com/elastic/apm-agent-python/compare/v6.14.0...v6.15.0

apm-agent-python - v6.14.0

Published by basepi over 1 year ago

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: https://github.com/elastic/apm-agent-python/compare/v6.13.2...v6.14.0

apm-agent-python - v6.13.2

Published by basepi almost 2 years ago

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: https://github.com/elastic/apm-agent-python/compare/v6.13.1...v6.13.2

apm-agent-python - v6.13.1

Published by basepi almost 2 years ago

Bug fixes

  • Fix elasticsearch instrumentation for track_total_hits=False [#1687]

Full Changelog: https://github.com/elastic/apm-agent-python/compare/v6.13.0...v6.13.1

apm-agent-python - v6.13.0

Published by basepi almost 2 years ago

Features

  • Add support for Python 3.11
  • Add backend granularity data to SQL backends as well as Cassandra and pymongo #1585, #1639
  • Add support for instrumenting the Elasticsearch 8 Python client #1642
  • Add *principal* to default sanitize_field_names configuration #1664
  • Add docs and better support for custom metrics, including in AWS Lambda #1643
  • Add support for capturing span links from AWS SQS in AWS Lambda #1662

Bug fixes

  • Fix Django's manage.py check when agent is disabled #1632
  • Fix an issue with long body truncation for Starlette #1635
  • Fix an issue with transaction outcomes in Flask for uncaught exceptions #1637
  • Fix Starlette instrumentation to make sure transaction information is still present during exception handling #1674

New Contributors

Full Changelog: https://github.com/elastic/apm-agent-python/compare/v6.12.0...v6.13.0

apm-agent-python - v6.12.0

Published by basepi about 2 years ago

Features

  • Add redis query to context data for redis instrumentation (#1406)
  • Add AWS request ID to all botocore spans (at span.context.http.request.id) (#1625)

Bug fixes

  • Differentiate Lambda URLs from API Gateway in AWS Lambda integration (#1609)
  • Restrict the size of Django request bodies to prevent APM Server rejection (#1610)
  • Restrict length of exception.message for exceptions captured by the agent (#1619)
  • Restrict length of Starlette request bodies (#1549)
  • Fix error when using elasticsearch(sniff_on_start=True) (#1618)
  • Improve handling of ignored URLs and capture_body=off for Starlette (#1549)
  • Fix possible error in the transport flush for Lambda functions (#1628)

New Contributors

Full Changelog: https://github.com/elastic/apm-agent-python/compare/v6.11.0...v6.12.0

apm-agent-python - v6.11.0

Published by basepi about 2 years ago

Features

  • Added lambda support for ELB triggers [#1605]

New Contributors

Full Changelog: https://github.com/elastic/apm-agent-python/compare/v6.10.2...v6.11.0

apm-agent-python - v6.10.2

Published by basepi about 2 years ago

Bug fixes

  • Fixed an issue with non-integer ports in Django [#1590]
  • Fixed an issue with non-integer ports in Redis [#1591]
  • Fixed a performance issue for local variable shortening via varmap() [#1593]
  • Fixed elasticapm.label() when a Client object is not available [#1596]

New Contributors

Full Changelog: https://github.com/elastic/apm-agent-python/compare/v6.10.1...v6.10.2

apm-agent-python - v6.10.1

Published by basepi over 2 years ago

Bug fixes

  • Fix an issue with Kafka instrumentation and unsampled transactions [#1579]

Full Changelog: https://github.com/elastic/apm-agent-python/compare/v6.10.0...v6.10.1

apm-agent-python - v6.10.0

Published by basepi over 2 years ago

Features

  • Add instrumentation for aiobotocore [#1520]
  • Add instrumentation for kafka-python [#1555]
  • Add API for span links, and implement span link support for OpenTelemetry bridge [#1562]
  • Add span links to SQS ReceiveMessage call [#1575]
  • Add specific instrumentation for SQS delete/batch-delete [#1567]
  • Add trace_continuation_strategy setting [#1564]

Bug fixes

  • Fix return for opentelemetry.Span.is_recording() [#1530]
  • Fix error logging for bad SERVICE_NAME config [#1546]
  • Do not instrument old versions of Tornado < 6.0 due to incompatibility [#1566]
  • Fix transaction names for class based views in Django 4.0+ [#1571]
  • Fix a problem with our logging handler failing to report internal errors in its emitter [#1568]

New Contributors

Full Changelog: https://github.com/elastic/apm-agent-python/compare/v6.9.1...v6.10.0

apm-agent-python - v6.9.1

Published by basepi over 2 years ago

Bug fixes

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

Full Changelog: https://github.com/elastic/apm-agent-python/compare/v6.9.0...v6.9.1

apm-agent-python - v6.9.0

Published by basepi over 2 years ago

Features

  • Add OpenTelemetry API bridge [#1411]
  • Change default for sanitize_field_names to sanitize *auth* instead of authorization [#1494]
  • Add span_stack_trace_min_duration to replace deprecated span_frames_min_duration [#1498]
  • Enable exact_match span compression by default [#1504]
  • Allow parent celery tasks to specify the downstream parent_span_id in celery headers [#1500]

Bug fixes

  • Fix Sanic integration to properly respect the capture_body config [#1485]
  • Lambda fixes to align with the cross-agent spec [#1489]
  • Lambda fix for custom service_name [#1493]
  • Change default for stack_trace_limit from 500 to 50 [#1492]
  • Switch all duration handling to use datetime.timedelta objects [#1488]

Full Changelog: https://github.com/elastic/apm-agent-python/compare/v6.8.1...v6.9.0

apm-agent-python - v6.8.1

Published by basepi over 2 years ago

Bug fixes

  • Fix exit_span_min_duration and disable by default [#1483]

Full Changelog: https://github.com/elastic/apm-agent-python/compare/v6.8.0...v6.8.1

apm-agent-python - v6.8.0

Published by beniwohli over 2 years ago

Features

  • use "unknown-python-service" as default service name if no service name is configured (#1438)
  • add transaction name to error objects (#1441)
  • don't send unsampled transactions to APM Server 8.0+ (#1442)
  • implement snapshotting of certain configuration during transaction lifetime (#1431)
  • propagate traceparent IDs via Celery (#1371)
  • removed Python 2 compatibility shims (#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 (#1444)
  • fix recording of status_code for starlette (#1466)
  • fix aioredis span context handling (#1462)
apm-agent-python - v6.7.2

Published by beniwohli almost 3 years ago

Bugfixes

  • fix AttributeError in sync instrumentation of httpx (#1423)
  • add setting to disable span compression, default to disabled (#1429)
apm-agent-python - v6.7.1

Published by beniwohli almost 3 years ago

Bugfixes

  • fix an issue with Sanic exception tracking (#1414)
  • asyncpg: Limit SQL queries in context data to 10000 characters (#1416)
Package Rankings
Top 28.88% on Conda-forge.org
Top 1.63% on Pypi.org