Comments (3)
Hi!
This is related to #80 and this will be able to be set by en environment variable like that by the time it is closed
Sadly the Magento Deployment Configuration we use cannot be set using variables by normal means.
We have been able to do that by using means such as https://github.com/justbetter/magento2-dotenv (To prevent magento from regenerating and overwriting the env.php) and loading env variables in the config https://github.com/justbetter/magento2-dotenv/blob/master/Example/env.php
However the proper solution will be to add the module configuration to the "core config" part of Magento so it can be set in the same way you describe
from magento2-sentry.
In fact, it is already doable as it is a feature of the Magento config system for I guess non cloud configurations. My question was about what env names to use - while I'm still working on my final configuration I can say that the required env names are
CONFIG__DEFAULT__SENTRY_DSN
CONFIG__DEFAULT__SENTRY__ENVIRONMENT
CONFIG__DEFAULT__SENTRY__LOG_LEVEL
CONFIG__DEFAULT__SENTRY__MAGE_MODE_DEVELOPMENT
CONFIG__DEFAULT__SENTRY__ERROREXCEPTION_REPORTING
You still need the section in the env.php file as Magento needs to know that it has to define the placeholders, but any env defined with the above names will overwrite the corresponding value read from the env.php.
As I noted the Magento docs are not that clear - so the section you link to is correct that only env.php and config.php are merged at start-up and no other config file can be added. The use of env variables to override the values read in gets covered (poorly) within the Pipeline Deployment docs
https://devdocs.magento.com/guides/v2.4/config-guide/deployment/pipeline/example/environment-variables.html
The magic of the config system starts to make sense once you find the following command that dumps all the values you can override/set
bin/magento config:show
and
bin/magento config:show --scope="default"
from magento2-sentry.
See #80 and https://github.com/justbetter/magento2-sentry#configuration-for-adobe-cloud it can now be set with system config 🚀
from magento2-sentry.
Related Issues (20)
- Exceptions in Consumers are not sent to Sentry
- not compatible with magento 2.4.4 HOT 4
- Feature Request: CSP Reporting
- Cannot fix CVE because of constraints caused by this extension HOT 1
- Caught exceptions are send to sentry HOT 8
- Ignore exceptions by regex HOT 3
- Allow usage of Debug IDs for uploading source maps HOT 2
- Deployment configuration ignored when "Environment Configuration Enabled" set to "No" HOT 2
- Cron Job Monitoring HOT 1
- Cron log errors are not sent to Sentry
- Feature: Add INP Support HOT 3
- polyfill.io is compromised HOT 2
- Can't install version 3.0.0 in Magento 2.4.3-p1/p2 HOT 2
- Bug: wrong product link if groups[seo][fields][product_use_categories][value] = 0 HOT 1
- Add support to filter out events HOT 12
- Exception on setup:upgrade with ver 2.4.4 and php 8.1 HOT 1
- Incompatible with monolog/monolog v2.7.0 HOT 1
- Spam in debug.log file HOT 8
- Call to undefined method JustBetter\Sentry\Plugin\MonologPlugin::addAlert() HOT 3
- Send context data passed to LoggerInterface to Sentry
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magento2-sentry.