Skip to content

Conversation

@lobsterkatie
Copy link
Member

@lobsterkatie lobsterkatie commented Oct 16, 2020

This adds (but doesn’t yet use) some helper functions/methods which will be used in the implementation of the new traces_sampler option. It includes:

  • a function to determine if tracing is enabled
  • a function to validate sample rates returned from traces_sampler
  • a to_json method in the Transaction class building upon the one already in the Span class

While creating transaction.to_json, I also removed the unused client parameter in span.to_json.

@lobsterkatie lobsterkatie force-pushed the kmclb-traces-sampler-helpers branch 5 times, most recently from b31a770 to dab7c37 Compare October 20, 2020 15:14
@lobsterkatie lobsterkatie force-pushed the kmclb-traces-sampler-helpers branch from dab7c37 to 554c878 Compare October 21, 2020 17:24
@lobsterkatie lobsterkatie merged commit 5f43185 into master Oct 21, 2020
@lobsterkatie lobsterkatie deleted the kmclb-traces-sampler-helpers branch October 21, 2020 18:25
@lobsterkatie lobsterkatie changed the title [WIP] feat(tracing): Add helper functions for new traces_sampler option feat(tracing): Add helper functions for new traces_sampler option Oct 21, 2020
@lobsterkatie lobsterkatie restored the kmclb-traces-sampler-helpers branch October 21, 2020 18:27
lobsterkatie added a commit that referenced this pull request Oct 21, 2020
lobsterkatie added a commit that referenced this pull request Oct 21, 2020
…869)

- A function to determine if tracing is enabled
- A function to validate sample rates returned from `traces_sampler`
- A `to_json` method in the `Transaction` class building upon the one already in the `Span` class
@lobsterkatie lobsterkatie deleted the kmclb-traces-sampler-helpers branch October 21, 2020 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants