Skip to content
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

Merged

Conversation

jimmyca15
Copy link
Member

@jimmyca15 jimmyca15 commented Nov 7, 2023

This PR adds an example application that demonstrates the following concepts

  • Feature evaluation event publishing
  • The built-in telemetry publisher included in the Microsoft.FeatureManagement.Telemetry.ApplicationInsights package.
  • Feature variant definition/consumption.

It is based off of #284 and is expected to supersede it.

See the included readme for details on how to use the example.

image

@jimmyca15 jimmyca15 changed the base branch from main to preview November 7, 2023 19:48
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}}}}
Copy link
Contributor

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"

Copy link
Contributor

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.

Copy link
Member Author

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.

Comment on lines +75 to +77
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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

Copy link
Member Author

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.

@jimmyca15
Copy link
Member Author

@zhiyuanliang-ms any further concerns on this PR?

@jimmyca15 jimmyca15 merged commit 3ef5f34 into microsoft:preview Nov 15, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants