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: Metrics AspNetCore support #775

Merged
merged 27 commits into from
Feb 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
1690fef
feat(metrics): add ASP.NET Core metrics package with cold start track…
hjgraca Feb 21, 2025
1756ce1
refactor(metrics): standardize parameter names for metric methods to …
hjgraca Feb 22, 2025
e6f6be6
fix(metrics): ensure thread safety by locking metrics during cold sta…
hjgraca Feb 22, 2025
0ecffb8
fix(tests): conditionally include project reference for net8.0 framework
hjgraca Feb 22, 2025
a3e6a31
feat(build): enhance CI configuration with multi-framework support fo…
hjgraca Feb 22, 2025
c1936a5
fix(build): update .NET setup step to use matrix variable for versioning
hjgraca Feb 22, 2025
910f286
fix(build): simplify dependency installation step in CI configuration
hjgraca Feb 22, 2025
9f6f460
fix(build): pass target framework properties during restore, build, a…
hjgraca Feb 22, 2025
491338e
fix(build): add SkipInvalidProjects property to build properties for …
hjgraca Feb 22, 2025
60d6c64
revert to single job
hjgraca Feb 22, 2025
0f7c21d
test logger
hjgraca Feb 22, 2025
001dabf
fix(build): update test commands and project configurations for .NET …
hjgraca Feb 22, 2025
d6841ab
fix(build): add /tl option to dotnet build command in build.yml
hjgraca Feb 22, 2025
f8f56cf
fix(metrics): add null checks and unit tests for MetricsAspect and Me…
hjgraca Feb 22, 2025
abef8eb
Merge branch 'develop' into feature/metrics-aspnetcore
hjgraca Feb 22, 2025
bd44564
Merge branch 'develop' of https://github.com/hjgraca/powertools-lambd…
hjgraca Feb 22, 2025
a44ca03
Merge branch 'feature/metrics-aspnetcore' of https://github.com/hjgra…
hjgraca Feb 22, 2025
62acbd7
merge
hjgraca Feb 26, 2025
5bc9af2
refactor(metrics): simplify MetricsTests by removing unused variables…
hjgraca Feb 26, 2025
3444d88
docs(metrics): document breaking changes in metrics output format and…
hjgraca Feb 26, 2025
3b090f7
feat(metrics): implement IConsoleWrapper for abstracting console oper…
hjgraca Feb 26, 2025
3688e74
feat(tests): add unit tests for ConsoleWrapper and Metrics middleware…
hjgraca Feb 26, 2025
6431e1a
feat(metrics): add ColdStartTracker for tracking cold starts in ASP.N…
hjgraca Feb 27, 2025
089f505
feat(metrics): add Metrics.AspNetCore version to version.json
hjgraca Feb 27, 2025
6ca8d32
feat(metrics): update default dimensions handling and increase maximu…
hjgraca Feb 27, 2025
4b68241
feat(build): increase verbosity for test and example runs in CI pipeline
hjgraca Feb 27, 2025
367d990
feat(version): update Metrics version to 2.0.0 in version.json
hjgraca Feb 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,33 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup .NET 6.0 & 8.0

- name: Setup .NET SDK
uses: actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab # 4.3.0
with:
dotnet-version: |
6.0.405
8.0.101
6.0.x
8.0.x

- name: Install dependencies
run: dotnet restore

- name: Build
run: dotnet build --configuration Release
- name: Test Examples
run: dotnet test ../examples/
run: dotnet build --configuration Release --no-restore /tl

- name: Test & Code Coverage
run: dotnet test --filter "Category!=E2E" --collect:"XPlat Code Coverage" --results-directory ./codecov --verbosity normal
run: dotnet test --no-restore --filter "Category!=E2E" --collect:"XPlat Code Coverage" --results-directory ./codecov --verbosity normal

- name: Test Examples
run: dotnet test ../examples/ --verbosity normal

- name: Codecov
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # 5.3.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
fail_ci_if_error: false
name: codecov-lambda-powertools-dotnet
verbose: true
directory: ./libraries/codecov
directory: ./libraries/codecov
Loading
Loading