Sentry is a product used and developed by many people from different cultural backgrounds and we try to avoid language that has been identified as hurtful or insensitive. This applies not only to the documentation but also to the product itself and internal APIs.
What constitutes inclusive language will always be an evolving topic, and because Sentry is a product with history, it is likely that we will always carry something in the codebase that is hard to get rid of.
As such this document largely determines what should be done for new code, but not necessarily for existing code.
We have identified some terms that we no longer want to use going forward but that might still exist in parts of the codebase.
- Generally, the terms to be used in the context of databases should be "primary"/"secondary" or "primary"/"replica".
- Generally should not be used. We try to avoid the word "list" now in general and try to be more descriptive in the UI. For instance, the use of "ip blacklist" has been changed to "ip filters" as part of the filter product. If you need a generic term "allowlist" and "denylist" or "blocklist" are good substitutions.
- Try to avoid generic verbs here and better describe directly what it is you're trying to do. For instance, we changed "whitelisted environment variables" to "safe environment variables".
- Try to avoid. If it can be replaced with "legacy" use that term, otherwise if you want to emphasize that functionality is only available because you used to use it in the past, be explicit. Change "available on grandfathered plans" to "available on old plans no longer available for sign-up".
- Master in isolation is acceptable if the origin of the term can exclude the associated meaning of "slave". This for instance is the case when referring to as a "master copy", a "masters degree" etc. For the git branch name please see below.
Git Branch Naming
We are okay keeping the term "master" for existing repositories but it is generally recommended to change the default branch name to "main" going forward on new repositories. While the term "master" in isolation is generally acceptable, the history of the branch name in git comes from bitkeeper where this terminology referred to master and slave repositories. At present changing the default branch on existing repositories has negative consequences for users that have already cloned the repositories so these should not be changed.
As of Git 2.28, you can reconfigure git to use a different default branch name for
git config --global init.defaultBranch main
From this moment onwards future repositories will use the default branch name "main" instead.
If you identify code or comments that use problematic language, you are free to change them. However please be advised that some uses of problematic language haven't been phased out because they are backward-incompatible changes and require a lot more work. Specifically, for instance, the rate-limiting code in Sentry uses the terms "whitelist" for persisted data and for consistency the code that deals with this data structure, for now, retains these uses.