Skip to content

Commit 9657849

Browse files
authored
Removed Pyroscope deps + Disabled Profiling (#47)
1 parent c7ec791 commit 9657849

File tree

7 files changed

+1
-74
lines changed

7 files changed

+1
-74
lines changed

middleware/config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ def __init__(self):
6161
"collect_traces": "MW_APM_COLLECT_TRACES",
6262
"collect_metrics": "MW_APM_COLLECT_METRICS",
6363
"collect_logs": "MW_APM_COLLECT_LOGS",
64-
"collect_profiling": "MW_APM_COLLECT_PROFILING",
6564
"otel_propagators": "MW_PROPAGATORS",
6665
"mw_agent_service": "MW_AGENT_SERVICE",
6766
"target": "MW_TARGET",

middleware/lib/_profiler.py

Lines changed: 0 additions & 49 deletions
This file was deleted.

middleware/lib/mw_tracker.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ def __init__(self):
2424
self.collect_traces()
2525
if config.collect_logs:
2626
self.collect_logs()
27-
if config.collect_profiling and not psutil.WINDOWS:
28-
self.collect_profiling()
2927
self._get_instrument_info()
3028

3129
def collect_metrics(self):
@@ -40,11 +38,6 @@ def collect_traces(self):
4038

4139
collect_traces()
4240

43-
def collect_profiling(self):
44-
from ._profiler import collect_profiling
45-
46-
collect_profiling()
47-
4841
def collect_logs(self):
4942
from ._logger import log_handler
5043

@@ -111,6 +104,4 @@ def _get_instrument_info(self):
111104
print(f"Traces: Enabled")
112105
if config.collect_logs:
113106
print(f"Logs: Enabled")
114-
if config.collect_profiling:
115-
print(f"Profiling: Enabled")
116107
print(f"{reset_color}")

middleware/middleware.ini

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,6 @@
5353

5454

5555

56-
# Desc: Toggle to enable/disable the collection of profiling data for your application.
57-
# Env: MW_APM_COLLECT_PROFILING
58-
# Type: Bool
59-
# Optional (Default False)
60-
61-
collect_profiling = true
62-
63-
64-
6556
# Desc: To capture logs based on level change logging log_level. Default is FATAL.
6657
# Env: MW_LOG_LEVEL or OTEL_LOG_LEVEL
6758
# Type: String ( DEBUG, INFO, WARNING, ERROR, CRITICAL, FATAL)

middleware/testfiles/middleware_default.ini

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,4 @@ collect_metrics = false
2525
# Toggle to enable/disable the collection of logs for your application.
2626
collect_logs = false
2727

28-
# Toggle to enable/disable the collection of profiling data for your application.
29-
collect_profiling = false
30-
3128
# ---------------------------------------------------------------------------

pyproject.toml

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

55
[project]
66
name = "middleware-apm"
7-
version = "1.2.1"
7+
version = "1.2.3"
88
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."
99
readme = "README.md"
1010
requires-python = ">=3.8"
@@ -28,7 +28,6 @@ dependencies = [
2828
"PyYAML==6.0.2",
2929
"requests==2.32.3",
3030
"thrift==0.20.0",
31-
"pyroscope-io==0.8.5; sys_platform != 'win32'",
3231
"psutil==6.0.0",
3332
"tomli==2.0.1",
3433
"opentelemetry-propagator-b3==1.27.0",

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ opentelemetry-util-http==0.48b0
1818
PyYAML==6.0.2
1919
requests==2.32.3
2020
thrift==0.20.0
21-
pyroscope-io==0.8.5; sys_platform != 'win32'
2221
psutil==6.0.0
2322
tomli==2.0.1
2423
# webencodings==0.5.1

0 commit comments

Comments
 (0)