Skip to content

Commit 2ad7f9e

Browse files
Merge pull request #2473 from newrelic/Lettuce_Skip6_0
Skip the 6.0 instrumentation if the RedisJsonCommandBuilder exists
2 parents 6d4486a + 33f2868 commit 2ad7f9e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
*
3+
* * Copyright 2025 New Relic Corporation. All rights reserved.
4+
* * SPDX-License-Identifier: Apache-2.0
5+
*
6+
*/
7+
8+
package io.lettuce.core;
9+
10+
import com.newrelic.api.agent.weaver.SkipIfPresent;
11+
12+
/***
13+
* This is a convenience version-matching-control class.
14+
* We do not want this instrumentation module to apply to lettuce versions >= 6.5.
15+
* RedisJSONCommandBuilder was introduced in lettuce 6.5 and will force earlier versions not to match.
16+
*
17+
* This weave class provides no instrumentation and can be safely removed if another matching control mechanism is identified.
18+
*/
19+
20+
@SkipIfPresent(originalName = "io.lettuce.core.RedisJsonCommandBuilder")
21+
class Skip_RedisJsonCommandBuilder {
22+
//Here for matching purposes only.
23+
}

0 commit comments

Comments
 (0)