Skip to content

Instantly share code, notes, and snippets.

@pglombardo
Last active June 30, 2016 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pglombardo/5e226a6eafca5265635d5c34619a5716 to your computer and use it in GitHub Desktop.
Save pglombardo/5e226a6eafca5265635d5c34619a5716 to your computer and use it in GitHub Desktop.
Proposed Ruby config file instrumentation syntax
Array#sort:
# Whether to start a new trace
#
# default: false
start_trace: false
# For potentially recursive operations, report only the
# outermost call
#
# default: false
report_once: false
# Log the parameters this method was called with
#
# default: false
log_args: false
# Log the return value of this method
#
# default: false
log_return: false
# Should this be instrumented as a profile or layer?
# If false, this operation will be instrumented as
# a layer and layer_name should be provided. If true,
# layer_name is ignored.
#
# default: false
profile: false
# If this isn't a profile, this is the name that
# the layer will show up at in the dashboard
# If not specified, it will default to a Class#method string
#
# default: none
layer_name: "sort"
# Whether or not to collect and report a backtrace
#
# default: false
backtrace: true
# Capture and report any exceptions raised
# by this method.
#
# default: true
exceptions: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment