We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logs are not resolved when using MessageFormat variant of logs. Using String.format variant works as expected:
MessageFormat
String.format
var replacement = "replaced!"; Log.infov("infov {0}", replacement); // results in OpenTelemetry log message "infov {0}" Log.infof("infof %s", replacement); // results in OpenTelemetry log message "infov replaced!"
Log.infov produces formatted messages in OpenTelemetry logs.
Log.infov
Format string (template) is being sent to OpenTelemetry.
Attached quick start example may be used as a reproducer.
uname -a
ver
No response
java -version
3.16.2
mvnw --version
gradlew --version
Reproducer: opentelemetry-quickstart.zip
The text was updated successfully, but these errors were encountered:
/cc @brunobat (opentelemetry), @radcortez (opentelemetry)
Sorry, something went wrong.
App log shows:
15:39:59 INFO traceId=d56be2a58ec662c9cfa3028eefd093a2, parentId=, spanId=726ddb9a87c01b80, sampled=true [or.ac.op.TracedResource] (executor-thread-1) infov replaced! 15:39:59 INFO traceId=d56be2a58ec662c9cfa3028eefd093a2, parentId=, spanId=726ddb9a87c01b80, sampled=true [or.ac.op.TracedResource] (executor-thread-1) infof replaced!
OTel Logging shows:
2024-11-12 15:39:59.346 infof replaced! 2024-11-12 15:39:59.345 infov {0}
Looks like there is a problem with LOG.infov
LOG.infov
alesj
Successfully merging a pull request may close this issue.
Describe the bug
Logs are not resolved when using
MessageFormat
variant of logs. UsingString.format
variant works as expected:Expected behavior
Log.infov
produces formatted messages in OpenTelemetry logs.Actual behavior
Format string (template) is being sent to OpenTelemetry.
How to Reproduce?
Attached quick start example may be used as a reproducer.
Output of
uname -a
orver
No response
Output of
java -version
No response
Quarkus version or git rev
3.16.2
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
Reproducer:
opentelemetry-quickstart.zip
The text was updated successfully, but these errors were encountered: