This folder contains the code for a simple "dummy" OTLP back-end.
The goal of this server is to be the target for OTLP exporters from the sample applications. The server keeps the OTLP data in-memory which is then queried by the tests to assert the exported telemetry data.
The server is exposed via port 4319
.
The server exposes endpoints to ingest OTLP protobuf data via HTTP. The endpoints follow the paths from the OTLP specification.
/v1/traces
/v1/metrics
/v1/logs
To query data, the server exposes an endpoint /getotlp
. The following query parameters
can be further specified to filter out data:
signal
: Which telemetry signal to get. One of:traces
metrics
logs
servicename
: Theservice.name
resource attribute of the sample application. This is used by the tests to get the telemetry for the app being tested.
Example query:
http://localhost:4319/getotlp?signal=trace&servicename=myapp