Skip to Content

Tracing and log retention

Turn on OpenTelemetry tracing for a service, with automatic instrumentation or your own SDK, and see how long its logs are kept.

Both are near the end of a service's Settings.

Tracing

Tracing sends OpenTelemetry traces from the service. It's off by default.

Tracing: Send OpenTelemetry traces from this app to the Traces page, Off
Tracing: Send OpenTelemetry traces from this app to the Traces page, Off

Tracing is included in the Business plan.

Turn it on and pick the language

Switch Tracing on and choose the service's Language: Node.js (the default), Python, Java or .NET. For these, the card says "Java, Node.js, Python and .NET are instrumented automatically on the next deploy", and that the app restarts once.

Tracing On with Language Node.js: Java, Node.js, Python and .NET are instrumented automatically on the next deploy
Tracing On with Language Node.js: Java, Node.js, Python and .NET are instrumented automatically on the next deploy

If your code already uses an OpenTelemetry SDK, choose Other: my own OpenTelemetry SDK. Nothing is added to your code; the service gets the settings your SDK needs.

Tracing On with Other: my own OpenTelemetry SDK: Your SDK gets OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_EXPORTER_OTLP_PROTOCOL and OTEL_SERVICE_NAME
Tracing On with Other: my own OpenTelemetry SDK: Your SDK gets OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_EXPORTER_OTLP_PROTOCOL and OTEL_SERVICE_NAME

Commit and deploy

Click Commit 1 change; the dialog lists Tracing with on. Click Deploy 1 change.

With Other: my own OpenTelemetry SDK, the deployed service had these variables, ready for any OpenTelemetry SDK:

VariableValue
OTEL_EXPORTER_OTLP_ENDPOINTwhere to send traces
OTEL_EXPORTER_OTLP_PROTOCOLhttp/protobuf
OTEL_SERVICE_NAMEthe service's name

To stop, switch Tracing off and deploy again.

The traces show up on the Traces page in Coroot. For code that adds your own spans, attributes, events and errors, and what we saw in Coroot, see Telemetry examples.

Log retention

Log retention shows how far back the service's logs can be searched in Logs. It isn't a setting you change: it comes from your plan.

Log retention: How far back this app's logs can be searched, 30 days
Log retention: How far back this app's logs can be searched, 30 days
PlanLog retention
Trial1 day
Developer3 days
Pro14 days
Business30 days

To read and search logs, see Logs.

On this page