Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tracing): Basic span support with nesting #634

Merged
merged 14 commits into from
Jan 8, 2022
Prev Previous commit
Next Next commit
hide behind compile flag
relaxolotl committed Jan 8, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 74a34978cdc52669148e64226802b0e23a00299d
2 changes: 1 addition & 1 deletion examples/example.c
Original file line number Diff line number Diff line change
@@ -97,11 +97,11 @@ main(int argc, char **argv)
if (has_arg(argc, argv, "capture-transaction")) {
sentry_options_set_traces_sample_rate(options, 1.0);
}
#endif

if (has_arg(argc, argv, "child-spans")) {
sentry_options_set_max_spans(options, 5);
}
#endif

sentry_init(options);

1 change: 1 addition & 0 deletions include/sentry.h
Original file line number Diff line number Diff line change
@@ -1386,6 +1386,7 @@ SENTRY_EXPERIMENTAL_API sentry_value_t sentry_span_start_child(
*/
SENTRY_EXPERIMENTAL_API void sentry_span_finish(
sentry_value_t root_transaction, sentry_value_t span);
#endif

#ifdef __cplusplus
}
2 changes: 2 additions & 0 deletions src/sentry_core.h
Original file line number Diff line number Diff line change
@@ -122,7 +122,9 @@ void sentry__options_unlock(void);
// these for now are only needed outside of core for tests
#ifdef SENTRY_UNITTEST
bool sentry__roll_dice(double probability);
# ifdef SENTRY_PERFORMANCE_MONITORING
bool sentry__should_send_transaction(sentry_value_t tx_cxt);
# endif
#endif

#endif