-
Notifications
You must be signed in to change notification settings - Fork 764
New issue
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
ILogger logs not reflecting correct application name #5560
Comments
Can you follow #5551 (comment) ? |
|
well, yes it solved this issue, but created another: now there are extra properties... like, my logged message is "Will Delay for 123ms" and now I have a extra property like is there a way to turn off this "auto-enrichment"? |
Are you seeing that enrichment in AzureMonitor only? or when using ConsoleExporters (or OTLP) ? |
Only in azure monitor, this enrichment is not visible on the console |
mm. Strange! Not sure what's going on. I'd suggest to report it at azure-monitor repo. |
Bug Report
Azure.Monitor.OpenTelemetry.AspNetCore 1.1.0
OpenTelemetry.Exporter.Console 1.8.1
OpenTelemetry.Instrumentation.Process1.0.0-alpha.6
OpenTelemetry.Instrumentation.Runtime 1.8.0
Runtime version (e.g.
net462
,net48
,netcoreapp3.1
,net6.0
etc. You canfind this information from the
*.csproj
file):net8.0
Symptom
A clear and concise description of what the bug is.
What is the expected behavior?
That just like the requests and metrics, the log would have the correct App Service Name
What is the actual behavior?
The app name
unknown_service:dotnet
Reproduce
Create a new web api, default template... add the packages above and in the program.cs do
Then run. Using a tool like Fiddler, you can capture the requests going out and you will see that only the logs like "application started etc" have the app name set to
unknown_service:dotnet
Additional Context
N/A
The text was updated successfully, but these errors were encountered: