setType() function is used to mark custom transaction as either web or background. The default type is web. Add dependency before starting with the api. pom.xml

Compatibility

Compatible with all Java agent versions.

Syntax

Parameter

Example