-
Notifications
You must be signed in to change notification settings - Fork 6
Add api-usage-analytics sample - Track API endpoint usage with ExecutionSummaryPlugin #48
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
base: main
Are you sure you want to change the base?
Conversation
Validation failed!File: samples/api-usage-analytics/assets/sample.json
|
waldekmastykarz
left a comment
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.
@copilot make a web app to show this in action. It would be more convenient than repeated calling API using curl
| "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.0.0/executionsummaryplugin.schema.json", | ||
| "groupBy": "url" | ||
| }, | ||
| "logLevel": "information", |
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.
@copilot these properties are default so remove them
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.
Removed in 0b39d1a.
| "longDescription": [ | ||
| "Demonstrates how to use Dev Proxy to track and analyze API usage patterns, showing which endpoints are used most frequently with reports in plain text, JSON, and Markdown formats." | ||
| ], | ||
| "creationDateTime": "2026-01-06", |
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.
@copilot update to today's date
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.
Updated to 2026-01-09 in 0b39d1a.
Added a web app with interactive buttons to call different API endpoints, live statistics, and a request log. Includes "Simulate User Session" and "Burst 10 Requests" quick actions. Commit 0b39d1a. |
|
@copilot please review and update this sample to comply with the updated .github/copilot-instructions.md |
Reviewed and verified the sample complies with copilot-instructions.md in commit a76a0bf:
|
|
@copilot please also:
|
Both changes are already in place from commit a76a0bf:
|
|
@copilot One more thing: please update the screenshot in |
Updated in 2a63618. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot Please make the following changes:
This keeps the sample configs minimal and easier to understand. |
Done in 3d45d5f:
Also updated:
|
waldekmastykarz
left a comment
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.
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.
@copilot update screenshot based on the latest version of index.html
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.
Updated in 2bd7fa5.
| - Navigate to the sample folder: `cd samples/api-usage-analytics` | ||
| - Run `npm install` to install dependencies | ||
| - Run `npm start` to start Dev Proxy and the web server | ||
| - Open http://localhost:3000 in your browser (configure browser to use Dev Proxy at `http://127.0.0.1:8000`) |
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.
@copilot not needed to configure the browser to use proxy, it's done automatically.
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.
Removed in 2bd7fa5. Updated both index.html and README.md to remove the browser proxy configuration instruction.
Co-authored-by: waldekmastykarz <11164679+waldekmastykarz@users.noreply.github.com>
Co-authored-by: waldekmastykarz <11164679+waldekmastykarz@users.noreply.github.com>
Co-authored-by: waldekmastykarz <11164679+waldekmastykarz@users.noreply.github.com>
Co-authored-by: waldekmastykarz <11164679+waldekmastykarz@users.noreply.github.com>
Co-authored-by: waldekmastykarz <11164679+waldekmastykarz@users.noreply.github.com>
Co-authored-by: waldekmastykarz <11164679+waldekmastykarz@users.noreply.github.com>
|
@copilot Please use the validation skill to validate this Dev Proxy sample. Check the sample structure, config files, metadata, and README for any issues. If you find problems, please fix them. |
2bd7fa5 to
62c4c8e
Compare
Co-authored-by: waldekmastykarz <11164679+waldekmastykarz@users.noreply.github.com>
Ran the validation skill and fixed one issue in e816c55:
All validation checks now pass:
|



This sample demonstrates how to use Dev Proxy to track and analyze API usage patterns using the ExecutionSummaryPlugin combined with multiple reporter plugins.
Features
Configuration
.devproxyfolder (recommended location)Validation Complete ✓
Ran validation skill and fixed:
PRESETfrom "Yes" to "No" (sample has web app specific to JSONPlaceholder)All checks pass:
Web App Screenshot
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.