plain.observer 0.3.7__tar.gz → 0.4.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.3.7 → plain_observer-0.4.0}/PKG-INFO +1 -1
- {plain_observer-0.3.7 → plain_observer-0.4.0}/plain/observer/CHANGELOG.md +10 -0
- {plain_observer-0.3.7 → plain_observer-0.4.0}/plain/observer/admin.py +0 -21
- plain_observer-0.4.0/plain/observer/toolbar.py +22 -0
- {plain_observer-0.3.7 → plain_observer-0.4.0}/pyproject.toml +1 -1
- {plain_observer-0.3.7 → plain_observer-0.4.0}/.gitignore +0 -0
- {plain_observer-0.3.7 → plain_observer-0.4.0}/LICENSE +0 -0
- {plain_observer-0.3.7 → plain_observer-0.4.0}/README.md +0 -0
- {plain_observer-0.3.7 → plain_observer-0.4.0}/plain/observer/README.md +0 -0
- {plain_observer-0.3.7 → plain_observer-0.4.0}/plain/observer/__init__.py +0 -0
- {plain_observer-0.3.7 → plain_observer-0.4.0}/plain/observer/cli.py +0 -0
- {plain_observer-0.3.7 → plain_observer-0.4.0}/plain/observer/config.py +0 -0
- {plain_observer-0.3.7 → plain_observer-0.4.0}/plain/observer/core.py +0 -0
- {plain_observer-0.3.7 → plain_observer-0.4.0}/plain/observer/default_settings.py +0 -0
- {plain_observer-0.3.7 → plain_observer-0.4.0}/plain/observer/migrations/0001_initial.py +0 -0
- {plain_observer-0.3.7 → plain_observer-0.4.0}/plain/observer/migrations/0002_trace_share_created_at_trace_share_id_trace_summary_and_more.py +0 -0
- {plain_observer-0.3.7 → plain_observer-0.4.0}/plain/observer/migrations/0003_span_plainobserv_span_id_e7ade3_idx.py +0 -0
- {plain_observer-0.3.7 → plain_observer-0.4.0}/plain/observer/migrations/__init__.py +0 -0
- {plain_observer-0.3.7 → plain_observer-0.4.0}/plain/observer/models.py +0 -0
- {plain_observer-0.3.7 → plain_observer-0.4.0}/plain/observer/otel.py +0 -0
- {plain_observer-0.3.7 → plain_observer-0.4.0}/plain/observer/templates/observer/trace.html +0 -0
- {plain_observer-0.3.7 → plain_observer-0.4.0}/plain/observer/templates/observer/trace_detail.html +0 -0
- {plain_observer-0.3.7 → plain_observer-0.4.0}/plain/observer/templates/observer/trace_share.html +0 -0
- {plain_observer-0.3.7 → plain_observer-0.4.0}/plain/observer/templates/observer/traces.html +0 -0
- {plain_observer-0.3.7 → plain_observer-0.4.0}/plain/observer/templates/toolbar/observer.html +0 -0
- {plain_observer-0.3.7 → plain_observer-0.4.0}/plain/observer/templates/toolbar/observer_button.html +0 -0
- {plain_observer-0.3.7 → plain_observer-0.4.0}/plain/observer/urls.py +0 -0
- {plain_observer-0.3.7 → plain_observer-0.4.0}/plain/observer/views.py +0 -0
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# plain-observer changelog
|
|
2
2
|
|
|
3
|
+
## [0.4.0](https://github.com/dropseed/plain/releases/plain-observer@0.4.0) (2025-08-27)
|
|
4
|
+
|
|
5
|
+
### What's changed
|
|
6
|
+
|
|
7
|
+
- Toolbar functionality has been moved to a new `plain.toolbar` package, with observer-specific toolbar code now in a dedicated `toolbar.py` file ([e49d54b](https://github.com/dropseed/plain/commit/e49d54bfea))
|
|
8
|
+
|
|
9
|
+
### Upgrade instructions
|
|
10
|
+
|
|
11
|
+
- No changes required
|
|
12
|
+
|
|
3
13
|
## [0.3.7](https://github.com/dropseed/plain/releases/plain-observer@0.3.7) (2025-08-22)
|
|
4
14
|
|
|
5
15
|
### What's changed
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
from functools import cached_property
|
|
2
|
-
|
|
3
|
-
from plain.admin.toolbar import ToolbarPanel, register_toolbar_panel
|
|
4
1
|
from plain.admin.views import (
|
|
5
2
|
AdminModelDetailView,
|
|
6
3
|
AdminModelListView,
|
|
@@ -8,7 +5,6 @@ from plain.admin.views import (
|
|
|
8
5
|
register_viewset,
|
|
9
6
|
)
|
|
10
7
|
|
|
11
|
-
from .core import Observer
|
|
12
8
|
from .models import Span, Trace
|
|
13
9
|
|
|
14
10
|
|
|
@@ -81,20 +77,3 @@ class SpanViewset(AdminViewset):
|
|
|
81
77
|
|
|
82
78
|
class DetailView(AdminModelDetailView):
|
|
83
79
|
model = Span
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
@register_toolbar_panel
|
|
87
|
-
class ObserverToolbarPanel(ToolbarPanel):
|
|
88
|
-
name = "Observer"
|
|
89
|
-
template_name = "toolbar/observer.html"
|
|
90
|
-
button_template_name = "toolbar/observer_button.html"
|
|
91
|
-
|
|
92
|
-
@cached_property
|
|
93
|
-
def observer(self):
|
|
94
|
-
"""Get the Observer instance for this request."""
|
|
95
|
-
return Observer(self.request)
|
|
96
|
-
|
|
97
|
-
def get_template_context(self):
|
|
98
|
-
context = super().get_template_context()
|
|
99
|
-
context["observer"] = self.observer
|
|
100
|
-
return context
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from functools import cached_property
|
|
2
|
+
|
|
3
|
+
from plain.toolbar import ToolbarPanel, register_toolbar_panel
|
|
4
|
+
|
|
5
|
+
from .core import Observer
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@register_toolbar_panel
|
|
9
|
+
class ObserverToolbarPanel(ToolbarPanel):
|
|
10
|
+
name = "Observer"
|
|
11
|
+
template_name = "toolbar/observer.html"
|
|
12
|
+
button_template_name = "toolbar/observer_button.html"
|
|
13
|
+
|
|
14
|
+
@cached_property
|
|
15
|
+
def observer(self):
|
|
16
|
+
"""Get the Observer instance for this request."""
|
|
17
|
+
return Observer(self.request)
|
|
18
|
+
|
|
19
|
+
def get_template_context(self):
|
|
20
|
+
context = super().get_template_context()
|
|
21
|
+
context["observer"] = self.observer
|
|
22
|
+
return context
|
|
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
|
|
File without changes
|
|
File without changes
|
{plain_observer-0.3.7 → plain_observer-0.4.0}/plain/observer/templates/observer/trace_detail.html
RENAMED
|
File without changes
|
{plain_observer-0.3.7 → plain_observer-0.4.0}/plain/observer/templates/observer/trace_share.html
RENAMED
|
File without changes
|
|
File without changes
|
{plain_observer-0.3.7 → plain_observer-0.4.0}/plain/observer/templates/toolbar/observer.html
RENAMED
|
File without changes
|
{plain_observer-0.3.7 → plain_observer-0.4.0}/plain/observer/templates/toolbar/observer_button.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|