You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Add a DeterministicSampler to use in the web SDK, similar to what exists today in the Node Distro, for easier sampling and to add sample rate to allow proper weighted view in Honeycomb.
Describe the solution you'd like
#13 specifically references using a shared package extracted out from the Node Distro and packaged separately to use in both places. For now we're going to essentially copy the functionality into here, and separate the shared dependency later.
The text was updated successfully, but these errors were encountered:
## Which problem is this PR solving?
- Closes#67
## Short description of the changes
- add Deterministic Sampler
- add sampleRate info to debug
- add unit tests and update smoke test
## How to verify that this has the expected result
```js
const sdk = new HoneycombWebSDK({
apiKey: HONEYCOMB_API_KEY,
serviceName: 'web-distro',
debug: true,
sampleRate: 2,
instrumentations: [getWebAutoInstrumentations()], // add auto-instrumentation
});
```
With a sampleRate higher than one you may have to generate a few traces
before it shows up in Honeycomb! But with debug enabled at least you can
see the config logged, and also see the "Non recording span" if it's not
going to send because it's being dropped with sampling.
---------
Co-authored-by: Kent Quirk <[email protected]>
Is your feature request related to a problem? Please describe.
Add a DeterministicSampler to use in the web SDK, similar to what exists today in the Node Distro, for easier sampling and to add sample rate to allow proper weighted view in Honeycomb.
Describe the solution you'd like
#13 specifically references using a shared package extracted out from the Node Distro and packaged separately to use in both places. For now we're going to essentially copy the functionality into here, and separate the shared dependency later.
The text was updated successfully, but these errors were encountered: