![]() Because APM collects performance monitoring data about each request or job execution, this results in a large amount of additional data being sent to Sentry. For this reason, APM is off by default, and the rate of sampling is configurable in a setting. Settings related to this change: - `sentry_backend_traces_sample_rate`: the APM sample rate, with a default value of 0.0 (max value 1.0, although this isn't recommended) refs DE-922 flag=none test plan: - ensure you have Sentry running at sentry.docker and have a DSN configured in `config/sentry.rb` - confirm that, by default: - no traces appear in the "Performance" section - change the `sentry_backend_traces_sample_rate` setting to `1.0` - restart rails and job servers - confirm that: - traces now appear in the "Performance" section for both controller and job executions - for jobs, traces and contain context from the job under the "INST-JOBS"section - remove `config/sentry.yml` and restart rails and jobs servers - confirm that the app/jobs start fine and there are no issues Change-Id: I876d9e3c9fb55c8dca374f29987775803e6aabaf Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/282306 QA-Review: Isaac Moore <isaac.moore@instructure.com> Product-Review: Isaac Moore <isaac.moore@instructure.com> Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com> Reviewed-by: Ben Rinaca <brinaca@instructure.com> |
||
---|---|---|
.. | ||
.rubocop.yml | ||
_before.rb | ||
app.rb | ||
assets.rb | ||
cassandra.rb | ||
development.rb | ||
i18n_tools_and_rake_tasks.rb | ||
icu.rb | ||
plugins.rb | ||
postgres.rb | ||
redis.rb | ||
rubocop.rb | ||
test.rb | ||
~after.rb |