From 367615b583146efdb372efc8b63cc1388b2019ad Mon Sep 17 00:00:00 2001 From: Paulo Vital Date: Fri, 22 Nov 2024 09:46:17 -0300 Subject: [PATCH 1/3] fix: Logging stacklevel for Python >= 3.13.0. Signed-off-by: Paulo Vital --- src/instana/instrumentation/logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 372c8eecc10718f53a299881f698b2bde54fa763 Mon Sep 17 00:00:00 2001 From: Paulo Vital Date: Fri, 22 Nov 2024 07:59:39 -0300 Subject: [PATCH 2/3] chore: Update documentation links on README.md file. Signed-off-by: Paulo Vital --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" From f96d9bef0b5b6a0cff7ccaf79f5946c28634aa70 Mon Sep 17 00:00:00 2001 From: Paulo Vital Date: Fri, 22 Nov 2024 07:59:54 -0300 Subject: [PATCH 3/3] chore(version): Bump version to 3.1.0 Signed-off-by: Paulo Vital --- src/instana/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"