plain.observer 0.3.6__py3-none-any.whl → 0.4.0__py3-none-any.whl

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.

@@ -1,5 +1,25 @@
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
+
13
+ ## [0.3.7](https://github.com/dropseed/plain/releases/plain-observer@0.3.7) (2025-08-22)
14
+
15
+ ### What's changed
16
+
17
+ - Improved admin interface code organization by reordering navigation icon and model field declarations ([5a6479a](https://github.com/dropseed/plain/commit/5a6479ac79))
18
+
19
+ ### Upgrade instructions
20
+
21
+ - No changes required
22
+
3
23
  ## [0.3.6](https://github.com/dropseed/plain/releases/plain-observer@0.3.6) (2025-07-31)
4
24
 
5
25
  ### What's changed
plain/observer/admin.py 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
 
@@ -16,8 +12,8 @@ from .models import Span, Trace
16
12
  class TraceViewset(AdminViewset):
17
13
  class ListView(AdminModelListView):
18
14
  nav_section = "Observer"
19
- model = Trace
20
15
  nav_icon = "activity"
16
+ model = Trace
21
17
  fields = [
22
18
  "trace_id",
23
19
  "request_id",
@@ -40,8 +36,8 @@ class TraceViewset(AdminViewset):
40
36
  class SpanViewset(AdminViewset):
41
37
  class ListView(AdminModelListView):
42
38
  nav_section = "Observer"
43
- model = Span
44
39
  nav_icon = "diagram-3"
40
+ model = Span
45
41
  fields = [
46
42
  "name",
47
43
  "kind",
@@ -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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain.observer
3
- Version: 0.3.6
3
+ Version: 0.4.0
4
4
  Summary: On-page telemetry and observability tools for Plain.
5
5
  Author-email: Dave Gaeddert <dave.gaeddert@dropseed.dev>
6
6
  License-Expression: BSD-3-Clause
@@ -1,13 +1,14 @@
1
- plain/observer/CHANGELOG.md,sha256=NWvfWKdJKWHQBvl0sfuH2lBty2JWmqedlwSr8p0UtDQ,5573
1
+ plain/observer/CHANGELOG.md,sha256=L7fXyg6SnsDYpkefMWe1l91IdYx5_hk45cIdSqZI118,6273
2
2
  plain/observer/README.md,sha256=39RA17fgcyOkqeIWBOAg4Be6YZjoiDzK5PVOG-nseuY,988
3
3
  plain/observer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- plain/observer/admin.py,sha256=Csvd5V9F5u0zksWpbpISY_NlBJa-0TptSX_Kn652WRc,2719
4
+ plain/observer/admin.py,sha256=Ku3fEeV3ftuGpLyXY3segKZ_9BJNqapIT3XI-gz9i2c,2097
5
5
  plain/observer/cli.py,sha256=oP_aeno-xYQ2YemQVNFwhmLevDdkf1uLRk-wpOUxqdU,20640
6
6
  plain/observer/config.py,sha256=FuJi1jiDSvOTcmP-6Ea4OlGZt5cRf4iTp1e0dgpJ45E,1494
7
7
  plain/observer/core.py,sha256=D9vX0GP8JBB8-NFAKrOwPSHl_wdZo1h0A5C6xKsJVjA,2245
8
8
  plain/observer/default_settings.py,sha256=JN2jT2wfa6f80EqU0p4Ox_47xyxL-Ym5-_pftY7xj2U,197
9
9
  plain/observer/models.py,sha256=ZHu5SLWEpb4wOqQelGqAFmwSORCLH2H7T9GUYAoeLN0,13118
10
10
  plain/observer/otel.py,sha256=9OUvAJfEXBVuFIIs3CZZ8IYHu-QxRFklbPBtEVHHz54,14645
11
+ plain/observer/toolbar.py,sha256=He7SqjED-7smLDWoomZ9df35qN4WcslNXi5eaO7X4lY,617
11
12
  plain/observer/urls.py,sha256=oLJoDjB7YMUx8z-MGql_xXSXkfacVKFp-aHNXaKzs38,376
12
13
  plain/observer/views.py,sha256=bPBByjs1ZlsN-9wgiO4OqQYR9uPXBYnasqV2ZZLJU0Q,4626
13
14
  plain/observer/migrations/0001_initial.py,sha256=HVoSrd5V-IOqD1adADIAzqMH8xMlPwyLOFH6JcGFniI,3312
@@ -20,7 +21,7 @@ plain/observer/templates/observer/trace_share.html,sha256=HrYLti5BpX96-6Bm_37OOb
20
21
  plain/observer/templates/observer/traces.html,sha256=cFnlIuCf6XJEpHRD2_yfVmPDGZfiqMq6Cg-iMlT3CWY,22184
21
22
  plain/observer/templates/toolbar/observer.html,sha256=uaDKiWR7EYqC1kEXE-uHDlE7nfFEMR_zmOgvlKwQHJ4,1365
22
23
  plain/observer/templates/toolbar/observer_button.html,sha256=FMBJHKMGqpHWs-3Ei2PBCdVYZ_6vFw6-eKH_i4jQu-Q,1215
23
- plain_observer-0.3.6.dist-info/METADATA,sha256=DYTIH8zQUCyy6EyVidmy8GfbBEeK7t1HbRhHmOj1ljg,1386
24
- plain_observer-0.3.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
25
- plain_observer-0.3.6.dist-info/licenses/LICENSE,sha256=YZdq6Pz8ivjs97eSVLRmoGDI1hjEikX6N49DfM0DWio,1500
26
- plain_observer-0.3.6.dist-info/RECORD,,
24
+ plain_observer-0.4.0.dist-info/METADATA,sha256=hEIkYkPwnI3sKUTCP6_bP37n7Rq17E9IntyPl_bVt4w,1386
25
+ plain_observer-0.4.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
26
+ plain_observer-0.4.0.dist-info/licenses/LICENSE,sha256=YZdq6Pz8ivjs97eSVLRmoGDI1hjEikX6N49DfM0DWio,1500
27
+ plain_observer-0.4.0.dist-info/RECORD,,