plain.observer 0.2.0__tar.gz → 0.3.1__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.2.0 → plain_observer-0.3.1}/PKG-INFO +1 -1
- {plain_observer-0.2.0 → plain_observer-0.3.1}/plain/observer/CHANGELOG.md +22 -0
- {plain_observer-0.2.0 → plain_observer-0.3.1}/plain/observer/admin.py +12 -6
- {plain_observer-0.2.0 → plain_observer-0.3.1}/plain/observer/migrations/0001_initial.py +2 -2
- {plain_observer-0.2.0 → plain_observer-0.3.1}/pyproject.toml +1 -1
- {plain_observer-0.2.0 → plain_observer-0.3.1}/.gitignore +0 -0
- {plain_observer-0.2.0 → plain_observer-0.3.1}/LICENSE +0 -0
- {plain_observer-0.2.0 → plain_observer-0.3.1}/README.md +0 -0
- {plain_observer-0.2.0 → plain_observer-0.3.1}/plain/observer/README.md +0 -0
- {plain_observer-0.2.0 → plain_observer-0.3.1}/plain/observer/__init__.py +0 -0
- {plain_observer-0.2.0 → plain_observer-0.3.1}/plain/observer/cli.py +0 -0
- {plain_observer-0.2.0 → plain_observer-0.3.1}/plain/observer/config.py +0 -0
- {plain_observer-0.2.0 → plain_observer-0.3.1}/plain/observer/core.py +0 -0
- {plain_observer-0.2.0 → plain_observer-0.3.1}/plain/observer/default_settings.py +0 -0
- {plain_observer-0.2.0 → plain_observer-0.3.1}/plain/observer/migrations/0002_trace_share_created_at_trace_share_id_trace_summary_and_more.py +0 -0
- {plain_observer-0.2.0 → plain_observer-0.3.1}/plain/observer/migrations/__init__.py +0 -0
- {plain_observer-0.2.0 → plain_observer-0.3.1}/plain/observer/models.py +0 -0
- {plain_observer-0.2.0 → plain_observer-0.3.1}/plain/observer/otel.py +0 -0
- {plain_observer-0.2.0 → plain_observer-0.3.1}/plain/observer/templates/observer/trace.html +0 -0
- {plain_observer-0.2.0 → plain_observer-0.3.1}/plain/observer/templates/observer/trace_detail.html +0 -0
- {plain_observer-0.2.0 → plain_observer-0.3.1}/plain/observer/templates/observer/trace_share.html +0 -0
- {plain_observer-0.2.0 → plain_observer-0.3.1}/plain/observer/templates/observer/traces.html +0 -0
- {plain_observer-0.2.0 → plain_observer-0.3.1}/plain/observer/templates/toolbar/observer.html +0 -0
- {plain_observer-0.2.0 → plain_observer-0.3.1}/plain/observer/templates/toolbar/observer_button.html +0 -0
- {plain_observer-0.2.0 → plain_observer-0.3.1}/plain/observer/urls.py +0 -0
- {plain_observer-0.2.0 → plain_observer-0.3.1}/plain/observer/views.py +0 -0
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# plain-observer changelog
|
|
2
2
|
|
|
3
|
+
## [0.3.1](https://github.com/dropseed/plain/releases/plain-observer@0.3.1) (2025-07-23)
|
|
4
|
+
|
|
5
|
+
### What's changed
|
|
6
|
+
|
|
7
|
+
- Added delete actions to the admin interface for both Traces and Spans, allowing bulk deletion of selected items ([0d85670](https://github.com/dropseed/plain/commit/0d85670412))
|
|
8
|
+
- Added bootstrap icons to admin navigation (activity icon for Traces, diagram-3 icon for Spans) ([9e9f8b0](https://github.com/dropseed/plain/commit/9e9f8b0e2c))
|
|
9
|
+
|
|
10
|
+
### Upgrade instructions
|
|
11
|
+
|
|
12
|
+
- No changes required
|
|
13
|
+
|
|
14
|
+
## [0.3.0](https://github.com/dropseed/plain/releases/plain-observer@0.3.0) (2025-07-22)
|
|
15
|
+
|
|
16
|
+
### What's changed
|
|
17
|
+
|
|
18
|
+
- Database models now use the new `PrimaryKeyField` instead of `BigAutoField` for primary keys ([4b8fa6a](https://github.com/dropseed/plain/commit/4b8fa6aef1))
|
|
19
|
+
- Admin interface updated to use `id` instead of `pk` for ordering and references ([4b8fa6a](https://github.com/dropseed/plain/commit/4b8fa6aef1))
|
|
20
|
+
|
|
21
|
+
### Upgrade instructions
|
|
22
|
+
|
|
23
|
+
- No changes required
|
|
24
|
+
|
|
3
25
|
## [0.2.0](https://github.com/dropseed/plain/releases/plain-observer@0.2.0) (2025-07-21)
|
|
4
26
|
|
|
5
27
|
### What's changed
|
|
@@ -17,6 +17,7 @@ class TraceViewset(AdminViewset):
|
|
|
17
17
|
class ListView(AdminModelListView):
|
|
18
18
|
nav_section = "Observer"
|
|
19
19
|
model = Trace
|
|
20
|
+
nav_icon = "activity"
|
|
20
21
|
fields = [
|
|
21
22
|
"trace_id",
|
|
22
23
|
"request_id",
|
|
@@ -25,12 +26,11 @@ class TraceViewset(AdminViewset):
|
|
|
25
26
|
"start_time",
|
|
26
27
|
]
|
|
27
28
|
allow_global_search = False
|
|
28
|
-
|
|
29
|
-
# actions = ["Delete"]
|
|
29
|
+
actions = ["Delete"]
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
def perform_action(self, action: str, target_ids: list):
|
|
32
|
+
if action == "Delete":
|
|
33
|
+
Trace.objects.filter(id__in=target_ids).delete()
|
|
34
34
|
|
|
35
35
|
class DetailView(AdminModelDetailView):
|
|
36
36
|
model = Trace
|
|
@@ -41,6 +41,7 @@ class SpanViewset(AdminViewset):
|
|
|
41
41
|
class ListView(AdminModelListView):
|
|
42
42
|
nav_section = "Observer"
|
|
43
43
|
model = Span
|
|
44
|
+
nav_icon = "diagram-3"
|
|
44
45
|
fields = [
|
|
45
46
|
"name",
|
|
46
47
|
"kind",
|
|
@@ -49,10 +50,15 @@ class SpanViewset(AdminViewset):
|
|
|
49
50
|
"parent_id",
|
|
50
51
|
"start_time",
|
|
51
52
|
]
|
|
52
|
-
queryset_order = ["-
|
|
53
|
+
queryset_order = ["-id"]
|
|
53
54
|
allow_global_search = False
|
|
54
55
|
displays = ["Parents only"]
|
|
55
56
|
search_fields = ["name", "span_id", "parent_id"]
|
|
57
|
+
actions = ["Delete"]
|
|
58
|
+
|
|
59
|
+
def perform_action(self, action: str, target_ids: list):
|
|
60
|
+
if action == "Delete":
|
|
61
|
+
Span.objects.filter(id__in=target_ids).delete()
|
|
56
62
|
|
|
57
63
|
def get_objects(self):
|
|
58
64
|
return (
|
|
@@ -14,7 +14,7 @@ class Migration(migrations.Migration):
|
|
|
14
14
|
migrations.CreateModel(
|
|
15
15
|
name="Trace",
|
|
16
16
|
fields=[
|
|
17
|
-
("id", models.
|
|
17
|
+
("id", models.PrimaryKeyField()),
|
|
18
18
|
("trace_id", models.CharField(max_length=255)),
|
|
19
19
|
("start_time", models.DateTimeField()),
|
|
20
20
|
("end_time", models.DateTimeField()),
|
|
@@ -39,7 +39,7 @@ class Migration(migrations.Migration):
|
|
|
39
39
|
migrations.CreateModel(
|
|
40
40
|
name="Span",
|
|
41
41
|
fields=[
|
|
42
|
-
("id", models.
|
|
42
|
+
("id", models.PrimaryKeyField()),
|
|
43
43
|
("span_id", models.CharField(max_length=255)),
|
|
44
44
|
("name", models.CharField(max_length=255)),
|
|
45
45
|
("kind", models.CharField(max_length=50)),
|
|
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.2.0 → plain_observer-0.3.1}/plain/observer/templates/observer/trace_detail.html
RENAMED
|
File without changes
|
{plain_observer-0.2.0 → plain_observer-0.3.1}/plain/observer/templates/observer/trace_share.html
RENAMED
|
File without changes
|
|
File without changes
|
{plain_observer-0.2.0 → plain_observer-0.3.1}/plain/observer/templates/toolbar/observer.html
RENAMED
|
File without changes
|
{plain_observer-0.2.0 → plain_observer-0.3.1}/plain/observer/templates/toolbar/observer_button.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|