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

chore: wrap momento metrics json in momento object for cloudwatch metric filters #998

Merged
merged 4 commits into from
Nov 2, 2023

Conversation

anitarua
Copy link
Contributor

@anitarua anitarua commented Nov 1, 2023

So that #970 can incorporate MomentoMetricsMiddleware into the metric filters (e.g. {$.MomentoMetricsMiddleware.status >= 0}) to avoid clashing with other metrics customers may stream to a log group.

* The ID of the specific connection that made the request
*/
connectionID: string;
MomentoMetricsMiddleware: {
Copy link
Contributor

Choose a reason for hiding this comment

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

not a strong opinion but I think momento. numActiveRequestsAtStart or momento.duration will be a cleaner UX than MomentoMetricsMiddleware.duration

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I like that better too, updated

pratik151192
pratik151192 previously approved these changes Nov 1, 2023
@anitarua anitarua changed the title chore: wrap momento metrics json in MomentoMetricsMiddleware object for cloudwatch metric filters chore: wrap momento metrics json in momento object for cloudwatch metric filters Nov 1, 2023
Copy link
Contributor

@cprice404 cprice404 left a comment

Choose a reason for hiding this comment

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

oh yeah

@cprice404
Copy link
Contributor

Thanks for doing this! we might wanna file a ticket to capture that we should make the same update in .NET.

@anitarua
Copy link
Contributor Author

anitarua commented Nov 2, 2023

good call, the .NET update seems to be simpler

@anitarua anitarua merged commit 03a06bb into main Nov 2, 2023
13 checks passed
@anitarua anitarua deleted the update-experimental-metrics branch November 2, 2023 20:13
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.

3 participants