Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.

question: adaptive sampling #703

Closed
funkycoding opened this issue Jun 15, 2018 · 3 comments
Closed

question: adaptive sampling #703

funkycoding opened this issue Jun 15, 2018 · 3 comments
Labels

Comments

@funkycoding
Copy link
Contributor

In the code i see this construct, i can't really figure out what i means, can someone explain this?

configuration.TelemetryProcessorChainBuilder.UseAdaptiveSampling(5, excludedTypes: "Event");
configuration.TelemetryProcessorChainBuilder.UseAdaptiveSampling(5, includedTypes: "Event");

Regards,
Mark

@SergeyKanzhelev
Copy link
Contributor

it means that SDK will try to send not more than 5 Events per second and not more than 5 other types per second. So if you have a high thopughput app that serves hundreds of requests - you will collect information about subset of requests. If only handful of collected requests result in "Check out" event - those events will not be lost. Makes sense?

@SergeyKanzhelev
Copy link
Contributor

Basically sampling of diagnostics telemetry will not affect sampling of business telemetry

@funkycoding
Copy link
Contributor Author

funkycoding commented Jun 15, 2018

@SergeyKanzhelev Makes sense, thanks!

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

No branches or pull requests

2 participants