File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1- use crate :: semconv;
21use lambda_runtime:: LambdaInvocation ;
32use opentelemetry:: trace:: SpanKind ;
43use opentelemetry_sdk:: trace:: TracerProvider ;
@@ -10,6 +9,11 @@ use super::{
109 OtelLambdaLayer ,
1110} ;
1211
12+ mod semconv {
13+ pub use crate :: semconv:: * ;
14+ pub const MESSAGING_DESTINATION_PUBLISH_NAME : & str = "messaging.destination_publish.name" ;
15+ }
16+
1317pub trait LambdaServiceContext {
1418 fn create_span ( & self , req : & LambdaInvocation , coldstart : bool ) -> Span ;
1519}
@@ -62,7 +66,7 @@ lambda_service!(
6266 Consumer ,
6367 PubSubLambdaService {
6468 MESSAGING_SYSTEM : Value ,
65- MESSAGING_DESTINATION_NAME : OptionalValue ,
69+ MESSAGING_DESTINATION_PUBLISH_NAME : OptionalValue ,
6670 } ,
6771 { semconv:: MESSAGING_OPERATION } = "process" ,
6872) ;
You can’t perform that action at this time.
0 commit comments