We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0409fc commit b3c298fCopy full SHA for b3c298f
1 file changed
opencensus/trace/ext/django/middleware.py
@@ -101,7 +101,7 @@ def _set_django_attributes(span, request):
101
span.add_attribute('django.user.id', str(user_id))
102
103
if user_name is not None:
104
- span.add_attribute('django.user.name', user_name)
+ span.add_attribute('django.user.name', str(user_name))
105
106
107
class OpencensusMiddleware(MiddlewareMixin):
@@ -207,7 +207,7 @@ def process_request(self, request):
207
attribute_value=request.method)
208
tracer.add_attribute_to_current_span(
209
attribute_key=HTTP_URL,
210
- attribute_value=request.path)
+ attribute_value=str(request.path))
211
212
# Add the span to thread local
213
# in some cases (exceptions, timeouts) currentspan in
0 commit comments