Skip to content

Commit df37e7a

Browse files
Remove rpc.grpc.full_method tag
1 parent a8ca4fe commit df37e7a

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

dd-java-agent/appsec/src/main/java/com/datadog/appsec/gateway/GatewayBridge.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ public class GatewayBridge {
6161
private static final Pattern QUERY_PARAM_VALUE_SPLITTER = Pattern.compile("=");
6262
private static final Pattern QUERY_PARAM_SPLITTER = Pattern.compile("&");
6363
private static final Map<String, List<String>> EMPTY_QUERY_PARAMS = Collections.emptyMap();
64-
private static final String GRPC_FULL_METHOD_NAME_TAG = "rpc.grpc.full_method";
6564

6665
/** User tracking tags that will force the collection of request headers */
6766
private static final String[] USER_TRACKING_TAGS = {
@@ -370,9 +369,6 @@ public void init() {
370369
if (ctx == null || method == null || method.isEmpty()) {
371370
return NoopFlow.INSTANCE;
372371
}
373-
// set the tag used by the backend to generate the grpc pass-lists
374-
TraceSegment segment = ctx_.getTraceSegment();
375-
segment.setTagCurrent(GRPC_FULL_METHOD_NAME_TAG, method);
376372
while (true) {
377373
DataSubscriberInfo subInfo = grpcServerMethodSubInfo;
378374
if (subInfo == null) {

dd-smoke-tests/appsec/springboot-grpc/src/test/groovy/datadog/smoketest/appsec/ServerMethodTest.groovy

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ class ServerMethodTest extends AbstractSpringBootWithGRPCAppSecTest {
2828
[
2929
parameters: [
3030
inputs: [[address: 'grpc.server.method']],
31-
list : ['/smoketest.Greeter/Hello'],
31+
regex : 'Greeter',
3232
],
33-
operator : 'phrase_match',
33+
operator : 'match_regex',
3434
]
3535
],
3636
transformers: [],
@@ -66,6 +66,5 @@ class ServerMethodTest extends AbstractSpringBootWithGRPCAppSecTest {
6666
match != null
6767
match['parameters'][0]['address'] == 'grpc.server.method'
6868
match['parameters'][0]['value'] == 'smoketest.Greeter/Hello'
69-
grpcRootSpan.meta['rpc.grpc.full_method'] == 'smoketest.Greeter/Hello'
7069
}
7170
}

0 commit comments

Comments
 (0)