You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 31, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: packages/plugin-aws-sdk/docs/sqs.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,17 +5,17 @@ SQS is amazon's managed message queue. Thus, it should follow the [Open Telemetr
5
5
The following methods are automatically enhanced:
6
6
7
7
### sendMessage / sendMessageBatch
8
-
-[Message Attributes](https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/trace/semantic_conventions/messaging.md#messaging-attributes) are added by this plugin according to the spec.
9
-
-TODO: Inject trace context as SQS MessageAttributes, so the service receiving the message can link cascading spans to the trace which created the message.
8
+
-[Messaging Attributes](https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/trace/semantic_conventions/messaging.md#messaging-attributes) are added by this plugin according to the spec.
9
+
-Open Telemetry trace context is injected as SQS MessageAttributes, so the service receiving the message can link cascading spans to the trace which created the message.
10
10
11
11
### receiveMessage
12
-
-[Message Attributes](https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/trace/semantic_conventions/messaging.md#messaging-attributes) are added by this plugin according to the spec.
12
+
-[Messaging Attributes](https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/trace/semantic_conventions/messaging.md#messaging-attributes) are added by this plugin according to the spec.
13
13
- Additional "processing spans" are created for each message received by the application.
14
14
If an application invoked `receiveMessage`, and received a 10 messages batch, a single `messaging.operation` = `receive` span will be created for the `receiveMessage` operation, and 10 `messaging.operation` = `process` spans will be created, one for each message.
15
15
Those processing spans are created by the library. This behavior is partially implemented, [See discussion below](#processing-spans).
16
16
- Sets the inter process context correctly, so that additional spans created through the process will be linked to parent spans correctly.
17
17
This behavior is partially implemented, [See discussion below](#processing-spans).
18
-
-TODO: Extract trace context from SQS MessageAttributes, and set span's `parent` and `links` correctly according to the spec.
18
+
- Extract trace context from SQS MessageAttributes, and set span's `parent` and `links` correctly according to the spec.
19
19
20
20
#### Processing Spans
21
21
According to open telemetry specification (and to reasonable expectation for trace structure), user of this library would expect to see one span for the operation of receiving messages batch from SQS, and then, for each message, a span with it's own sub-tree for the processing of this specific message.
0 commit comments