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

feat: otlp connection span count/reset endpoints #3533

Merged
merged 11 commits into from
Jan 17, 2024
7 changes: 7 additions & 0 deletions api/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,10 @@ components:
type: array
items:
$ref: "./config.yaml#/components/schemas/Demo"
OTLPTestConnectionResponse:
type: object
properties:
spanCount:
type: integer
lastSpanTimestamp:
type: date
26 changes: 26 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,32 @@ paths:
application/json:
schema:
$ref: "./config.yaml#/components/schemas/TestConnectionResponse"
/config/connection/otlp:
get:
tags:
- api
summary: get information about the OTLP connection
description: get information about the OTLP connection
operationId: getOTLPConnectionInformation
responses:
200:
description: The connection information was retrieved successfully
content:
application/json:
schema:
$ref: "./config.yaml#/components/schemas/OTLPTestConnectionResponse"
408:
description: The connection information was not available and the connection timed out
/config/connection/otlp/reset:
post:
tags:
- api
summary: reset the OTLP connection span count
description: reset the OTLP connection span count
operationId: resetOTLPConnectionInformation
responses:
200:
description: Ok
/configs:
get:
tags:
Expand Down
188 changes: 188 additions & 0 deletions cli/openapi/api_api.go

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