NomicFoundation / hardhat-vscode

Solidity and Hardhat support for Visual Studio Code
https://hardhat.org
MIT License
163 stars 36 forks source link

chore: improve sentry sampling #570

Closed kanej closed 1 week ago

kanej commented 1 month ago

Sample most traces as before (1 in development, 0.001 in production), but exclude the indexing trace, which won't be sampled.

Indexing happens once per session, and is being used to provide feature flag information. That info is significantly less useful if it is sampled.

The fine grained control is provided by swapping from a trace sampling rate to a trace sampling function, as described here: https://docs.sentry.io/platforms/javascript/guides/capacitor/configuration/sampling/#setting-a-sampling-function

kanej commented 1 week ago

We have opted to remove the feature flags from indexing.