Skip to content

Commit

Permalink
feat: otlp connection span count/reset endpoints (#3533)
Browse files Browse the repository at this point in the history
* feat: add new endpoint for requesting the OTLP connection test

* wip

* make ingester count spans all the time

* enable otlp ingester if connection is being tested

* implement both otlp get count spans and reset count endpoints

* revert changes used to debug feature

* revert change

* add spacing

* fix test

* extract default timeout into a const
  • Loading branch information
mathnogueira authored Jan 17, 2024
1 parent 18f01ec commit 1611db7
Show file tree
Hide file tree
Showing 15 changed files with 801 additions and 14 deletions.
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.

Loading

0 comments on commit 1611db7

Please sign in to comment.