forked from grafana/grafana-opentelemetry-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OATs build fixes, better HTTP error test (grafana#79)
* update to build on net8.0 * improve OATs HTTP test
- Loading branch information
1 parent
a196041
commit a6323da
Showing
6 changed files
with
38 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
docker-compose: | ||
generator: lgtm | ||
files: | ||
- ../docker-compose.oats.yml | ||
input: | ||
- path: /api/HttpClient/Get | ||
interval: 500ms | ||
expected: | ||
traces: | ||
- traceql: '{ name =~ "api/HttpClient/Get" }' | ||
spans: | ||
- name: 'GET' | ||
attributes: | ||
http.request.method: GET | ||
metrics: | ||
- promql: http_client_request_duration_count{http_request_method="GET", http_response_status_code="200"} | ||
value: '>= 0' |
18 changes: 18 additions & 0 deletions
18
docker/docker-compose-aspnetcore/http/oats.http-geterror.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
docker-compose: | ||
generator: lgtm | ||
files: | ||
- ../docker-compose.oats.yml | ||
input: | ||
- path: /api/HttpClient/GetError | ||
interval: 500ms | ||
expected: | ||
traces: | ||
- traceql: '{ name =~ "api/HttpClient/GetError" }' | ||
spans: | ||
- name: 'GET' | ||
attributes: | ||
error.type: '500' | ||
http.request.method: GET | ||
metrics: | ||
- promql: http_client_request_duration_count{} | ||
value: '>= 0' |
This file was deleted.
Oops, something went wrong.
This file contains 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"sdk": { | ||
"rollForward": "latestFeature", | ||
"version": "8.0.100-rc.2.23502.2" | ||
"version": "8.0.101" | ||
} | ||
} |