File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
opentelemetry-etw-logs/src
opentelemetry-user-events-logs/src/logs Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ impl std::fmt::Debug for dyn EventNameCallback {
6565 }
6666}
6767
68- fn validate_etw_event_name ( event_name : & str ) -> Result < ( ) , Box < dyn Error > > {
68+ fn validate_etw_event_name ( event_name : & str ) -> Result < ( ) , Box < dyn Error + Send + Sync + ' static > > {
6969 if event_name. is_empty ( ) {
7070 return Err ( "Event name cannot be empty." . into ( ) ) ;
7171 }
Original file line number Diff line number Diff line change @@ -154,13 +154,13 @@ impl ProcessorBuilder {
154154 }
155155
156156 /// Builds the processor with given options, returning `Error` if it fails.
157- pub fn build ( self ) -> Result < Processor , Box < dyn Error > > {
157+ pub fn build ( self ) -> Result < Processor , Box < dyn Error + Send + Sync + ' static > > {
158158 self . validate ( ) ?;
159159
160160 Ok ( Processor :: new ( self . options ) )
161161 }
162162
163- fn validate ( & self ) -> Result < ( ) , Box < dyn Error > > {
163+ fn validate ( & self ) -> Result < ( ) , Box < dyn Error + Send + Sync + ' static > > {
164164 validate_provider_name ( self . options . provider_name ( ) , self . provider_name_compat_mode ) ?;
165165 Ok ( ( ) )
166166 }
@@ -169,7 +169,7 @@ impl ProcessorBuilder {
169169fn validate_provider_name (
170170 provider_name : & str ,
171171 compat_mode : ProviderNameCompatMode ,
172- ) -> Result < ( ) , Box < dyn Error > > {
172+ ) -> Result < ( ) , Box < dyn Error + Send + Sync + ' static > > {
173173 if provider_name. is_empty ( ) {
174174 return Err ( "Provider name must not be empty." . into ( ) ) ;
175175 }
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ where
191191 }
192192
193193 /// Builds the processor with the configured callback
194- pub fn build ( self ) -> Result < Processor < C > , Box < dyn Error > > {
194+ pub fn build ( self ) -> Result < Processor < C > , Box < dyn Error + Send + Sync + ' static > > {
195195 // Validate provider name
196196 if self . provider_name . is_empty ( ) {
197197 return Err ( "Provider name cannot be empty." . into ( ) ) ;
You can’t perform that action at this time.
0 commit comments