Skip to content

Instantly share code, notes, and snippets.

@mariusoe
mariusoe / extension.yml
Created December 15, 2021 15:18
inspectIT Ocelot - Extention for excluding specific URLs from tracing
inspectit:
instrumentation:
actions:
# Checks if the given input string fully matches any of the provided regexes.
# If it does, the matched regex is returned. Otherwise, null is returned.
#
# the patterns are expected to be a list of the following form:
# constant-input:
# patterns:
# - <regexA>
@mariusoe
mariusoe / inspectit_ocelot_disable_exception_tracing.yml
Created April 6, 2021 15:08
Disable Java Exception Tracing for the inspectIT Ocelot Java Agent.
inspectit:
instrumentation:
rules:
'r_tracing_global_attributes':
include:
'r_tracing_exception_attributes': false
inspectit:
instrumentation:
actions:
'a_get_size_of_stream':
imports:
- 'java.io.ByteArrayOutputStream'
input:
_arg1: Object
value-body: |
try {
inspectit:
instrumentation:
actions:
'a_get_class_information':
imports:
- 'java.lang.StringBuffer'
- 'java.lang.reflect.Method'
- 'java.lang.reflect.Field'
input:
_arg1: Object
# # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Action for extracting header fields of a HTTP requests
# processed by the Java Servlet API. If multiple headers
# with the specified name exists, only the first one
# will be returned.
#
# field : String
# The name of the header field to extract
#
# return