Skip to content

Commit

Permalink
Updated the set_attribute for the activity name to use the same varia…
Browse files Browse the repository at this point in the history
…ble thats used in the span name for consistency

Signed-off-by: Chris Doyle <uk.chris.doyle+cdsre@gmail.com>
  • Loading branch information
cdsre committed Apr 9, 2024
1 parent 00e5293 commit 1812f8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chaostracing/oltp.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def continuous_hypothesis_iteration(self, iteration_index: int, state: Any) -> N
f"activity: {activity_name}", span, start_time=child_start_ts, end_on_exit=False
) as child:
activity = probe["activity"]
child.set_attribute("chaostoolkit.activity.name", activity["name"])
child.set_attribute("chaostoolkit.activity.name", activity_name)
child.set_attribute(
"chaostoolkit.activity.background",
activity.get("background", False),
Expand Down

0 comments on commit 1812f8e

Please sign in to comment.