plain 0.54.0__py3-none-any.whl → 0.54.1__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.
plain/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # plain changelog
2
2
 
3
+ ## [0.54.1](https://github.com/dropseed/plain/releases/plain@0.54.1) (2025-07-20)
4
+
5
+ ### What's changed
6
+
7
+ - Fixed OpenTelemetry route naming to include leading slash for consistency with HTTP paths ([9d77268](https://github.com/dropseed/plain/commit/9d77268988))
8
+
9
+ ### Upgrade instructions
10
+
11
+ - No changes required
12
+
3
13
  ## [0.54.0](https://github.com/dropseed/plain/releases/plain@0.54.0) (2025-07-18)
4
14
 
5
15
  ### What's changed
@@ -142,11 +142,13 @@ class BaseHandler:
142
142
  resolver_match = resolver.resolve(request.path_info)
143
143
 
144
144
  span = trace.get_current_span()
145
- span.set_attribute(http_attributes.HTTP_ROUTE, resolver_match.route)
146
145
 
147
146
  # Route makes a better name
148
147
  if resolver_match.route:
149
- span.update_name(f"{request.method} {resolver_match.route}")
148
+ # Add leading slash for consistency with HTTP paths
149
+ route_with_slash = f"/{resolver_match.route}"
150
+ span.set_attribute(http_attributes.HTTP_ROUTE, route_with_slash)
151
+ span.update_name(f"{request.method} {route_with_slash}")
150
152
 
151
153
  request.resolver_match = resolver_match
152
154
  return resolver_match
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain
3
- Version: 0.54.0
3
+ Version: 0.54.1
4
4
  Summary: A web framework for building products with Python.
5
5
  Author-email: Dave Gaeddert <dave.gaeddert@dropseed.dev>
6
6
  License-File: LICENSE
@@ -1,4 +1,4 @@
1
- plain/CHANGELOG.md,sha256=x8vKNqfNIAeNvkBhz1648Y4zqH3MpfHACrkLW-8F9mk,4907
1
+ plain/CHANGELOG.md,sha256=aLMIJjKzdC_22QdUEhjIy_WBUHj7xZ_6Ub83t3l5jC4,5217
2
2
  plain/README.md,sha256=5BJyKhf0TDanWVbOQyZ3zsi5Lov9xk-LlJYCDWofM6Y,4078
3
3
  plain/__main__.py,sha256=GK39854Lc_LO_JP8DzY9Y2MIQ4cQEl7SXFJy244-lC8,110
4
4
  plain/debug.py,sha256=XdjnXcbPGsi0J2SpHGaLthhYU5AjhBlkHdemaP4sbYY,758
@@ -62,7 +62,7 @@ plain/internal/files/uploadedfile.py,sha256=JRB7T3quQjg-1y3l1ASPxywtSQZhaeMc45uF
62
62
  plain/internal/files/uploadhandler.py,sha256=63_QUwAwfq3bevw79i0S7zt2EB2UBoO7MaauvezaVMY,7198
63
63
  plain/internal/files/utils.py,sha256=xN4HTJXDRdcoNyrL1dFd528MBwodRlHZM8DGTD_oBIg,2646
64
64
  plain/internal/handlers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
65
- plain/internal/handlers/base.py,sha256=odNSI5v5c8WsQjebPeKpKtmEreiFNQrwuG-_lM8mY3E,5882
65
+ plain/internal/handlers/base.py,sha256=GFN5qoGqZmGinz6IOJgRW-dV4_nY5Dwo9L0F7muHvoc,6000
66
66
  plain/internal/handlers/exception.py,sha256=vfha_6-fz6S6VYCP1PMBfue2Gw-_th6jqaTE372fGlw,4809
67
67
  plain/internal/handlers/wsgi.py,sha256=dgPT29t_F9llB-c5RYU3SHxGuZNaZ83xRjOfuOmtOl8,8209
68
68
  plain/internal/middleware/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -149,8 +149,8 @@ plain/views/forms.py,sha256=ESZOXuo6IeYixp1RZvPb94KplkowRiwO2eGJCM6zJI0,2400
149
149
  plain/views/objects.py,sha256=GGbcfg_9fPZ-PiaBwIHG2e__8GfWDR7JQtQ15wTyiHg,5970
150
150
  plain/views/redirect.py,sha256=daq2cQIkdDF78bt43sjuZxRAyJm_t_SKw6tyPmiXPIc,1985
151
151
  plain/views/templates.py,sha256=ivkI7LU7BXDQ0d4Geab96Is4-Cp03KbIntXRT1J8e6I,2139
152
- plain-0.54.0.dist-info/METADATA,sha256=uCFa4LMC3-o4Vbr_ZKT-Kb3DGxAy9xW0UWzrEIk3CBU,4488
153
- plain-0.54.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
154
- plain-0.54.0.dist-info/entry_points.txt,sha256=nn4uKTRRZuEKOJv3810s3jtSMW0Gew7XDYiKIvBRR6M,93
155
- plain-0.54.0.dist-info/licenses/LICENSE,sha256=m0D5O7QoH9l5Vz_rrX_9r-C8d9UNr_ciK6Qwac7o6yo,3175
156
- plain-0.54.0.dist-info/RECORD,,
152
+ plain-0.54.1.dist-info/METADATA,sha256=3IXeMlX4uiemDSz_MkXPNmC4_kMdqfyvEnMg0mTFAzI,4488
153
+ plain-0.54.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
154
+ plain-0.54.1.dist-info/entry_points.txt,sha256=nn4uKTRRZuEKOJv3810s3jtSMW0Gew7XDYiKIvBRR6M,93
155
+ plain-0.54.1.dist-info/licenses/LICENSE,sha256=m0D5O7QoH9l5Vz_rrX_9r-C8d9UNr_ciK6Qwac7o6yo,3175
156
+ plain-0.54.1.dist-info/RECORD,,
File without changes