Skip to main content

Configure Trace Ingestion

Tracetest Agent runs alongside your apps, in the same environment/network, to do two things:

  1. Run tests against your apps.
  2. Ingest traces from your apps.

This page explains (2), how to ingest traces into Tracetest Agent to enable trace-based testing.

Enable Trace Ingestion with an OTLP Endpoint​

Create a file called trace-ingestion.yaml.

trace-ingestion.yaml
type: DataStore
spec:
name: Opentelemetry Collector pipeline
type: otlp
default: true

And, run it with the CLI.

Terminal
tracetest apply datastore -f ./trace-ingestion.yaml

Or, use the Web UI. Go to Settings > Trace Ingestion, and toggle "Enable Trace Ingestion" to on.

trace ingestion 1

Select OpenTelemetry.

trace ingestion 2

Configure Trace Exporters to Send Traces to Tracetest Agent​

Once configured, Tracetest Agent exposes OTLP ports 4317 (gRPC) and 4318 (HTTP) for trace ingestion. Configure your trace exporters to send traces to the Tracetest Agent OTLP endpoint.

With the Tracetest Agent running locally, the trace ingestion OTLP endpoints will be:

  • gRPC: http://localhost:4317
  • HTTP: http://localhost:4318/v1/traces
Need more detailed guidance?