Skip to content

Commit

Permalink
Merge pull request scouter-project#979 from psw0946/feature/reactor-c…
Browse files Browse the repository at this point in the history
…ore-upgrade

[agent.java] reactor-core library version up
  • Loading branch information
gunlee01 authored Feb 22, 2024
2 parents 1f9fbc4 + cd7fac0 commit 2a595d7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scouter.agent.java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@
<dependency>
<groupId>io.projectreactor</groupId>
<artifactId>reactor-core</artifactId>
<version>3.3.8.RELEASE</version>
<version>3.4.35</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ public static Tuple.StringLongPair nameOnCheckpoint(Object candidate, int maxSca
}
if (closeAssembly instanceof MonoOnAssembly) {
FluxOnAssembly.AssemblySnapshot snapshot = ((MonoOnAssembly) closeAssembly).stacktrace;
if (snapshot != null && snapshot.checkpointed) {
if (snapshot != null && snapshot.isCheckpoint()) {
return new Tuple.StringLongPair(snapshot.cached, snapshot.hashCode());
}
} else if (closeAssembly instanceof FluxOnAssembly) {
FluxOnAssembly.AssemblySnapshot snapshot = ((FluxOnAssembly) closeAssembly).snapshotStack;
if (snapshot != null && snapshot.checkpointed) {
if (snapshot != null && snapshot.isCheckpoint()) {
return new Tuple.StringLongPair(snapshot.cached, snapshot.hashCode());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public Object subscriptOnContext(Object mono0, final TraceContext traceContext)
}
Mono<?> mono = (Mono<?>) mono0;
traceContext.isReactiveTxidMarked = true;
return mono.subscriberContext(new Function<Context, Context>() {
return mono.contextWrite(new Function<Context, Context>() {
@Override
public Context apply(Context context) {
return context.put(TraceContext.class, traceContext);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public Object subscriptOnContext(Object mono0, final TraceContext traceContext)
}
Mono<?> mono = (Mono<?>) mono0;
traceContext.isReactiveTxidMarked = true;
return mono.subscriberContext(new Function<Context, Context>() {
return mono.contextWrite(new Function<Context, Context>() {
@Override
public Context apply(Context context) {
return context.put(TraceContext.class, traceContext);
Expand Down

0 comments on commit 2a595d7

Please sign in to comment.