Skip to content

Commit 28ceb8e

Browse files
committed
Remove unnecessary test now
1 parent 85eaf45 commit 28ceb8e

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

instrumentation/log4j/log4j-appender-2.17/library/src/test/java/io/opentelemetry/instrumentation/log4j/appender/v2_17/OpenTelemetryAppenderTest.java

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -31,29 +31,4 @@ void setup() {
3131
protected InstrumentationExtension getTesting() {
3232
return testing;
3333
}
34-
35-
@Test
36-
void logWithSpan() { // Does not work for log replay, but it is not likely to occur because
37-
// the log replay is related to the case where an OpenTelemetry object is not yet available
38-
// at the time the log is executed (and if no OpenTelemetry is available, the context
39-
// propagation can't happen)
40-
Span span1 =
41-
testing.runWithSpan(
42-
"span1",
43-
() -> {
44-
logger.info("log message");
45-
return Span.current();
46-
});
47-
48-
executeAfterLogsExecution();
49-
50-
testing.waitAndAssertLogRecords(
51-
logRecord ->
52-
logRecord
53-
.hasSpanContext(span1.getSpanContext())
54-
.hasAttributesSatisfying(
55-
equalTo(
56-
ThreadIncubatingAttributes.THREAD_NAME, Thread.currentThread().getName()),
57-
equalTo(ThreadIncubatingAttributes.THREAD_ID, Thread.currentThread().getId())));
58-
}
5934
}

0 commit comments

Comments
 (0)