Skip to content

Sporadic failing test in inferred-spans #2149

@laurit

Description

@laurit

See https://scans.gradle.com/s/k77oi6bbrx2ew/tests/task/:inferred-spans:test/details/io.opentelemetry.contrib.inferredspans.InferredSpansAutoConfigTest/checkProfilerWorking()?top-execution=1

java.lang.AssertionError: 	
Expecting size of:	
  [SpanData{spanContext=ImmutableSpanContext{traceId=7dcd14b33b36f375ace29d344a0a3118, spanId=824f6b362b41c0af, traceFlags=01, traceState=ArrayBasedTraceState{entries=[]}, remote=false, valid=true}, parentSpanContext=ImmutableSpanContext{traceId=00000000000000000000000000000000, spanId=0000000000000000, traceFlags=00, traceState=ArrayBasedTraceState{entries=[]}, remote=false, valid=false}, resource=Resource{schemaUrl=null, attributes={service.name="unknown_service:java", telemetry.sdk.language="java", telemetry.sdk.name="opentelemetry", telemetry.sdk.version="1.53.0"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=manual-spans, version=null, schemaUrl=null, attributes={}}, name=my-root, kind=INTERNAL, startEpochNanos=1755723073379338000, endEpochNanos=1755723073696428791, attributes={}, totalAttributeCount=0, events=[], totalRecordedEvents=0, links=[], totalRecordedLinks=0, status=ImmutableStatusData{statusCode=UNSET, description=}, hasEnded=true}]	
to be greater than or equal to 2 but was 1	
at io.opentelemetry.contrib.inferredspans.InferredSpansAutoConfigTest.lambda$checkProfilerWorking$7(InferredSpansAutoConfigTest.java:148)	
at org.awaitility.core.AssertionCondition.lambda$new$0(AssertionCondition.java:53)	
at org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:248)	
at org.awaitility.core.ConditionAwaiter$ConditionPoller.call(ConditionAwaiter.java:235)	
at java.util.concurrent.FutureTask.run(FutureTask.java:264)	
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)	
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)	
at java.lang.Thread.run(Thread.java:829)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions