plain.observer 0.11.2__py3-none-any.whl → 0.12.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,18 @@
1
1
  # plain-observer changelog
2
2
 
3
+ ## [0.12.0](https://github.com/dropseed/plain/releases/plain-observer@0.12.0) (2025-10-24)
4
+
5
+ ### What's changed
6
+
7
+ - Admin viewsets now use `presets` instead of `displays` for predefined queryset filters ([0ecc60f](https://github.com/dropseed/plain/commit/0ecc60f19e))
8
+ - Removed `logger` field from Log admin interface for simplified display ([ae43138](https://github.com/dropseed/plain/commit/ae43138863))
9
+ - Removed `/admin/.*` from default ignored URL patterns, allowing admin pages to be traced ([daadf1a](https://github.com/dropseed/plain/commit/daadf1a53d))
10
+
11
+ ### Upgrade instructions
12
+
13
+ - If you have custom admin viewsets using the `displays` attribute, rename it to `presets`
14
+ - If you reference the `display` property in custom admin code (e.g., `self.display`), rename it to `self.preset`
15
+
3
16
  ## [0.11.2](https://github.com/dropseed/plain/releases/plain-observer@0.11.2) (2025-10-20)
4
17
 
5
18
  ### What's changed
plain/observer/admin.py CHANGED
@@ -53,7 +53,7 @@ class SpanViewset(AdminViewset):
53
53
  ]
54
54
  queryset_order = ["-id"]
55
55
  allow_global_search = False
56
- displays = ["Parents only"]
56
+ presets = ["Parents only"]
57
57
  search_fields = ["name", "span_id", "parent_id"]
58
58
  actions = ["Delete"]
59
59
 
@@ -76,7 +76,7 @@ class SpanViewset(AdminViewset):
76
76
 
77
77
  def get_initial_queryset(self) -> models.QuerySet:
78
78
  queryset = super().get_initial_queryset()
79
- if self.display == "Parents only":
79
+ if self.preset == "Parents only":
80
80
  queryset = queryset.filter(parent_id="")
81
81
  return queryset
82
82
 
@@ -93,15 +93,14 @@ class LogViewset(AdminViewset):
93
93
  fields = [
94
94
  "timestamp",
95
95
  "level",
96
- "logger",
97
96
  "message",
98
97
  "trace",
99
98
  "span",
100
99
  ]
101
100
  queryset_order = ["-timestamp"]
102
101
  allow_global_search = False
103
- search_fields = ["logger", "message", "level"]
104
- filters = ["level", "logger"]
102
+ search_fields = ["message", "level"]
103
+ filters = ["level"]
105
104
  actions = ["Delete selected", "Delete all"]
106
105
 
107
106
  def perform_action(self, action: str, target_ids: Sequence[int]) -> None:
@@ -118,7 +117,6 @@ class LogViewset(AdminViewset):
118
117
  .only(
119
118
  "timestamp",
120
119
  "level",
121
- "logger",
122
120
  "message",
123
121
  "span__span_id",
124
122
  "trace__trace_id",
@@ -1,5 +1,4 @@
1
1
  OBSERVER_IGNORE_URL_PATTERNS: list[str] = [
2
- "/admin/.*",
3
2
  "/assets/.*",
4
3
  "/observer/.*",
5
4
  "/pageviews/.*",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain.observer
3
- Version: 0.11.2
3
+ Version: 0.12.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,12 +1,12 @@
1
1
  plain/observer/AGENTS.md,sha256=w3vqd2VWGliBQl8ohEBOsHyo1KROoUuK10uDr_C5Xeo,334
2
- plain/observer/CHANGELOG.md,sha256=dA51wbVTzcrAY2v-Aq61UXuQudQM_s_M9oHAur0reN0,15120
2
+ plain/observer/CHANGELOG.md,sha256=OhpemfY9b3PUlNaWM5DGzEtQvvOpKV6bbxHWm4EmOss,15913
3
3
  plain/observer/README.md,sha256=39RA17fgcyOkqeIWBOAg4Be6YZjoiDzK5PVOG-nseuY,988
4
4
  plain/observer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- plain/observer/admin.py,sha256=mSwJWfA9svhjZCzwqjD82Fv_iV9iENUtUiefV1s3lSE,3590
5
+ plain/observer/admin.py,sha256=u4F9VYMwDkwzfVgMlLUqwaqDjtsf9RIJppzOA2NXWKc,3516
6
6
  plain/observer/cli.py,sha256=rzESdG8rYH6ILZ_5jA6oR362kCjTlimgzNqng89s2yg,21131
7
7
  plain/observer/config.py,sha256=BJKsKNbfNSYmaxpUAkuR6gDMgNvD9tx19wpo3-1sksA,2542
8
8
  plain/observer/core.py,sha256=9AQFe4pwLpz4w64GG7599rNxuTkMN3eyqsqFNehy8A0,5950
9
- plain/observer/default_settings.py,sha256=JN2jT2wfa6f80EqU0p4Ox_47xyxL-Ym5-_pftY7xj2U,197
9
+ plain/observer/default_settings.py,sha256=dy90FE2v_YFuqDmc87J1PWP_wlw2_fnC5pSwk_GX_QA,180
10
10
  plain/observer/logging.py,sha256=amv5i06ghszoJ192vrZ0zFdnTajazMxei40ltf0kI50,3061
11
11
  plain/observer/models.py,sha256=6hyPAjK-Uq24n-2TkN0eHW8xcDIMUprMAFMY6rlLXiI,18365
12
12
  plain/observer/otel.py,sha256=QbWoSc2KxDDhGfBQeww_uKBy3DL1SCOomvmxzU_yAVM,16902
@@ -28,7 +28,7 @@ plain/observer/templates/observer/partials/log.html,sha256=Vpp0j-GLBfwTBFyZp_cv0
28
28
  plain/observer/templates/observer/partials/span.html,sha256=PaWZONsABwlS7mdKsJlYbhMSOzidq_WyOp6ifvFUgmM,18672
29
29
  plain/observer/templates/toolbar/observer.html,sha256=uaDKiWR7EYqC1kEXE-uHDlE7nfFEMR_zmOgvlKwQHJ4,1365
30
30
  plain/observer/templates/toolbar/observer_button.html,sha256=FMBJHKMGqpHWs-3Ei2PBCdVYZ_6vFw6-eKH_i4jQu-Q,1215
31
- plain_observer-0.11.2.dist-info/METADATA,sha256=qL9iO0y-Mw5v0b1-hKlCJZz9SaL5dwr5gdoPeNy_u4s,1387
32
- plain_observer-0.11.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
33
- plain_observer-0.11.2.dist-info/licenses/LICENSE,sha256=YZdq6Pz8ivjs97eSVLRmoGDI1hjEikX6N49DfM0DWio,1500
34
- plain_observer-0.11.2.dist-info/RECORD,,
31
+ plain_observer-0.12.0.dist-info/METADATA,sha256=xS8eVM5pDt_JoMneFhihJCqiOrA6nWEEl12kgAysCqo,1387
32
+ plain_observer-0.12.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
33
+ plain_observer-0.12.0.dist-info/licenses/LICENSE,sha256=YZdq6Pz8ivjs97eSVLRmoGDI1hjEikX6N49DfM0DWio,1500
34
+ plain_observer-0.12.0.dist-info/RECORD,,