You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Other than the default self-hosted Sentry installation, sometimes users
4
-
can leverage their existing infrastructure to help them with limited
5
-
resources. "Patches", or you might call this like a "plugin system", is
6
-
a collection of patch files (see [man patch(1)](https://man7.org/linux/man-pages/man1/patch.1.html))
7
-
that can be used with to modify the existing configuration to achieve
8
-
the desired goal.
3
+
While the default self-hosted Sentry installation is often sufficient, there are instances where leveraging existing infrastructure becomes a practical necessity, particularly for users with limited resources. This is where **patches**, or what can be understood as a **plugin system**, come into play.
4
+
5
+
A patch system comprises a collection of patch files (refer to man patch(1) for detailed information) designed to modify an existing Sentry configuration. This allows for targeted adjustments to achieve specific operational goals, optimizing Sentry's functionality within your current environment. This approach provides a flexible alternative to a full, customized re-installation, enabling users to adapt Sentry to their specific needs with greater efficiency.
6
+
7
+
We also actively encourage the community to contribute! If you've developed a patch that enhances your self-hosted Sentry experience, consider submitting a pull request. Your contributions can be invaluable to other users facing similar challenges, fostering a collaborative environment where shared solutions benefit everyone.
9
8
10
9
> [!WARNING]
11
10
> Beware that this is very experimental and might not work as expected.
@@ -14,28 +13,38 @@ the desired goal.
14
13
15
14
## How to use patches
16
15
17
-
The patches are designed mostly to help modify the existing
18
-
configuration files. You will need to run the `install.sh` script
19
-
afterwards.
16
+
The patches are designed mostly to help modify the existing configuration files. You will need to run the `install.sh` script afterwards.
20
17
21
-
They should be run from the root directory. For example, the
22
-
`external-kafka` patches should be run as:
18
+
They should be run from the root directory. For example, the `external-kafka` patches should be run as:
Some patches might require additional steps to be taken, like providing
32
-
credentials or additional TLS certificates.
27
+
The `-p0` flag is important to ensure the patch applies to the correct absolute file path.
28
+
29
+
Some patches might require additional steps to be taken, like providing credentials or additional TLS certificates. Make sure to see your changed files before running the `install.sh` script.
30
+
31
+
## How to create patches
32
+
33
+
1. Copy the original file to a temporary file name. For example, if you want to create a `clustered-redis` patch, you might want to copy `docker-compose.yml` to `docker-compose.clustered-redis.yml`.
34
+
2. Make your changes on the `docker-compose.clustered-redis.yml` file.
4. Create a new directory in the `optional-modifications/patches` folder with the name of the patch. For example, `optional-modifications/patches/clustered-redis`.
44
+
5. Move the patched files (like `docker-compose.yml.patch` earlier) into the new directory.
33
45
34
46
## Official support
35
47
36
-
Sentry employees are not obliged to provide dedicated support for
37
-
patches, but they can help by providing information to move us forward.
38
-
We encourage the community to contribute for any bug fixes or
39
-
improvements.
48
+
While Sentry employees aren't able to offer dedicated support for these patches, they can provide valuable information to help move things forward. Ultimately, we really encourage the community to take the wheel, maintaining and fostering these patches themselves. If you have questions, Sentry employees will be there to help guide you.
40
49
41
50
See the [support policy for self-hosted Sentry](https://develop.sentry.dev/self-hosted/support/) for more information.
0 commit comments