diff --git a/docs/platforms/python/tracing/instrumentation/custom-instrumentation/caches-module.mdx b/docs/platforms/python/tracing/instrumentation/custom-instrumentation/caches-module.mdx index 550698b26a1f4..29ae19fd7f3b1 100644 --- a/docs/platforms/python/tracing/instrumentation/custom-instrumentation/caches-module.mdx +++ b/docs/platforms/python/tracing/instrumentation/custom-instrumentation/caches-module.mdx @@ -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) ```