@@ -2,7 +2,7 @@ use super::{Cas, SwapError};
2
2
use anyhow:: { Context , Result } ;
3
3
use spin_core:: { async_trait, wasmtime:: component:: Resource } ;
4
4
use spin_resource_table:: Table ;
5
- use spin_telemetry:: traces:: { self , Fault } ;
5
+ use spin_telemetry:: traces:: { self , Blame } ;
6
6
use spin_world:: v2:: key_value;
7
7
use spin_world:: wasi:: keyvalue as wasi_keyvalue;
8
8
use std:: { collections:: HashSet , sync:: Arc } ;
@@ -72,7 +72,7 @@ impl KeyValueDispatch {
72
72
pub fn get_store < T : ' static > ( & self , store : Resource < T > ) -> anyhow:: Result < & Arc < dyn Store > > {
73
73
let res = self . stores . get ( store. rep ( ) ) . context ( "invalid store" ) ;
74
74
if let Err ( err) = & res {
75
- traces:: mark_as_error ( err, Some ( Fault :: Host ) ) ;
75
+ traces:: mark_as_error ( err, Some ( Blame :: Host ) ) ;
76
76
}
77
77
res
78
78
}
@@ -187,11 +187,11 @@ impl key_value::HostStore for KeyValueDispatch {
187
187
188
188
/// Make sure that infrastructure related errors are tracked in the current span.
189
189
fn track_error_on_span ( err : Error ) -> Error {
190
- let fault = match err {
191
- Error :: NoSuchStore | Error :: AccessDenied => Fault :: Guest ,
192
- Error :: StoreTableFull | Error :: Other ( _) => Fault :: Host ,
190
+ let blame = match err {
191
+ Error :: NoSuchStore | Error :: AccessDenied => Blame :: Guest ,
192
+ Error :: StoreTableFull | Error :: Other ( _) => Blame :: Host ,
193
193
} ;
194
- traces:: mark_as_error ( & err, Some ( fault ) ) ;
194
+ traces:: mark_as_error ( & err, Some ( blame ) ) ;
195
195
err
196
196
}
197
197
0 commit comments