@@ -2,7 +2,7 @@ use super::{Cas, SwapError};
22use anyhow:: { Context , Result } ;
33use spin_core:: { async_trait, wasmtime:: component:: Resource } ;
44use spin_resource_table:: Table ;
5- use spin_telemetry:: traces:: { self , Fault } ;
5+ use spin_telemetry:: traces:: { self , Blame } ;
66use spin_world:: v2:: key_value;
77use spin_world:: wasi:: keyvalue as wasi_keyvalue;
88use std:: { collections:: HashSet , sync:: Arc } ;
@@ -72,7 +72,7 @@ impl KeyValueDispatch {
7272 pub fn get_store < T : ' static > ( & self , store : Resource < T > ) -> anyhow:: Result < & Arc < dyn Store > > {
7373 let res = self . stores . get ( store. rep ( ) ) . context ( "invalid store" ) ;
7474 if let Err ( err) = & res {
75- traces:: mark_as_error ( err, Some ( Fault :: Host ) ) ;
75+ traces:: mark_as_error ( err, Some ( Blame :: Host ) ) ;
7676 }
7777 res
7878 }
@@ -187,11 +187,11 @@ impl key_value::HostStore for KeyValueDispatch {
187187
188188/// Make sure that infrastructure related errors are tracked in the current span.
189189fn 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 ,
193193 } ;
194- traces:: mark_as_error ( & err, Some ( fault ) ) ;
194+ traces:: mark_as_error ( & err, Some ( blame ) ) ;
195195 err
196196}
197197
0 commit comments