Closed GSVarsha closed 2 months ago
log_withinstana -> \_call__ -> custom_func stacklevel1 -> stacklevel2 -> stacklevel3
stacklevel1 -> stacklevel2 -> stacklevel3
log_with_instana -> custom_func stacklevel1 -> stacklevel2
stacklevel1 -> stacklevel2
Bug reported by a customer: https://github.com/instana/python-sensor/issues/563
BEFORE instana import funcName:custom_func message:Hello, world AFTER instana import funcName:log_with_instana message:Hello, world
BEFORE instana import funcName:custom_func message:Hello, world AFTER instana import funcName:custom_func message:Hello, world
What
Python version >= 3.13
log_withinstana -> \_call__ -> custom_func
stacklevel1 -> stacklevel2 -> stacklevel3
Python version < 3.13
log_with_instana -> custom_func
stacklevel1 -> stacklevel2
Why
Bug reported by a customer: https://github.com/instana/python-sensor/issues/563
Before the changes
After the changes