Skip to content

Conversation

@Ricehomesky
Copy link
Contributor

Change RedisConnectionInstrumentation and RedisConnectionMethodInterceptor to v2 interface, to solve the problem in this issue #693 .

Comment on lines 157 to 164
.stream()
.map(data -> data.getCommand().getName())
.collect(Collectors.joining(";"));
.stream()
.map(data -> data.getCommand().getName())
.collect(Collectors.joining(";"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These seem unnecessary.

AbstractSpan span = ContextManager.activeSpan();
span.log(t);
public void handleMethodException(EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, Throwable t, MethodInvocationContext context) {
if (ContextManager.isActive()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use flag here as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, i fixed these two problems right now

@wu-sheng wu-sheng requested a review from CzyerChen June 23, 2024 16:14
@wu-sheng wu-sheng added this to the 9.3.0 milestone Jun 23, 2024
@wu-sheng wu-sheng added bug Something isn't working plugin labels Jun 23, 2024
…rg/apache/skywalking/apm/plugin/redisson/v3/RedisConnectionMethodInterceptor.java
@wu-sheng wu-sheng changed the title fix problem which lead redisson plugin to throw unnecessary NullPointerException Fix problem which lead redisson plugin to throw unnecessary NullPointerException Jun 24, 2024
@wu-sheng wu-sheng merged commit 01248a2 into apache:main Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants