diff --git a/README.md b/README.md index 4115d193..514530c7 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Any feedback is welcome. Happy Python visibility. [![CircleCI](https://circleci.com/gh/instana/python-sensor/tree/main.svg?style=svg)](https://circleci.com/gh/instana/python-sensor/tree/main) [![OpenTracing Badge](https://img.shields.io/badge/OpenTracing-disabled-red.svg)](http://opentracing.io) [![OpenTelemetry Badge](https://img.shields.io/badge/OpenTelemetry-enabled-blue.svg)](http://opentelemetry.io) -![Python Version from PEP 621 TOML](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Finstana%2Fpython-sensor%2Frefs%2Fheads%2Fmain%2Fpyproject.toml) +![PyPI - Python Version](https://img.shields.io/pypi/pyversions/instana) ![GitHub Release](https://img.shields.io/github/v/release/instana/python-sensor) > [!NOTE] @@ -60,7 +60,7 @@ Want to instrument other languages? See our [Node.js], [Go], [Ruby] instrumenta [Instana AutoTrace™️]: https://www.ibm.com/docs/en/instana-observability/current?topic=kubernetes-instana-autotrace-webhook "Instana AutoTrace" [configuration page]: https://www.ibm.com/docs/en/instana-observability/current?topic=package-python-configuration-configuring-instana#general "Instana Python package configuration" [PyPI]: https://pypi.python.org/pypi/instana "Instana package at PyPI" -[installation document]: https://www.ibm.com/docs/en/instana-observability/current?topic=technologies-monitoring-python-instana-python-package#installing "Instana Python package installation" +[installation document]: https://www.ibm.com/docs/en/instana-observability/current?topic=technologies-monitoring-python-instana-python-package#installation-methods "Instana Python package installation methods" [documentation portal]: https://www.ibm.com/docs/en/instana-observability/current?topic=technologies-monitoring-python-instana-python-package "Instana Python package documentation" [Node.js]: https://github.com/instana/nodejs "Instana Node.JS Tracer" [Go]: https://github.com/instana/golang-sensor "Instana Go Tracer" diff --git a/src/instana/instrumentation/logging.py b/src/instana/instrumentation/logging.py index 3b62866d..db547610 100644 --- a/src/instana/instrumentation/logging.py +++ b/src/instana/instrumentation/logging.py @@ -26,7 +26,7 @@ def log_with_instana( # We take into consideration if `stacklevel` is already present in `kwargs`. # This prevents the error `_log() got multiple values for keyword argument 'stacklevel'` stacklevel_in = kwargs.pop("stacklevel", 1) - stacklevel = stacklevel_in + 1 + (sys.version_info >= (3, 13)) + stacklevel = stacklevel_in + 1 try: # Only needed if we're tracing and serious log diff --git a/src/instana/version.py b/src/instana/version.py index aaa4334a..28b9a1b9 100644 --- a/src/instana/version.py +++ b/src/instana/version.py @@ -3,4 +3,4 @@ # Module version file. Used by setup.py and snapshot reporting. -VERSION = "3.0.1" +VERSION = "3.1.0"