-
Notifications
You must be signed in to change notification settings - Fork 13
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
Not seeing custom properties #11
Comments
Dear Shai, thanks for reaching out! I can see from your screenshot, that you have By default, only, failure status codes (4xx, 5xx) and POST, PUT, PATCH verbs are getting logged (see using Azureblue.ApplicationInsights.RequestLogging;
var builder = WebApplication.CreateBuilder(args);
// ...
builder.Services.AddAppInsightsHttpBodyLogging(o =>
{
o.HttpCodes.Add(StatusCodes.Status200OK);
});
// ...
var app = builder.Build();
// ...
app.UseAppInsightsHttpBodyLogging(); Please let me know if that solved your issue! |
Hm, then I guess the call to Please put the call to |
Sir, you are a legend, that is exactly what it was. Thank you! |
Hi there Matthais,
Firstly, thank you so much for putting this package together, its going to be magnificent as soon as I can get it working! :)
I have done exactly as you have described in the README, except I have included
app.UseAppInsightsHttpBodyLogging();
outside of myif (env.IsDevelopment())
. I am not using any configuration options (default setup only).When I look at my App Insights, I do not see the ResponseBody/RequestBody custom properties:
![image](https://user-images.githubusercontent.com/37369023/148238663-3ec31d46-360b-4002-ba4d-b6cfb142d052.png)
![image](https://user-images.githubusercontent.com/37369023/148240604-b6c45d4d-3527-44c1-ab8f-b261fe06445d.png)
Running on Azure:
Running on Local:
Any ideas what I might be doing wrong? Your help would be very much appreciated!
Thanks again,
Shai
The text was updated successfully, but these errors were encountered: