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

Add ability to limit the number/type of trace spans created. #3211

Open
tmc opened this issue Jun 5, 2023 · 2 comments
Open

Add ability to limit the number/type of trace spans created. #3211

tmc opened this issue Jun 5, 2023 · 2 comments

Comments

@tmc
Copy link

tmc commented Jun 5, 2023

Some trace span storage systems charge by span event and right now this project produces quite a few spans (at least when used as a federating proxy).

Adding some configuration knobs to reduce the number of spans created would be nice.

@BrynCooke
Copy link
Contributor

@tmc The only option we have at the moment in otel is using sampling rate.
Potentially you could use otel collector as an intermediary to try and implement this functionality?

@ekafeel
Copy link

ekafeel commented Sep 18, 2023

We are facing a problem where the number of spans generated by the router is significantly higher than the number generated by the apollo-server, which we previously used as a gateway. This is a concern for us as we use an observability tool that charges based on the amount of data ingested.
Sampling is not an option as we want to monitor all the requests. Can you elaborate on how running an intermediary otel collector can help? Also, can rhai script help here in someway?

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

3 participants