Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
tracing: Add some request details to the trace as tags
Browse files Browse the repository at this point in the history
  • Loading branch information
bsimpson63 committed Jan 19, 2017
1 parent 1039d35 commit 866f39b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions r2/r2/controllers/reddit_base.py
Expand Up @@ -1031,6 +1031,10 @@ def post(self):

c.request_timer.intermediate("post")

# add tags to the trace
c.trace.set_tag("user", c.user._fullname if c.user_is_loggedin else None)
c.trace.set_tag("render_style", c.render_style)

# push data to statsd
baseplate_integration.finish_server_span()
c.request_timer.stop()
Expand Down

0 comments on commit 866f39b

Please sign in to comment.