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
ApolloServerPluginUsageReporting does not allow to pass http agent #7811
Comments
Hi @glasser is this repo active/being maintained? |
Yes, but not by me personally, and most of Apollo was on vacation starting right around when you filed the issue :) |
@glasser Thanks for the response, these are the versions we're using:
Can you please leave the link here when you open the issue in the other repo, or at least point me where I should open it, I can do so as well. |
Hi, this was transferred in place to this repo. I assume you are also using |
That said, the usage reporting plugin uses the standard |
Yes I'm aware of that, I know I can pass the fetcher, but how can I pass the options to which the fetcher will use when it's called? maybe I'm missing something here, would you mind sharing an example of how it can be achieved? |
Yes I'm using the |
Something like
? |
And no, you're correct that the plugin is generic, but it's possible that there are other aspects of running in Azure Functions that the AF integration maintainers may be more knowledgeable about (eg, how "background" operations like publishing usage reports might work best in that context). |
@glasser That makes sense, I'll give it a try, thanks 🙏 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Issue Description
Hello,
I'm using Apollo Federation in an Azure environment, specifically deployed as an Azure Function. I've noticed that the
ApolloServerPluginUsageReporting
is causing a lot ofconnect ETIMEDOUT
as it seems it is exhausting the available Websockets/TCP connections when making this request to:HTTP: POST usage-reporting.api.apollographql.com/api/ingress/traces
, I guess most likely because it is not reusing the HTTP contention, so I had to disable the reporting as I could not find a way to pass an HTTP agent to the plunging to keep alive the connection to avoid the issue mentioned above.Is there a workaround or you guys can please point me to the right direction?
Link to Reproduction
N/A
Reproduction Steps
No response
The text was updated successfully, but these errors were encountered: