-
Notifications
You must be signed in to change notification settings - Fork 90
feat(metrics): New metrics module implementation with support for Metrics providers and usage without annotations #1863
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
2a79c02
Rewrite metrics module with interface abstraction and provider patter…
phipag 4249766
Update default dimension and namespace logic to have the precedence: …
phipag 9961072
Small cosmetic changes.
phipag f1e9acb
Add unit tests.
phipag 6b81805
Update metrics documentation with new interface.
phipag 86cb3ce
Make unit tests compatible with GraalVM. It is not supported to mock …
phipag 483766c
Add GraalVM support bullet points to docs pages.
phipag a14c43c
Update GraalVM metadata files after re-implementing metrics module.
phipag 17c865d
Fix spotbugs issue. This is expected for this factory class for Metri…
phipag 4085b0d
Fix SonarCube findings.
phipag ead827b
Rename back namespace to ServerlessAirline example.
phipag ac56a5b
Fix DimensionSet validation to be inline with most recent specification.
phipag feeefdc
Overload void addDimension(DimensionSet dimensionSet) to be able to a…
phipag a178128
Update setDefaultDimensions to take a DimensionSet instead of a Map.
phipag 4515ee4
Add warning if not emitting metrics and raiseOnEmptyMetrics is false.
phipag cc74f3f
Remove unused imports.
phipag 37de57d
Add namespace validation. Refacator into own Validator class. Require…
phipag 36dd713
Update docs with DimensionSet.of instead of Map.of. Fix naming consis…
phipag e0df19b
Add example for overwriting dimension of cold start metric.
phipag 0a79cec
Add note that metadata needs to be added before flushing.
phipag 7ef4e69
Remove test classes from GRM reflect-config.json.
phipag b05634d
Rename pushSingleMetric to flushSingleMetric.
phipag ba09a50
Add example for high cardinality dimensions using DimensionSet.
phipag 05fe15e
Add support for POWERTOOLS_METRICS_DISABLED environment variable.
phipag eb167f1
Only add service name dimension if the service is actually defined.
phipag 4637fef
Add support for POWERTOOLS_METRICS_FUNCTION_NAME.
phipag c7c9ed5
Add Testing your code section to docs.
phipag e4a3464
Rename @Metrics to @FlushMetrics.
phipag a635610
Rename MetricsLogger to Metrics, rename MetricsLoggerBuilder to Metri…
phipag ef3347a
Add support for setTimestamp.
phipag 6b82ea5
Update regex for namespace validation.
phipag 120b8d0
Fix namespace regex and fix metrics e2e tests.
phipag 26a4b1d
Add comment in empty callAt method to satisfy pmd_analyse.
phipag 0017e8b
Replace usages of standalone Powertools wording with alternative word…
phipag 3d02853
Reduce cognitive complexity of around() method in LambdaMetricsAspect.
phipag 53d054d
Re-generate GRM files after applying MetricsLogger renaming.
phipag File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.