Skip to content

Commit aa9ad4f

Browse files
authored
feat(telemetry): add telemetry support for user agent parsing (#90)
* feat(telemetry): add telemetry support for user agent parsing * feat(telemetry): add telemetry support and documentation * feat(telemetry): add native metrics support for user agent parser * feat(telemetry): enhance metrics and telemetry documentation * feat(telemetry): enhance telemetry documentation and add meters support * refactor(telemetry): simplify method signatures and improve readability * refactor(telemetry): remove DEBUG conditional compilation * refactor(telemetry): update metric naming conventions * refactor(telemetry): update duration metrics to seconds * refactor(telemetry): standardize meter names and descriptions * refactor(meters): simplify initialization logic in Enable method * refactor(tests): standardize meter names in telemetry tests * feat(telemetry): add fluent API for meter telemetry configuration * feat(tests): enhance telemetry tests with EventCounter listener * feat(telemetry): ensure EventCounter logging is initialized * feat(telemetry): initialize EventSource in Enable method * feat(telemetry): ensure deterministic EventSource construction * feat(telemetry): refactor meter name generation logic * docs(license): update copyright year to 2026
1 parent f3b8402 commit aa9ad4f

File tree

45 files changed

+3194
-73
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+3194
-73
lines changed

.vscode/tasks.json

Lines changed: 82 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,84 @@
11
{
2-
"version": "2.0.0",
3-
"tasks": [
4-
{
5-
"label": "clean",
6-
"type": "shell",
7-
"command": "dotnet clean",
8-
"problemMatcher": "$msCompile"
9-
},
10-
{
11-
"label": "restore",
12-
"type": "shell",
13-
"command": "dotnet restore",
14-
"problemMatcher": "$msCompile"
15-
},
16-
{
17-
"label": "build",
18-
"type": "shell",
19-
"command": "dotnet build --nologo",
20-
"problemMatcher": "$msCompile",
21-
"group": "build"
22-
},
23-
{
24-
"label": "test",
25-
"type": "shell",
26-
"command": "dotnet test --nologo",
27-
"problemMatcher": "$msCompile",
28-
"group": "test"
29-
},
30-
{
31-
"label": "ci:validate",
32-
"dependsOn": [
33-
"clean",
34-
"restore",
35-
"build",
36-
"test"
37-
],
38-
"dependsOrder": "sequence",
39-
"group": {
40-
"kind": "build",
41-
"isDefault": true
42-
}
43-
}
44-
]
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "dotnet: restore",
6+
"type": "shell",
7+
"command": "dotnet",
8+
"args": [
9+
"restore"
10+
],
11+
"problemMatcher": "$msCompile",
12+
"presentation": {
13+
"reveal": "silent",
14+
"panel": "dedicated",
15+
"close": true,
16+
"showReuseMessage": false
17+
}
18+
},
19+
{
20+
"label": "dotnet: build",
21+
"type": "shell",
22+
"command": "dotnet",
23+
"args": [
24+
"build",
25+
"--no-restore"
26+
],
27+
"problemMatcher": "$msCompile",
28+
"dependsOn": "dotnet: restore",
29+
"presentation": {
30+
"reveal": "always",
31+
"panel": "dedicated",
32+
"close": true,
33+
"showReuseMessage": false
34+
},
35+
"group": "build"
36+
},
37+
{
38+
"label": "dotnet: test",
39+
"type": "shell",
40+
"command": "dotnet",
41+
"args": [
42+
"test",
43+
"--no-build",
44+
"--nologo"
45+
],
46+
"problemMatcher": "$msCompile",
47+
"dependsOn": "dotnet: build",
48+
"presentation": {
49+
"reveal": "always",
50+
"panel": "dedicated",
51+
"close": true,
52+
"showReuseMessage": false
53+
}
54+
},
55+
{
56+
"label": "test",
57+
"type": "shell",
58+
"command": "dotnet test --nologo",
59+
"args": [],
60+
"isBackground": false
61+
},
62+
{
63+
"label": "test",
64+
"type": "shell",
65+
"command": "dotnet test --nologo",
66+
"args": [],
67+
"isBackground": false
68+
},
69+
{
70+
"label": "test",
71+
"type": "shell",
72+
"command": "dotnet test --nologo",
73+
"args": [],
74+
"isBackground": false
75+
},
76+
{
77+
"label": "test",
78+
"type": "shell",
79+
"command": "dotnet test --nologo",
80+
"args": [],
81+
"isBackground": false
82+
}
83+
]
4584
}

Directory.Packages.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<PackageVersion Include="NaughtyStrings" Version="2.4.1" />
77
</ItemGroup>
88
<ItemGroup Label="Dependencies">
9-
<PackageVersion Include="Microsoft.Extensions.Caching.Abstractions" Version="10.0.1" />
9+
<PackageVersion Include="Microsoft.Extensions.Caching.Abstractions" Version="8.0.0" />
1010
<PackageVersion Include="Microsoft.Extensions.Caching.Memory" Version="8.0.1" />
1111
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
1212
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.2" />
@@ -71,4 +71,4 @@
7171
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
7272
</PackageVersion>
7373
</ItemGroup>
74-
</Project>
74+
</Project>

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021-2025 MyCSharp
3+
Copyright (c) 2021-2026 myCSharp.de
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)