Skip to content

Commit 2bc7075

Browse files
committed
For site-packages flag will be is_file_external=true
1 parent 0a6b6b7 commit 2bc7075

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

middleware/distro.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ def custom_record_exception(span: Span, exc: Exception):
146146

147147
# Check if the file is from site-packages
148148
if "site-packages" in filename:
149-
stack_entry["exception.is_file_internal"] = "true"
149+
stack_entry["exception.is_file_external"] = "true"
150150
else:
151-
stack_entry["exception.is_file_internal"] = "false"
151+
stack_entry["exception.is_file_external"] = "false"
152152

153153
stack_info.insert(0, stack_entry) # Prepend instead of append
154154

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.1.2rc11"
7+
version = "2.1.2rc12"
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)