Skip to content

Commit

Permalink
Merge pull request #96 from noam-stein/fix-a-small-bug
Browse files Browse the repository at this point in the history
add check if the app prefix exists
  • Loading branch information
tredman authored Jan 23, 2020
2 parents a5ae7b3 + 4d874f2 commit 2d2b4c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion beeline/trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ def add_rollup_field(self, name, value):

def add_trace_field(self, name, value):
# prefix with app to avoid key conflicts
key = "app.%s" % name
# add the app prefix if it's missing
if not name.startswith("app."):
key = "app.%s" % name
# also add to current span
self.add_context_field(key, value)

Expand Down

0 comments on commit 2d2b4c1

Please sign in to comment.