Problem
Go tests run through this module have no OTel instrumentation. There are no spans per package or test.
Solution
Replace go test with otelgotest here. It's a drop-in replacement that emits OTel spans for each package and test automatically. Build it from source since we're already in a Go build environment.
The Cloud UI can then group results by package in its test view. Tests using testctx with custom spans nest properly.
Related
Problem
Go tests run through this module have no OTel instrumentation. There are no spans per package or test.
Solution
Replace
go testwithotelgotesthere. It's a drop-in replacement that emits OTel spans for each package and test automatically. Build it from source since we're already in a Go build environment.The Cloud UI can then group results by package in its test view. Tests using
testctxwith custom spans nest properly.Related
otelgotestPR: addgo test& JUnit OpenTelemetry emitting otel-go#2