Comments (4)
@dabgar could you give us some details on this? In #3668, Peter suggested telemetry could be logged through these two classes:
https://github.com/microsoft/botbuilder-dotnet/blob/main/libraries/Microsoft.Bot.Builder.AI.QnA/Dialogs/QnAMakerDialog.cs
https://github.com/microsoft/botbuilder-dotnet/blob/main/libraries/Microsoft.Bot.Builder.AI.QnA/QnAMaker.cs
Are you saying that, even coded added to log telemetry data through these classes, it is not appearing in App Insights?
from botframework-solutions.
Attaching a screenshot of the issue faced.
The code shared is C# code , is there a nodejs version of the same.
Also like answer and question which comes directly without adding any code is it not possible to get the metadata similar way?
Let me know the way to get the metadata of qnamaker in the insight(complete procedure with the query please)
from botframework-solutions.
@dabgar, Peter's suggestion of writing a custom dialog to achieve this would be my recommendation as well. Unfortunately, we do not have a sample available that illustrates how to achieve this functionality.
There is a sample custom dialog, the MultiplyDialog
in the samples repo that shows how to write a custom dialog.
The general approach you would take is to write a custom dialog extending from QnAMakerDialog
, probably overriding the protected getQnaMakerClient(...)
method to return a custom QnAMaker
implementation that includes the metadata you care about in the onQnaResults
method. Below is some pseudocode that illustrates the example
class CustomQnAMakerDialog extends QnAMakerDialog {
async getQnaMakerClient(dialogContext) {
const client = await super.getQnAMakerClient(dialogContext);
const onQnaResults = client.onQnaResults.bind(client);
client.onQnaResults = (qnaResults, turnContext, properties = {}, metrics = {}) => {
properties = { ...properties, custom: 'property' };
metrics = { ...metrics, custom: 1.0 };
return onQnaResults(qnaResults, turnContext, properties, metrics);
}
}
}
As I mentioned above, this is pseudocode so you will have to study it and probably amend it further to suit your needs. I hope this helps!
from botframework-solutions.
Closing with Josh Gummersall's answer.
from botframework-solutions.
Related Issues (20)
- [Docs] Missing " in dispatch add --type "qna" --name "kb-name ` HOT 1
- Can we have more examples in TypeScript HOT 1
- Store Transcript and Logging in CosmosDB HOT 2
- MS Teams: refresh_token not coming from OAuhCard in AAD v2 HOT 3
- Oauth Card Login button not working in MS teams HOT 2
- VA + Skill Template Bots do not start up when hosted Out-Of-Process HOT 2
- Azure Devops Pipeline failing on Nuget restore with latest bot-solutions package 1.1.0 HOT 9
- Bot works in Test in Web Chat & Emulator but not in Microsoft Teams HOT 2
- Data source error: DataSource.Error: <pii>Web.Contents failed to get contents from (long url here) 400): Bad Request. The exception was raised by the IDbCommand interface. Table: EventTelemetry. HOT 11
- conversationId is not coming in BotMessageSend telemetry event HOT 6
- Bot Framework Emulator: Invalid `applicationId` value detected HOT 1
- [Docs] Download and install the Virtual Assistant and Skill Templates. - Requested page not found HOT 1
- Knowledgebase is not getting created through Virtual Assistant template PowerShell script HOT 9
- Direct Line App Service Extension does not work with Azure bot created with Virtual Assistant Template HOT 17
- QNA Maker HOT 2
- Problems to understand the Users Inputs on Virtual Assistant Sample - Virtual Assistant Sample not work HOT 4
- Azure bot app hosting startup assembly exception HOT 1
- Azure bot telephony channel not working HOT 1
- Add Custom Commands application as a skill in Bot framework composer application HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from botframework-solutions.