Skip to content

Commit 7ada9fa

Browse files
authored
Fixing NameError: _original_record_exception undefined (#60)
1 parent 2a4e3aa commit 7ada9fa

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

middleware/distro.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ def extract_function_code(tb_frame, lineno):
161161
"function_end_line": None,
162162
}
163163

164+
_original_record_exception = Span.record_exception
165+
164166
def custom_record_exception_wrapper(self: Span,
165167
exception: BaseException,
166168
attributes=None,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "middleware-io"
7-
version = "2.2.0"
7+
version = "2.2.1"
88
requires-python = ">=3.8"
99
description = "Middleware's APM tool enables Python developers to effortlessly monitor their applications, gathering distributed tracing, metrics, logs, and profiling data for valuable insights and performance optimization."
1010
authors = [{ name = "middleware-dev" }]

0 commit comments

Comments
 (0)