Skip to content

Commit

Permalink
Merge branch 'main' into chore-performance-improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
xoscar committed Feb 8, 2024
2 parents d713747 + 3bfdbab commit 2c11804
Show file tree
Hide file tree
Showing 53 changed files with 1,213 additions and 183 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/deploy-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- shell: bash
run: |
echo "TAG=sha-$(git rev-parse --short=8 $GITHUB_SHA)" >> $GITHUB_ENV
- uses: google-github-actions/setup-gcloud@94337306dda8180d967a56932ceb4ddcf01edae7
with:
service_account_key: ${{ secrets.GKE_SA_KEY }}
Expand All @@ -225,11 +229,18 @@ jobs:

- name: Deploy
run: |
TAG=sha-$(git rev-parse --short=8 $GITHUB_SHA) \
TAG=${{env.TAG}} \
NAME=tracetest-beta \
CONFIG_FILE=./k8s/tracetest.beta.yaml \
EXPOSE_HOST=beta.tracetest.io \
CERT_NAME=tracetest-beta \
BACKEND_CONFIG=tracetest-beta \
./k8s/deploy.sh
- name: Trigger Infra Update
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.INFRA_REPO_PAT }}
repository: ${{ secrets.INFRA_REPO }}
event-type: update-tags
client-payload: '{"repo_name": "tracetest", "new_tag": "${{ env.TAG }}"}'
9 changes: 9 additions & 0 deletions .github/workflows/release-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,12 @@ jobs:
env:
VERSION: ${{ github.ref_name }}

- name: Trigger Infra Update
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.INFRA_REPO_PAT }}
repository: ${{ secrets.INFRA_REPO }}
event-type: update-tags
client-payload: '{"repo_name": "tracetest", "new_tag": "${{ github.ref_name}}"}'


8 changes: 8 additions & 0 deletions .github/workflows/release-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ jobs:
ANALYTICS_BE_KEY: ${{ secrets.ANALYTICS_BE_KEY }}
TRACETEST_DEFAULT_CLOUD_ENDPOINT: ${{ secrets.TRACETEST_DEFAULT_CLOUD_ENDPOINT }}

- name: Trigger Infra Update
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.INFRA_REPO_PAT }}
repository: ${{ secrets.INFRA_REPO }}
event-type: update-tags
client-payload: '{"repo_name": "tracetest", "new_tag": "${{ github.ref_name}}"}'

helm_chart_version_bump:
name: "Trigger Helm chart appVersion update"
needs: "release"
Expand Down
1 change: 1 addition & 0 deletions api/dataStores.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ components:
signoz,
dynatrace,
sumologic,
instana
]
SupportedClients:
type: string
Expand Down
28 changes: 28 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,34 @@ paths:
application/json:
schema:
$ref: "tests.yaml#/components/schemas/ExportedTestInformation"

/tests/{testId}/run/{runId}/search-spans:
post:
tags:
- api
parameters:
- $ref: "./parameters.yaml#/components/parameters/testId"
- $ref: "./parameters.yaml#/components/parameters/runId"
summary: get spans fileter by query
description: get spans fileter by query
operationId: searchSpans
requestBody:
content:
application/json:
schema:
type: object
properties:
query:
type: string
description: query to filter spans, can be either a full text search or a Span Query Language query
responses:
200:
description: trace containing matching spans only
content:
application/json:
schema:
$ref: "tests.yaml#/components/schemas/SearchSpansResult"

/tests/import:
post:
tags:
Expand Down
8 changes: 8 additions & 0 deletions api/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,14 @@ components:
items:
type: string

SearchSpansResult:
type: object
properties:
spansIds:
type: array
items:
type: string

Selector:
type: object
properties:
Expand Down
2 changes: 1 addition & 1 deletion api/trace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ components:
tree:
$ref: "#/components/schemas/Span"
flat:
description: falttened version, mapped as spanId -> span{}
description: flattened version, mapped as spanId -> span{}
type: object
additionalProperties:
$ref: "#/components/schemas/Span"
Expand Down
118 changes: 117 additions & 1 deletion cli/openapi/api_api.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

125 changes: 125 additions & 0 deletions cli/openapi/model_search_spans_request.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2c11804

Please sign in to comment.