Skip to content

Commit

Permalink
add instrumentation to PeriodicWorkerTask and InstantPeriodicWorkerTa…
Browse files Browse the repository at this point in the history
…sk allowing activity on Flux.interval(..) threads to be linked
  • Loading branch information
jack-berg committed Jan 26, 2021
1 parent 5c9f82a commit cccaa0d
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
*
* * Copyright 2020 New Relic Corporation. All rights reserved.
* * SPDX-License-Identifier: Apache-2.0
*
*/

package reactor.core.scheduler;

import com.newrelic.api.agent.Trace;
import com.newrelic.api.agent.weaver.Weave;
import com.newrelic.api.agent.weaver.Weaver;

@Weave(originalName = "reactor.core.scheduler.InstantPeriodicWorkerTask")
final class InstantPeriodicWorkerTask_Instrumentation {

@Trace(async = true, excludeFromTransactionTrace = true)
public Void call() {
return Weaver.callOriginal();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
*
* * Copyright 2020 New Relic Corporation. All rights reserved.
* * SPDX-License-Identifier: Apache-2.0
*
*/

package reactor.core.scheduler;

import com.newrelic.api.agent.Trace;
import com.newrelic.api.agent.weaver.Weave;
import com.newrelic.api.agent.weaver.Weaver;

@Weave(originalName = "reactor.core.scheduler.PeriodicWorkerTask")
final class PeriodicWorkerTask_Instrumentation {

@Trace(async = true, excludeFromTransactionTrace = true)
public Void call() {
return Weaver.callOriginal();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
*
* * Copyright 2020 New Relic Corporation. All rights reserved.
* * SPDX-License-Identifier: Apache-2.0
*
*/

package reactor.core.scheduler;

import com.newrelic.api.agent.Trace;
import com.newrelic.api.agent.weaver.Weave;
import com.newrelic.api.agent.weaver.Weaver;

@Weave(originalName = "reactor.core.scheduler.InstantPeriodicWorkerTask")
final class InstantPeriodicWorkerTask_Instrumentation {

@Trace(async = true, excludeFromTransactionTrace = true)
public Void call() {
return Weaver.callOriginal();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
*
* * Copyright 2020 New Relic Corporation. All rights reserved.
* * SPDX-License-Identifier: Apache-2.0
*
*/

package reactor.core.scheduler;

import com.newrelic.api.agent.Trace;
import com.newrelic.api.agent.weaver.Weave;
import com.newrelic.api.agent.weaver.Weaver;

@Weave(originalName = "reactor.core.scheduler.PeriodicWorkerTask")
final class PeriodicWorkerTask_Instrumentation {

@Trace(async = true, excludeFromTransactionTrace = true)
public Void call() {
return Weaver.callOriginal();
}
}

0 comments on commit cccaa0d

Please sign in to comment.