Skip to content

Commit cbce51b

Browse files
committed
chore: add OpenTelemetry support for metrics collection and export
1 parent 5c770d5 commit cbce51b

File tree

22 files changed

+108
-26
lines changed

22 files changed

+108
-26
lines changed

.vscode/launch.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@
9090
"-i",
9191
"../../samples/Definitions/commitquality",
9292
"-o",
93-
"../../samples/Runs/commitquality"
93+
"../../samples/Runs/commitquality",
94+
"--otlp",
95+
"http://localhost:9090/api/v1/otlp/v1/metrics"
9496
],
9597
"cwd": "${workspaceFolder}/src/testr.Cli",
9698
"stopAtEntry": false
@@ -102,7 +104,11 @@
102104
"preLaunchTask": "build-testR",
103105
"program": "${workspaceFolder}/src/testr.Cli/bin/Debug/net9.0/tomware.TestR.dll",
104106
"args": [
105-
"install-playwright"
107+
"playwright",
108+
"-c",
109+
"install",
110+
"-o",
111+
"chromium"
106112
],
107113
"cwd": "${workspaceFolder}/src/testr.Cli",
108114
"stopAtEntry": false

build/Targets.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,4 +187,4 @@ static void CopyDirectory(string sourceDir, string destinationDir, bool recursiv
187187
}
188188
}
189189
}
190-
#endregion
190+
#endregion
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"Id": "636eeb1d-56e7-4920-9e44-b47b65638bd5",
3+
"IssueId": "",
4+
"Prefix": "Added",
5+
"Tag": "",
6+
"Message": "Added support for OpenTelemetry.",
7+
"CreatedAt": "2025-05-10T20:59:57.9498349+00:00",
8+
"CreatedBy": "thomasduft"
9+
}

samples/Observability/docker-compose.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ services:
1616
container_name: prometheus
1717
command:
1818
- '--config.file=/etc/prometheus/prometheus.yml'
19+
- '--web.enable-otlp-receiver'
1920
ports:
2021
- 9090:9090
2122
restart: unless-stopped

samples/Observability/prometheus/prometheus.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
global:
2-
scrape_interval: 15s
3-
scrape_timeout: 10s
4-
evaluation_interval: 15s
2+
scrape_interval: 1s
3+
scrape_timeout: 1s
4+
evaluation_interval: 1s
55
alerting:
66
alertmanagers:
77
- static_configs:
88
- targets: []
99
scheme: http
10-
timeout: 10s
10+
timeout: 1s
1111
api_version: v2
1212
scrape_configs:
1313
- job_name: prometheus
1414
honor_timestamps: true
15-
scrape_interval: 15s
16-
scrape_timeout: 10s
15+
scrape_interval: 1s
16+
scrape_timeout: 1s
1717
metrics_path: /metrics
1818
scheme: http
1919
static_configs:

samples/Runs/commitquality/TC-Documents-001.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# TC-Documents-001: Upload File
22

3-
- **Date**: 2025-03-26
3+
- **Date**: 2025-05-10
44
- **Author**: Thomas Duft
55
- **Test Priority**: High
66
- **Module Name**: Documents
77
- **Type**: Run
88
- **Status**: Passed
9-
- **Domain**: https://commitquality.com
9+
- **Domain**: https://commitquality.com/
1010
- **Route**: practice-file-upload
1111

1212
## Description

samples/Runs/localhost/Dashboard/TC-Dashboard-100.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# TC-Dashboard-100: Dashboard as administrator
22

3-
- **Date**: 2025-03-22
3+
- **Date**: 2025-05-10
44
- **Test Priority**: High
55
- **Module Name**: Dashboard
66
- **Type**: Run

samples/Runs/localhost/TC-Login-001.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# TC-Login-001: Login
22

3-
- **Date**: 2025-03-22
3+
- **Date**: 2025-05-10
44
- **Test Priority**: High
55
- **Module Name**: Identity
66
- **Type**: Run

samples/Runs/localhost/TC-Login-002.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# TC-Login-002: Login with wrong or not existing Username
22

3-
- **Date**: 2025-03-22
3+
- **Date**: 2025-05-10
44
- **Test Priority**: High
55
- **Module Name**: Identity
66
- **Type**: Run

samples/Runs/localhost/TC-Login-003.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# TC-Login-003: Login with wrong Password
22

3-
- **Date**: 2025-03-22
3+
- **Date**: 2025-05-10
44
- **Test Priority**: High
55
- **Module Name**: Identity
66
- **Type**: Run

0 commit comments

Comments
 (0)