We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d42b0fd commit 5369993Copy full SHA for 5369993
src/middleware/lambda/context.rs
@@ -107,7 +107,13 @@ impl OtelLambdaLayer<GenericLambdaService> {
107
}
108
109
impl OtelLambdaLayer<PubSubLambdaService> {
110
- pub fn sqs(provider: TracerProvider, topic_arn: impl Into<StringValue>) -> Self {
111
- Self::pubsub(provider, "AmazonSQS", Some(topic_arn))
+ pub fn sqs(provider: TracerProvider, queue_arn: impl Into<StringValue>) -> Self {
+ Self::pubsub(provider, "AmazonSQS", Some(queue_arn))
112
+ }
113
+}
114
+
115
+impl OtelLambdaLayer<PubSubLambdaService> {
116
+ pub fn sns(provider: TracerProvider, topic_arn: impl Into<StringValue>) -> Self {
117
+ Self::pubsub(provider, "AmazonSNS", Some(topic_arn))
118
119
0 commit comments