Skip to content

Commit b086e73

Browse files
doc: Add docs for negative inbound filters (#5336)
Co-authored-by: Isabel <[email protected]>
1 parent c76e231 commit b086e73

File tree

1 file changed

+11
-1
lines changed
  • src/docs/product/data-management-settings/filtering

1 file changed

+11
-1
lines changed

src/docs/product/data-management-settings/filtering/index.mdx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ To ensure you’re adding the correct message to the inbound filter setting, che
6060
To filter releases, keep the following in mind:
6161

6262
- The filter matches the full release name provided during SDK initialization. If you provide the recommended package prefix, the release is in the format `package@version`, for example: `[email protected]`.
63-
- Regular glob rules apply and there is no special casing for SemVer. This allows for matching prefixes, such as `my-example@1.*`.
63+
- Globbing rules apply and there is no special casing for SemVer. This allows for matching prefixes, such as `my-example@1.*`.
6464
- The filter never applies to events without a release.
6565

6666
### Glob Matching
@@ -73,3 +73,13 @@ Some symbols, such as the `*` character, receive special meaning as meta charact
7373
- `*` matches zero or more characters.
7474
- `\` escapes the next character making it literal. If it precedes a non-meta character, the backslash is ignored.
7575
- `[`, `]`, `{`, and `}` are reserved meta characters.
76+
- `!` works for negation, but only within brackets, such as in `[!1-4]` to match any character that is not `[1-4]`.
77+
78+
Generally, `bash`'s out-of-the-box behavior for globbing is close to what Sentry supports:
79+
80+
```bash
81+
touch 1.2.3
82+
touch 1.2.4
83+
echo 1.2.*
84+
echo 1.2.[!3]
85+
```

0 commit comments

Comments
 (0)