canvas-lms/config/initializers
Isaac Moore 3294460221 Add option to enable Sentry APM
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>
2022-01-13 23:32:00 +00:00
..
action_pack.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
active_model_errors.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
active_record.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
active_record_query_trace.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
active_support.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
adheres_to_policy.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
api_scope_mapper_initializer.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
authlogic_mods.rb RuboCop: Naming/RescuedExceptionsVariableName 2021-11-18 02:24:17 +00:00
backtrace_silencers.rb add frozen_string_literal_comment to config files 2021-03-30 18:59:58 +00:00
bookmarked_collection.rb RuboCop: Style/BlockDelimiters, Style/Lambda 2021-11-23 21:30:47 +00:00
broadcast_policy.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
cache_store.rb RuboCop: Style/BlockDelimiters, Style/Lambda 2021-11-23 21:30:47 +00:00
canvas_cache.rb RuboCop: Layout config 2021-09-22 15:57:46 +00:00
canvas_cassandra.rb RuboCop: Layout config 2021-09-22 15:57:46 +00:00
canvas_crummy.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
canvas_http.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
canvas_kaltura.rb RuboCop: Style grab bag 2021-11-20 03:04:04 +00:00
canvas_panda_pub.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
canvas_partman.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
canvas_sanitize.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
canvas_security.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
class_name.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
config_file.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
consul.rb remove require_dependency for DynamicSettingsInitiializer 2022-01-13 15:24:57 +00:00
datadog_apm.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
delayed_job.rb rename Canvas::DynamicSettings => DynamicSettings 2022-01-12 21:54:51 +00:00
diigo.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
dropped_columns.rb add frozen_string_literal_comment to config files 2021-03-30 18:59:58 +00:00
dynamodb_date_support.rb RuboCop: Layout config 2021-09-22 15:57:46 +00:00
empty.rb RuboCop: Style/ZeroLengthPredicate 2021-11-18 23:07:03 +00:00
errors.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
event_stream.rb add frozen_string_literal_comment to config files 2021-03-30 18:59:58 +00:00
external_migrations.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
folio.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
google_drive.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
graphql_connection_nodes.rb RuboCop: Layout config 2021-09-22 15:57:46 +00:00
graphql_postgres_timeout.rb add frozen_string_literal_comment to config files 2021-03-30 18:59:58 +00:00
guard_rail.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
i18n.rb Revert "Revert "fix i18n unloading/reloading failures"" 2022-01-12 17:03:05 +00:00
incoming_mail.rb add frozen_string_literal_comment to config files 2021-03-30 18:59:58 +00:00
inflections.rb inflect BLTI as acronym for zeitwerk 2021-10-15 18:48:52 +00:00
inst_access.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
inst_access_support.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
inst_statsd.rb rename Canvas::DynamicSettings => DynamicSettings 2022-01-12 21:54:51 +00:00
irb.rb RuboCop: Style/StructInheritance 2021-11-19 22:38:42 +00:00
job_live_events_context.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
json.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
jwt_workflow.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
linked_in.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
live_events.rb rename Canvas::DynamicSettings => DynamicSettings 2022-01-12 21:54:51 +00:00
local_cache.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
marginalia.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
mime_types.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
no_timeouts_debugging.rb RuboCop: Lint 2021-09-29 03:38:23 +00:00
oauth.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
observers.rb add frozen_string_literal_comment to config files 2021-03-30 18:59:58 +00:00
outgoing_mail.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
outrigger.rb update outrigger to 3.0 2021-09-10 19:55:07 +00:00
periodic_jobs.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
postgresql_adapter.rb remove unused PG <12 code paths 2021-12-17 21:14:19 +00:00
rack.rb rename Canvas::DynamicSettings => DynamicSettings 2022-01-12 21:54:51 +00:00
rails_patches.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
reports.rb RuboCop: Layout config 2021-09-22 15:57:46 +00:00
revved_asset_urls.rb refactor RevManifest to simplify the CDN interface 2022-01-06 20:20:40 +00:00
ruby_version_compat.rb RuboCop: Style/ClassCheck, Style/ClassEqualityComparison 2021-11-19 22:39:31 +00:00
rubyzip.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
safe_yaml.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
saml.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
sentry.rb Add option to enable Sentry APM 2022-01-13 23:32:00 +00:00
session_store.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
simply_versioned.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
statsd_timing.rb add frozen_string_literal_comment to config files 2021-03-30 18:59:58 +00:00
strong_parameters.rb RuboCop: Style/CaseLikeIf 2021-11-12 20:24:23 +00:00
stubs.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
switchman.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
template_streaming.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
time.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00
twitter.rb Migrate twitter to use vault creds 2021-10-22 14:50:58 +00:00
zeitwerk.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00