Custom data question
See original GitHub issueHi,
I’m hoping for a little help here. I’ve got an hapijs api running and i’m trying to track each key value pair from the querystring, and add them as custom data. I just can’t figure out how to do this. I’m currently trying traceTrace but nothing appears to show. I can see the common property showing up.
Second quick question: if i use client in this way do I need to use trackNodeHttpRequest?
appInsights.setup(this.config.insights.key);
appInsights.start();
appInsights.defaultClient.commonProperties = {
environment: process.env.NODE_ENV || 'development'
};
let client = appInsights.defaultClient;
server.ext('onPreResponse', (request, h) => {
client.trackTrace( request.query );
client.trackNodeHttpRequest({ request: request.raw.req, response: request.raw.res });
});
I want to show up here.

Thanks in advance.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Fine-Tune Transformer Models For Question Answering On ...
A tutorial on fine-tuning the Hugging Face RoBERTa QA Model on custom data and obtaining significant performance boosts. Extractive Question ...
Read more >Fine-tuning with custom datasets - Hugging Face
This involves fine-tuning a model which predicts a start position and an end position in the passage. We will use the Stanford Question...
Read more >How to build a custom data set for Question Answering #2207
Hi community, I have two questions regarding building a custom data set for the "Question Answering" task.
Read more >Collecting Data With Custom Questions - Galaxy Digital
Your site manager panel includes several options for asking custom questions of your users. These options are available in the following ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@OsvaldoRosado I can confirm this has worked. Thanks for all your help.
@leemm To put POST parameters from the body into custom dimensions instead of from the querystring you can just slightly modify the example telemetry processor to read the proper fields from the
context['http.ServerRequest']object.This is slightly tricky since you’ll have to re-parse the request body inside the telemetry processor. To avoid duplicating the work hapi does for you, you can export the field during your hapi request handler. Eg:
If you do this, the payload parameters will be in your telemetry processor at
context['http.ServerRequest'].payload