Skip to content

Commit

Permalink
typo: correct the if else in the get example (#10950)
Browse files Browse the repository at this point in the history
  • Loading branch information
martient authored Aug 6, 2024
1 parent ccd3fce commit d601c3a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ with sentry_sdk.start_span(op="cache.get") as span:

# Optionally also add the size of the value you retrieved
span.set_data("cache.item_size", len(value))
else
else:
# If you could not retrieve a value, it was a miss
span.set_data("cache.hit", False)
```
Expand Down

0 comments on commit d601c3a

Please sign in to comment.