Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ The agent automatically instruments the following HTTP clients and messaging ser
* Secure Cookie
* XQuery Injection
* JavaScript Code Injection
* Unsafe Deserialization
* Unsafe Reflection

## **Building**

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.glassfish.jersey.server.ResourceConfig;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
Expand Down Expand Up @@ -112,6 +113,7 @@ public void handleHeaderTest() {
}

@Test
@Ignore
public void asyncHandleHeaderTest() {
String[] responseBody = fireRequest1("/operation/async");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1106,22 +1106,14 @@ public void reportURLMapping() {

@Override
public void dispatcherTransactionStarted() {
try {
Transaction transaction = NewRelic.getAgent().getTransaction();
if (isInitialised() && NewRelicSecurity.isHookProcessingActive()) {
logger.log(LogLevel.FINEST, "Transaction started with token: " + transaction.getToken().toString(), Agent.class.getName());
}
} catch (Exception e){
logger.log(LogLevel.FINEST, "Error while processing transaction started event", e, Agent.class.getName());
}
// Do Nothing
}

@Override
public void dispatcherTransactionCancelled() {
try {
Transaction transaction = NewRelic.getAgent().getTransaction();
if (isInitialised() && NewRelicSecurity.isHookProcessingActive()) {
logger.log(LogLevel.FINEST, "Transaction cancelled with token: " + transaction.getSecurityMetaData().toString(), Agent.class.getName());
TransactionUtils.executeBeforeExitingTransaction();
// TransactionUtils.reportHttpResponse();
}
Expand All @@ -1134,7 +1126,6 @@ public void dispatcherTransactionCancelled() {
public void dispatcherTransactionFinished() {
try {
if (isInitialised() && NewRelicSecurity.isHookProcessingActive()) {
logger.log(LogLevel.FINEST, "Transaction finished with token: " + NewRelic.getAgent().getTransaction().getSecurityMetaData().toString(), Agent.class.getName());
TransactionUtils.executeBeforeExitingTransaction();
// TransactionUtils.reportHttpResponse();
}
Expand Down
Loading