Search code examples
amazon-web-servicesaws-step-functionsaws-event-bridgeaws-xraydistributed-tracing

Is there a way to integrate eventbridge with xray without using a lambda?


Is there a way to integrate eventbridge with X-ray without using a lambda? In step functions you can use the direct API drag and drop methods of adding services. Is it possible to enable tracing for an event sent to eventbridge from step functions without involving a lambda as shown in this tutorial?


Solution

  • Thanks for raising question to X-Ray. The quick answer is no. There are 2 types of service and X-Ray integration: Active and only Passthrough.

    1. The Active integration means the AWS managed service is able to emit Segment representing itself if user enable tracing for the AWS resource. If not enable tracing, it is passthrough mode by default.
    2. The Passthough only integrated AWS managed service means it just passthrough trace context from incoming request to downstream.

    AWS EventBridge is passthough only integrated, so, the node in xray console is inferred by its upstream, it could be a Lambda or whatever as long as it emits a Subsegment representing a call to EventBridge.