HTTP configuration options
editHTTP configuration options
editcapture_body
editFor transactions that are HTTP requests, the Java agent can optionally capture the request body (e.g. POST variables).
If the request has a body and this setting is disabled, the body will be shown as [REDACTED].
This option is case-insensitive.
NOTE: Currently, only application/x-www-form-urlencoded
(form parameters) are supported.
Forms which include a file upload (multipart/form-data
) are not supported.
request bodies often contain sensitive values like passwords, credit card numbers etc.If your service handles data like this, we advise to only enable this feature with care.
Valid options: off
, errors
, transactions
, all
Default | Type | Dynamic |
---|---|---|
|
EventType |
true |
Java System Properties | Property file | Environment |
---|---|---|
|
|
|
ignore_urls
editUsed to restrict requests to certain URLs from being instrumented.
This property should be set to an array containing one or more strings. When an incoming HTTP request is detected, its URL will be tested against each element in this list.
A wildcard expression may either contain a single wildcard in the middle or have wildcards at the beginning and/or the end. Legal: *foo*
, foo*
, *foo
, foo*bar*
. Illegal: foo*bar*
, foo*bar*baz
.
Prepending an element with (?i)
makes the matching case-insensitive.
All errors that are captured during a request to an ignored URL are still sent to the APM Server regardless of this setting.
Default | Type | Dynamic |
---|---|---|
|
List |
true |
Java System Properties | Property file | Environment |
---|---|---|
|
|
|
ignore_user_agents
editUsed to restrict requests from certain User-Agents from being instrumented.
When an incoming HTTP request is detected,
the User-Agent from the request headers will be tested against each element in this list.
Example: curl/*, (?i)*pingdom*
A wildcard expression may either contain a single wildcard in the middle or have wildcards at the beginning and/or the end. Legal: *foo*
, foo*
, *foo
, foo*bar*
. Illegal: foo*bar*
, foo*bar*baz
.
Prepending an element with (?i)
makes the matching case-insensitive.
All errors that are captured during a request by an ignored user agent are still sent to the APM Server regardless of this setting.
Default | Type | Dynamic |
---|---|---|
|
List |
true |
Java System Properties | Property file | Environment |
---|---|---|
|
|
|
use_path_as_transaction_name
editIf set to true
,
transaction names of unsupported Servlet API-based frameworks will be in the form of $method $path
instead of just $method
.
If your URLs contain path parameters like /user/$userId
,
you should be very careful when enabling this flag,
as it can lead to an explosion of transaction groups.
Take a look at the url_groups
option on how to mitigate this problem by grouping URLs together.
Default | Type | Dynamic |
---|---|---|
|
Boolean |
false |
Java System Properties | Property file | Environment |
---|---|---|
|
|
|
url_groups
editThis option is only considered, when use_path_as_transaction_name
is active.
With this option, you can group several URL paths together by using a wildcard expression like /user/*
.
A wildcard expression may either contain a single wildcard in the middle or have wildcards at the beginning and/or the end. Legal: *foo*
, foo*
, *foo
, foo*bar*
. Illegal: foo*bar*
, foo*bar*baz
.
Prepending an element with (?i)
makes the matching case-insensitive.
Default | Type | Dynamic |
---|---|---|
|
List |
true |
Java System Properties | Property file | Environment |
---|---|---|
|
|
|