custom dimentions price on Azure Monitor Application Insights

t_watanabe 1 Reputation point
2020-08-06T08:29:09.383+00:00

I want to log HTTP request body and parameters on Functions but there is only status code on Application Insights requests table .

So, I try to add data by inserting code "TrackRequest".

How price it is? Does it relate Custom Metric?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,956 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,542 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Madushan Siriwardena 96 Reputation points
    2020-08-07T06:53:52.83+00:00

    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.

    0 comments No comments