@@ -26,8 +26,8 @@ public static void Send(string source, PID target, object message, ActivitySetup
2626 }
2727 catch ( Exception ex )
2828 {
29- activity ? . RecordException ( ex ) ;
30- activity ? . SetStatus ( Status . Error ) ;
29+ activity ? . AddException ( ex ) ;
30+ activity ? . SetStatus ( ActivityStatusCode . Error ) ;
3131
3232 throw ;
3333 }
@@ -56,8 +56,8 @@ public static PID SpawnNamed(string source, ActivitySetup spawnActivitySetup, Fu
5656 }
5757 catch ( Exception ex )
5858 {
59- activity ? . RecordException ( ex ) ;
60- activity ? . SetStatus ( Status . Error ) ;
59+ activity ? . AddException ( ex ) ;
60+ activity ? . SetStatus ( ActivityStatusCode . Error ) ;
6161
6262 throw ;
6363 }
@@ -79,8 +79,8 @@ internal static void Request(string source, PID target, object message, Activity
7979 }
8080 catch ( Exception ex )
8181 {
82- activity ? . RecordException ( ex ) ;
83- activity ? . SetStatus ( Status . Error ) ;
82+ activity ? . AddException ( ex ) ;
83+ activity ? . SetStatus ( ActivityStatusCode . Error ) ;
8484
8585 throw ;
8686 }
@@ -108,8 +108,8 @@ internal static void Request(string source, PID target, object message, PID? sen
108108 }
109109 catch ( Exception ex )
110110 {
111- activity ? . RecordException ( ex ) ;
112- activity ? . SetStatus ( Status . Error ) ;
111+ activity ? . AddException ( ex ) ;
112+ activity ? . SetStatus ( ActivityStatusCode . Error ) ;
113113
114114 throw ;
115115 }
@@ -135,16 +135,16 @@ internal static async Task<T> RequestAsync<T>(string source, PID target, object
135135 catch ( TimeoutException ex )
136136 {
137137 activity ? . SetTag ( ProtoTags . ActionType , nameof ( RequestAsync ) ) ;
138- activity ? . RecordException ( ex ) ;
139- activity ? . SetStatus ( Status . Error ) ;
138+ activity ? . AddException ( ex ) ;
139+ activity ? . SetStatus ( ActivityStatusCode . Error ) ;
140140 activity ? . AddEvent ( new ActivityEvent ( "Request Timeout" ) ) ;
141141
142142 throw ;
143143 }
144144 catch ( Exception ex )
145145 {
146- activity ? . RecordException ( ex ) ;
147- activity ? . SetStatus ( Status . Error ) ;
146+ activity ? . AddException ( ex ) ;
147+ activity ? . SetStatus ( ActivityStatusCode . Error ) ;
148148
149149 throw ;
150150 }
@@ -166,8 +166,8 @@ internal static void Forward(string source, PID target, object message, Activity
166166 }
167167 catch ( Exception ex )
168168 {
169- activity ? . RecordException ( ex ) ;
170- activity ? . SetStatus ( Status . Error ) ;
169+ activity ? . AddException ( ex ) ;
170+ activity ? . SetStatus ( ActivityStatusCode . Error ) ;
171171
172172 throw ;
173173 }
@@ -187,8 +187,8 @@ internal static void Respond(object message,
187187 }
188188 catch ( Exception ex )
189189 {
190- activity ? . RecordException ( ex ) ;
191- activity ? . SetStatus ( Status . Error ) ;
190+ activity ? . AddException ( ex ) ;
191+ activity ? . SetStatus ( ActivityStatusCode . Error ) ;
192192
193193 throw ;
194194 }
@@ -236,8 +236,8 @@ internal static async Task Receive(string source, MessageEnvelope envelope, Acti
236236 }
237237 catch ( Exception ex )
238238 {
239- activity ? . RecordException ( ex ) ;
240- activity ? . SetStatus ( Status . Error ) ;
239+ activity ? . AddException ( ex ) ;
240+ activity ? . SetStatus ( ActivityStatusCode . Error ) ;
241241
242242 throw ;
243243 }
0 commit comments