Skip to content

Commit

Permalink
update custom attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
bpschmitt committed Jun 6, 2024
1 parent 6b71278 commit bf23114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/recommendationservice/recommendation_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def get_product_list(request_product_ids):
if random.random() < 0.5 or first_run:
first_run = False
# span.set_attribute("app.cache_hit", False)
ewrelic.agent.add_custom_attribute("cache_hit", "False")
newrelic.agent.add_custom_attribute("cache_hit", "False")
logger.info("get_product_list: cache miss")
cat_response = product_catalog_stub.ListProducts(demo_pb2.Empty())
response_ids = [x.id for x in cat_response.products]
Expand Down

0 comments on commit bf23114

Please sign in to comment.