question

JeffreyNg-8990 avatar image
0 Votes"
JeffreyNg-8990 asked Monalla-MSFT edited

How to increase the size of messages logged in App Insight?

Hi

Currently in the Application Insight, the max size of the message details that i can log is 8kb, resulting in some info being cut-off.
Can i ask if the message limit can be increased to more than 8kb?

Appreciated.

azure-monitor
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@JeffreyNg-8990 - Did the below answer help resolve your issue, if not please revert back with any questions.
and if it did, please feel free to "accept as answer" so it can be beneficial to the community.

0 Votes 0 ·

Hi

Thanks for your assistance and the reference!
Our team is using NodeJS, hence we are looking for related info on using the Trace API for nodejs.

Much appreciated!

0 Votes 0 ·
Monalla-MSFT avatar image
0 Votes"
Monalla-MSFT answered

@JeffreyNg-8990 - Thanks for reaching out.

If you are using trackTrace, there is a message size limit of 32768 characters where as if you are using trackevent's custom property then you will have a limit of 8192.

Can you provide what you are using here?

Also Can you make sure you are using the Trace API because then you should be able to have a message length a lot longer that 8kb.

See Docreference here.

Also please take a look at this doc for more reference on Limit summary

Hope this helps.

If the above response helped, please feel free to "Accept as Answer" so it can be beneficial to the community.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Monalla-MSFT avatar image
0 Votes"
Monalla-MSFT answered Monalla-MSFT edited

@jeffreyng-8990 - You should still be able to use TrackTrace for a longer message limit.

See this doc for more reference : api-custom-events-metrics

"The size limit on message is much higher than the limit on properties. An advantage of TrackTrace is that you can put relatively long data in the message.
For example, you can encode POST data there."

Node.js TrackTrace
See the below docs for more reference :
1. nodejs

2. ApplicationInsights-node.js

Hope this helps.

If the above response helped, Please feel free to "Accept as Answer" so it can be beneficial to the community.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.