Skip to content

Commit d0012cb

Browse files
comments removed.
1 parent 3c7adf0 commit d0012cb

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

instrumentation/vertx/vertx-aerospike-client-3.9/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/vertx/v3_9/aerospike/NativeAerospikeClientInstrumentation.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -120,30 +120,24 @@ public static class GetAdvice {
120120
@Nullable
121121
@Advice.OnMethodEnter(suppress = Throwable.class)
122122
public static ContextHolder onEnter(@Advice.AllArguments Object[] args) {
123-
System.out.println("[AEROSPIKE-INST] GET onEnter called with " + args.length + " arguments");
124-
125123
Key key = null;
126124
for (Object arg : args) {
127125
if (arg instanceof Key) {
128126
key = (Key) arg;
129-
System.out.println("[AEROSPIKE-INST] Found Key in GET: " + key.namespace + "/" + key.setName + "/" + key.userKey);
130127
break;
131128
}
132129
}
133130

134131
AerospikeRequest request = AerospikeInstrumentationHelper.createRequest("GET", key);
135132
if (request == null) {
136-
System.out.println("[AEROSPIKE-INST] GET request is null");
137133
return null;
138134
}
139135

140136
Context parentContext = currentContext();
141137
if (!instrumenter().shouldStart(parentContext, request)) {
142-
System.out.println("[AEROSPIKE-INST] GET instrumenter said NO");
143138
return null;
144139
}
145140

146-
System.out.println("[AEROSPIKE-INST] GET starting span...");
147141
Context context = instrumenter().start(parentContext, request);
148142
return new ContextHolder(context, request, context.makeCurrent());
149143
}
@@ -153,18 +147,12 @@ public static void onExit(
153147
@Advice.Enter @Nullable ContextHolder holder,
154148
@Advice.Thrown Throwable throwable) {
155149

156-
System.out.println("[AEROSPIKE-INST] GET onExit called, holder=" + holder + ", throwable=" + throwable);
157-
158150
if (holder == null) {
159-
System.out.println("[AEROSPIKE-INST] GET holder is null - returning");
160151
return;
161152
}
162153

163-
System.out.println("[AEROSPIKE-INST] GET closing scope...");
164154
holder.scope.close();
165-
System.out.println("[AEROSPIKE-INST] GET ending span...");
166155
instrumenter().end(holder.context, holder.request, null, throwable);
167-
System.out.println("[AEROSPIKE-INST] GET span ended!");
168156
}
169157
}
170158

0 commit comments

Comments
 (0)