-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add example for telemetry publishing. #304
Add example for telemetry publishing. #304
Conversation
examples/EvaluationDataToApplicationInsights/Pages/Index.cshtml.cs
Outdated
Show resolved
Hide resolved
examples/EvaluationDataToApplicationInsights/Pages/Error.cshtml.cs
Outdated
Show resolved
Hide resolved
examples/EvaluationDataToApplicationInsights/Telemetry/MyTelemetryInitializer.cs
Outdated
Show resolved
Hide resolved
examples/EvaluationDataToApplicationInsights/Telemetry/MyTelemetryInitializer.cs
Outdated
Show resolved
Hide resolved
examples/EvaluationDataToApplicationInsights/Pages/Index.cshtml.cs
Outdated
Show resolved
Hide resolved
Example Output: | ||
|
||
``` | ||
Application Insights Telemetry: {"name":"AppEvents","time":"2023-11-07T19:14:54.3549353Z","tags":{"ai.application.ver":"1.0.0.0"},"data":{"baseType":"EventData","baseData":{"ver":2,"name":"Vote","properties":{"AspNetCoreEnvironment":"Development","DeveloperMode":"true"},"measurements":{"ImageRating":3}}}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where can I find these outputs? I did not find the Output tab for "Application Insights Telemetry"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can only find them in the Debug model.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the output tab of visual studio.
1. Try going to Logs > New Query and run the query "customEvents". This should show the custom events emitted. | ||
1. Try going to Metrics. Under Metric find Custom > checkoutAmount. Change the time range to a small period of time that encompasses your events for a clearer graph. | ||
1. From the Metrics window, out-of-the-box metrics like Page Views and Server Requests can be viewed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. Try going to Logs > New Query and run the query "customEvents". This should show the custom events emitted. | |
1. Try going to Metrics. Under Metric find Custom > checkoutAmount. Change the time range to a small period of time that encompasses your events for a clearer graph. | |
1. From the Metrics window, out-of-the-box metrics like Page Views and Server Requests can be viewed. | |
- Try going to Logs > New Query and run the query "customEvents". This should show the custom events emitted. | |
- Try going to Metrics. Under Metric find Custom > checkoutAmount. Change the time range to a small period of time that encompasses your events for a clearer graph. | |
- From the Metrics window, out-of-the-box metrics like Page Views and Server Requests can be viewed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be numbers since it's a sequential list of steps.
examples/EvaluationDataToApplicationInsights/HttpContextTargetingContextAccessor.cs
Outdated
Show resolved
Hide resolved
examples/EvaluationDataToApplicationInsights/HttpContextTargetingContextAccessor.cs
Outdated
Show resolved
Hide resolved
examples/EvaluationDataToApplicationInsights/HttpContextTargetingContextAccessor.cs
Outdated
Show resolved
Hide resolved
@zhiyuanliang-ms any further concerns on this PR? |
This PR adds an example application that demonstrates the following concepts
It is based off of #284 and is expected to supersede it.
See the included readme for details on how to use the example.