Skip to content

Commit a38763f

Browse files
committed
revert commented code that was there for a reason
1 parent 20856e3 commit a38763f

File tree

1 file changed

+8
-0
lines changed
  • instrumentation/kotlinx-coroutines/kotlinx-coroutines-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/kotlinxcoroutines/instrumentationannotations

1 file changed

+8
-0
lines changed

instrumentation/kotlinx-coroutines/kotlinx-coroutines-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/kotlinxcoroutines/instrumentationannotations/WithSpanInstrumentation.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,14 @@ public void visitEnd() {
324324
// initialize our local variables, start span and open scope
325325
{
326326
MethodNode temp = new MethodNode();
327+
// insert the following code
328+
//
329+
// request =
330+
// AnnotationInstrumentationHelper.createMethodRequest(InstrumentedClass.class,
331+
// instrumentedMethodName, withSpanValue, withSpanKind)
332+
// context = AnnotationInstrumentationHelper.enterCoroutine(label, continuation,
333+
// request)
334+
// scope = AnnotationInstrumentationHelper.openScope(context)
327335
if (hasBlockingOperation) {
328336
// value of label is on stack
329337
// label is used in call to enterCoroutine and later in @SpanAttribute handling

0 commit comments

Comments
 (0)