plain.observer 0.4.0__tar.gz → 0.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of plain.observer might be problematic. Click here for more details.
- {plain_observer-0.4.0 → plain_observer-0.5.0}/PKG-INFO +1 -1
- {plain_observer-0.4.0 → plain_observer-0.5.0}/plain/observer/CHANGELOG.md +11 -0
- {plain_observer-0.4.0 → plain_observer-0.5.0}/plain/observer/admin.py +1 -1
- {plain_observer-0.4.0 → plain_observer-0.5.0}/plain/observer/cli.py +1 -1
- {plain_observer-0.4.0 → plain_observer-0.5.0}/plain/observer/core.py +11 -4
- {plain_observer-0.4.0 → plain_observer-0.5.0}/pyproject.toml +1 -1
- {plain_observer-0.4.0 → plain_observer-0.5.0}/.gitignore +0 -0
- {plain_observer-0.4.0 → plain_observer-0.5.0}/LICENSE +0 -0
- {plain_observer-0.4.0 → plain_observer-0.5.0}/README.md +0 -0
- {plain_observer-0.4.0 → plain_observer-0.5.0}/plain/observer/README.md +0 -0
- {plain_observer-0.4.0 → plain_observer-0.5.0}/plain/observer/__init__.py +0 -0
- {plain_observer-0.4.0 → plain_observer-0.5.0}/plain/observer/config.py +0 -0
- {plain_observer-0.4.0 → plain_observer-0.5.0}/plain/observer/default_settings.py +0 -0
- {plain_observer-0.4.0 → plain_observer-0.5.0}/plain/observer/migrations/0001_initial.py +0 -0
- {plain_observer-0.4.0 → plain_observer-0.5.0}/plain/observer/migrations/0002_trace_share_created_at_trace_share_id_trace_summary_and_more.py +0 -0
- {plain_observer-0.4.0 → plain_observer-0.5.0}/plain/observer/migrations/0003_span_plainobserv_span_id_e7ade3_idx.py +0 -0
- {plain_observer-0.4.0 → plain_observer-0.5.0}/plain/observer/migrations/__init__.py +0 -0
- {plain_observer-0.4.0 → plain_observer-0.5.0}/plain/observer/models.py +0 -0
- {plain_observer-0.4.0 → plain_observer-0.5.0}/plain/observer/otel.py +0 -0
- {plain_observer-0.4.0 → plain_observer-0.5.0}/plain/observer/templates/observer/trace.html +0 -0
- {plain_observer-0.4.0 → plain_observer-0.5.0}/plain/observer/templates/observer/trace_detail.html +0 -0
- {plain_observer-0.4.0 → plain_observer-0.5.0}/plain/observer/templates/observer/trace_share.html +0 -0
- {plain_observer-0.4.0 → plain_observer-0.5.0}/plain/observer/templates/observer/traces.html +0 -0
- {plain_observer-0.4.0 → plain_observer-0.5.0}/plain/observer/templates/toolbar/observer.html +0 -0
- {plain_observer-0.4.0 → plain_observer-0.5.0}/plain/observer/templates/toolbar/observer_button.html +0 -0
- {plain_observer-0.4.0 → plain_observer-0.5.0}/plain/observer/toolbar.py +0 -0
- {plain_observer-0.4.0 → plain_observer-0.5.0}/plain/observer/urls.py +0 -0
- {plain_observer-0.4.0 → plain_observer-0.5.0}/plain/observer/views.py +0 -0
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# plain-observer changelog
|
|
2
2
|
|
|
3
|
+
## [0.5.0](https://github.com/dropseed/plain/releases/plain-observer@0.5.0) (2025-09-03)
|
|
4
|
+
|
|
5
|
+
### What's changed
|
|
6
|
+
|
|
7
|
+
- Extended observer summary mode cookie duration from 1 day to 1 week for improved user experience ([bbe8a8a](https://github.com/dropseed/plain/commit/bbe8a8ad54))
|
|
8
|
+
- Changed admin navigation icon for Spans from "diagram-3" to "activity" ([2aac07d](https://github.com/dropseed/plain/commit/2aac07de4e))
|
|
9
|
+
|
|
10
|
+
### Upgrade instructions
|
|
11
|
+
|
|
12
|
+
- No changes required
|
|
13
|
+
|
|
3
14
|
## [0.4.0](https://github.com/dropseed/plain/releases/plain-observer@0.4.0) (2025-08-27)
|
|
4
15
|
|
|
5
16
|
### What's changed
|
|
@@ -13,7 +13,8 @@ class Observer:
|
|
|
13
13
|
"""Central class for managing observer state and operations."""
|
|
14
14
|
|
|
15
15
|
COOKIE_NAME = "observer"
|
|
16
|
-
|
|
16
|
+
SUMMARY_COOKIE_DURATION = 60 * 60 * 24 * 7 # 1 week in seconds
|
|
17
|
+
PERSIST_COOKIE_DURATION = 60 * 60 * 24 # 1 day in seconds
|
|
17
18
|
|
|
18
19
|
def __init__(self, request):
|
|
19
20
|
self.request = request
|
|
@@ -41,19 +42,25 @@ class Observer:
|
|
|
41
42
|
def enable_summary_mode(self, response):
|
|
42
43
|
"""Enable summary mode (real-time monitoring, no DB export)."""
|
|
43
44
|
response.set_signed_cookie(
|
|
44
|
-
self.COOKIE_NAME,
|
|
45
|
+
self.COOKIE_NAME,
|
|
46
|
+
ObserverMode.SUMMARY.value,
|
|
47
|
+
max_age=self.SUMMARY_COOKIE_DURATION,
|
|
45
48
|
)
|
|
46
49
|
|
|
47
50
|
def enable_persist_mode(self, response):
|
|
48
51
|
"""Enable full persist mode (real-time monitoring + DB export)."""
|
|
49
52
|
response.set_signed_cookie(
|
|
50
|
-
self.COOKIE_NAME,
|
|
53
|
+
self.COOKIE_NAME,
|
|
54
|
+
ObserverMode.PERSIST.value,
|
|
55
|
+
max_age=self.PERSIST_COOKIE_DURATION,
|
|
51
56
|
)
|
|
52
57
|
|
|
53
58
|
def disable(self, response):
|
|
54
59
|
"""Disable observer by setting cookie to disabled."""
|
|
55
60
|
response.set_signed_cookie(
|
|
56
|
-
self.COOKIE_NAME,
|
|
61
|
+
self.COOKIE_NAME,
|
|
62
|
+
ObserverMode.DISABLED.value,
|
|
63
|
+
max_age=self.PERSIST_COOKIE_DURATION,
|
|
57
64
|
)
|
|
58
65
|
|
|
59
66
|
def get_current_trace_summary(self):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{plain_observer-0.4.0 → plain_observer-0.5.0}/plain/observer/templates/observer/trace_detail.html
RENAMED
|
File without changes
|
{plain_observer-0.4.0 → plain_observer-0.5.0}/plain/observer/templates/observer/trace_share.html
RENAMED
|
File without changes
|
|
File without changes
|
{plain_observer-0.4.0 → plain_observer-0.5.0}/plain/observer/templates/toolbar/observer.html
RENAMED
|
File without changes
|
{plain_observer-0.4.0 → plain_observer-0.5.0}/plain/observer/templates/toolbar/observer_button.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|