-
-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add traces_sampler option * update CHANGELOG.md * introduced `sentry_traces_sampler_function` typedef * added sampling context * format * eof newlines * feat: pass sampling_context into sampling decision * remove unnecessary commented include * add memory freeing/incref-decref * change custom sampling context type to sentry_value_t * add decref * removed unneeded creation function * format * set codeql runner to ubuntu-22.04 * take ownership of custom_sampling_ctx * add parent sampling decision * add traces_sampler and parent sampling decision tests * decref * change callback arg from struct to parameter list * format * mark unused parameters * format * cleanup test + docs * apply PR feedback * format * cleanup example * add getters for transaction_ctx name + operation * remove (void) on transaction_ctx in example.c * add transaction_ctx getter tests * dont expose sampling_context_s in sentry.h * change bool to int * cleanup example.c * refactor tx_cxt to tx_ctx convention * change sampled_int init --------- Co-authored-by: Mischan Toosarani-Hausberger <mischan@abovevacant.com>
- Loading branch information
1 parent
65c109d
commit bce6e8b
Showing
14 changed files
with
397 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// sentry_sampling_context.h | ||
#ifndef SENTRY_SAMPLING_CONTEXT_H_INCLUDED | ||
#define SENTRY_SAMPLING_CONTEXT_H_INCLUDED | ||
|
||
#include "sentry_tracing.h" | ||
|
||
typedef struct sentry_sampling_context_s { | ||
sentry_transaction_context_t *transaction_context; | ||
sentry_value_t custom_sampling_context; | ||
bool *parent_sampled; | ||
} sentry_sampling_context_t; | ||
|
||
#endif // SENTRY_SAMPLING_CONTEXT_H_INCLUDED |
Oops, something went wrong.