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

Support for HttpApis? #569

Open
alexandervandekleutab opened this issue Feb 7, 2023 · 1 comment
Open

Support for HttpApis? #569

alexandervandekleutab opened this issue Feb 7, 2023 · 1 comment

Comments

@alexandervandekleutab
Copy link

I can see that according to the documentation, REST APIs can automatically propagate requests to their lambda handlers.

However, this isn't supported for HTTP APIs.

Use case

We have a microservices setup where API A might call API B, and we want X-Ray to trace all the way through.

Right now we use a workaround where we parse the x-amzn-trace-id header and create a new segment for each invocation. This kind of works, but it loses the subsegments generated by the Lambda service (which can tell us about e.g. cold start times). It's also ugly because now we get a DAG in the service graph with duplicates, like

client --> lambda --> lambda function
       -------------> lambda function

This same kind of issue gets propagated to downstream calls, messing up our service graph.

I guess that this would have to be solved at the api gateway level, telling api gateway to continue the trace, passing this along to the lambda service and finally the lambda function?

Any direction or information here would be helpful. Thanks!

@willarmiros
Copy link
Contributor

Hi @alexandervandekleutab - thanks for the feature request for API GateWay HTTP APIs. You are right that today APIGW only supports active tracing on REST APIs, not HTTP APIs. We are aware of this gap but unfortunately do not have it on the roadmap to address this. We will keep this open to track if there are any changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants