Skip to content

Commit

Permalink
Merge pull request #487 from CMSgov/kalvin-error-types
Browse files Browse the repository at this point in the history
[QPPA-1368] Ignore certain error types in New Relic
  • Loading branch information
sfradkin committed Dec 9, 2017
2 parents c35603b + ce39611 commit 0abba94
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions tools/docker/docker-artifacts/newrelic/newrelic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ common: &default_settings
# Set the name of your application as you'd like it show up in New Relic.
# If enable_auto_app_naming is false, the agent reports all data to this application.
# Otherwise, the agent reports only background tasks (transactions for non-web applications)
# to this application. To report data to more than one application
# to this application. To report data to more than one application
# (useful for rollup reporting), separate the application names with ";".
# For example, to report data to "My Application" and "My Application 2" use this:
# app_name: My Application;My Application 2
Expand Down Expand Up @@ -102,26 +102,26 @@ common: &default_settings
#proxy_user: username
#proxy_password: password

# Limits the number of lines to capture for each stack trace.
# Limits the number of lines to capture for each stack trace.
# Default is 30
max_stack_trace_lines: 30

# Provides the ability to configure the attributes sent to New Relic. These
# attributes can be found in transaction traces, traced errors, Insight's
# attributes can be found in transaction traces, traced errors, Insight's
# transaction events, and Insight's page views.
attributes:

# When true, attributes will be sent to New Relic. The default is true.
enabled: true
#A comma separated list of attribute keys whose values should

#A comma separated list of attribute keys whose values should
# be sent to New Relic.
#include:
# A comma separated list of attribute keys whose values should

# A comma separated list of attribute keys whose values should
# not be sent to New Relic.
#exclude:


# Transaction tracer captures deep information about slow
# transactions and sends this to the New Relic service once a
Expand Down Expand Up @@ -167,7 +167,7 @@ common: &default_settings
# Default is true.
explain_enabled: true

# Threshold for query execution time below which query plans will not
# Threshold for query execution time below which query plans will not
# not be captured. Relevant only when `explain_enabled` is true.
# Default is 0.5 seconds.
explain_threshold: 0.5
Expand Down Expand Up @@ -197,10 +197,18 @@ common: &default_settings
# by providing a comma separated list of status codes.
# The default is to exclude 404s. If you want to override
# this, you must provide any new value as an empty list is ignored.
ignore_status_codes: 404
ignore_status_codes: [
400, // missing required query parameter or extra invalid query parameter (not yet used)
401, // invalid/missing JWT or user doesn't have necessary AuthZ privileges
403, // forbidden (not yet used)
404, // resource doesn't exist
405, // invalid request type
406, // accept headers asking for format our API doesn't support (not yet used)
422 // validation error
]

# Transaction Events are used for Histograms and Percentiles. Unaggregated data is collected
# for each web transaction and sent to the server on harvest.
# for each web transaction and sent to the server on harvest.
transaction_events:

# Set to false to disable transaction events.
Expand Down Expand Up @@ -233,7 +241,7 @@ common: &default_settings
# New Relic Real User Monitoring gives you insight into the performance real users are
# experiencing with your website. This is accomplished by measuring the time it takes for
# your users' browsers to download and render your web pages by injecting a small amount
# of JavaScript code into the header and footer of each page.
# of JavaScript code into the header and footer of each page.
browser_monitoring:

# By default the agent automatically inserts API calls in compiled JSPs to
Expand All @@ -244,7 +252,7 @@ common: &default_settings
auto_instrument: true

class_transformer:
# This instrumentation reports the name of the user principal returned from
# This instrumentation reports the name of the user principal returned from
# HttpServletRequest.getUserPrincipal() when servlets and filters are invoked.
com.newrelic.instrumentation.servlet-user:
enabled: false
Expand Down

0 comments on commit 0abba94

Please sign in to comment.