Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New component: AWS SQS Receiver #36516

Open
yash025 opened this issue Nov 24, 2024 · 6 comments
Open

New component: AWS SQS Receiver #36516

yash025 opened this issue Nov 24, 2024 · 6 comments
Labels
Sponsor Needed New component seeking sponsor

Comments

@yash025
Copy link

yash025 commented Nov 24, 2024

The purpose and use-cases of the new component

The AWS SQS receiver is designed to implement a mechanism for retrieving and processing telemetry data triggered by event notifications for S3 uploads, integrating directly with the OpenTelemetry Collector. This receiver will collect messages from Amazon Simple Queue Service (SQS) associated with S3 upload events and forward these to the OpenTelemetry Collector for further processing and exporting.

Example configuration for the component

    receivers:
      awssqsreceiver:
        queue: "https://sqs.us-west-2.amazonaws.com/xxxx/fci-raw-spans-queue-qal-usw2"
        region: "us-west-2"
        visibility_timeout: 120
        worker_pool: 2
        wait_timeout: 15

Telemetry data types supported

  • traces
  • metrics
  • logs

Code Owner(s)

@yash025, @igrishi @MaheshGPai

Sponsor (optional)

No response

Additional context

No response

@yash025 yash025 added needs triage New item requiring triage Sponsor Needed New component seeking sponsor labels Nov 24, 2024
@yash025
Copy link
Author

yash025 commented Nov 24, 2024

This has been useful for scaling our backend servers, which collect raw spans. We have one layer of lightweight collectors that collects the spans and exports them to S3 using the s3 exporter, while the second layer performs the heavy work of processing using different processors The event-driven approach has significantly helped us reduce data loss, manage retries, and better scaling.

@yash025
Copy link
Author

yash025 commented Nov 24, 2024

#30750 (comment)

@VihasMakwana
Copy link
Contributor

@yash025 #36315 seems related? Can you confirm and let me know?

@VihasMakwana VihasMakwana removed the needs triage New item requiring triage label Nov 25, 2024
@yash025
Copy link
Author

yash025 commented Nov 25, 2024

@VihasMakwana , thanks for looking into this. Yes, it seems related, the discussion there is about updating the existing S3 receiver to listen to the SQS queue. In my opinion, updating the S3 receiver would complicate things. Since this is a common use case, does it make sense to have a separate receiver? What do you think?

@VihasMakwana
Copy link
Contributor

If we add an awssqsreceiver, we shouldn't restrict it to only listening for S3 events. The receiver should be capable of handling all events from an SQS queue.

I believe it makes sense to create a new receiver specifically for reading events from SQS.

If you're willing to contribute this receiver, you'll need a sponsor. I recommend joining the OTeL Collector SIG and proposing this new component there. Additionally, it would be a good idea to reach out on Slack if possible.

@yash025
Copy link
Author

yash025 commented Nov 28, 2024

Yes, I was thinking the same thing, to support the payload being sent directly in the message body. Let me post a message on slack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Sponsor Needed New component seeking sponsor
Projects
None yet
Development

No branches or pull requests

2 participants