Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
loewenheim committed Dec 16, 2021
1 parent 53783ce commit 88fa666
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions include/sentry.h
Original file line number Diff line number Diff line change
Expand Up @@ -1275,15 +1275,29 @@ SENTRY_EXPERIMENTAL_API void sentry_transaction_set_sampled(
SENTRY_EXPERIMENTAL_API void sentry_transaction_remove_sampled(
sentry_value_t transaction);

/**
* Sets a tag on a transaction to the given string value.
*/
SENTRY_EXPERIMENTAL_API void sentry_transaction_set_tag(
sentry_value_t transaction, const char *tag, const char *value);

/**
* Removes a tag from a transaction. Returns 0 if the tag was successfully
* removed, 1 otherwise.
*/
SENTRY_EXPERIMENTAL_API int sentry_transaction_remove_tag(
sentry_value_t transaction, const char *tag);

/**
* Sets the given key in a transaction's "data" section to the given value.
*/
SENTRY_EXPERIMENTAL_API void sentry_transaction_set_data(
sentry_value_t transaction, const char *key, sentry_value_t value);

/**
* Removes a key from a transaction's "data" section. Returns 0 if the key was successfully
* removed, 1 otherwise.
*/
SENTRY_EXPERIMENTAL_API int sentry_transaction_remove_data(
sentry_value_t transaction, const char *key);

Expand Down

0 comments on commit 88fa666

Please sign in to comment.