File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
instrumentation/opentelemetry-instrumentation-django/src/opentelemetry/instrumentation/django/middleware Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
19
19
([ #1645 ] ( https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1645 ) )
20
20
- Add ` excluded_urls ` functionality to ` urllib ` and ` urllib3 ` instrumentations
21
21
([ #1733 ] ( https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1733 ) )
22
+ - Make Django request span attributes available for ` start_span ` .
23
+ ([ #1730 ] ( https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1730 ) )
22
24
23
25
### Fixed
24
26
Original file line number Diff line number Diff line change @@ -212,6 +212,7 @@ def process_request(self, request):
212
212
carrier_getter = wsgi_getter
213
213
collect_request_attributes = wsgi_collect_request_attributes
214
214
215
+ attributes = collect_request_attributes (carrier )
215
216
span , token = _start_internal_or_server_span (
216
217
tracer = self ._tracer ,
217
218
span_name = self ._get_span_name (request ),
@@ -220,9 +221,9 @@ def process_request(self, request):
220
221
),
221
222
context_carrier = carrier ,
222
223
context_getter = carrier_getter ,
224
+ attributes = attributes ,
223
225
)
224
226
225
- attributes = collect_request_attributes (carrier )
226
227
active_requests_count_attrs = _parse_active_request_count_attrs (
227
228
attributes
228
229
)
You can’t perform that action at this time.
0 commit comments