IDEA-340378 print "environment info" using opentelemetry

GitOrigin-RevId: 5fdf1b15d40171cb8b0e2a3ef8f8bbebba92bfca
This commit is contained in:
Vladimir Krivosheev
2023-12-11 12:11:14 +00:00
committed by intellij-monorepo-bot
parent df07fb2ce3
commit b8537c8a99
@@ -148,11 +148,11 @@ class CompilationContextImpl private constructor(
val messages = BuildMessagesImpl.create()
if (options.printEnvironmentInfo) {
messages.block("Environment info") {
messages.info("Community home: ${communityHome.communityRoot}")
messages.info("Project home: $projectHome")
printEnvironmentDebugInfo()
}
Span.current().addEvent("environment info", Attributes.of(
AttributeKey.stringKey("community home"), communityHome.communityRoot.toString(),
AttributeKey.stringKey("project home"), projectHome.toString(),
))
printEnvironmentDebugInfo()
}
if (options.printFreeSpace) {