SDK does not do this by default, I think this is to prevent excessive charges and/or your request body may not be text. For example if your requests accepts large amount of data, or you accept uploading images or other files. However you can log on your own.
Looking at tags, I assume you're using Azure Functions.
I don't know a way to include this in the request telemetry that's logged by functions, unless you create a new request record, which may be confusing. However you can log Trace telemetry for the request body, which will have the same operation ID, so you can still correlate them in queries.
If you're using the built in ILogger implementation, you can use log.LogTrace(...)
. If you're using your own logging with your own TelemetryClient
you can use client.TrackTrace(...)
or new TraceTelemetry()
.
Both requests and traces count under regular data ingestion, so 5GB free per month. They do not count as custom metrics.