VitalRix
Logs, metrics and traces, linked together
Search and tail your logs, chart any metric, and follow one request across all your services. Jump from a log line to its trace and back.
10 min read14 sectionsUpdated
On this page
Three kinds of evidence, usually in three tools
When something breaks you need three questions answered. What happened? That is a log line. How bad is it and since when? That is a metric. Where in the request did the time or the error come from? That is a trace.
In many setups each answer lives in a different product with its own login, its own query language and its own idea of time. You copy a request id from one browser tab, paste it into another and hope the clocks agree.
VitalRix keeps all three in one place and connects them. A log line carries a trace id and links to the trace. A trace links back to all its log lines. An incident opens with the logs, traces and metrics of its time window already filtered. The result is that debugging is a sequence of clicks, not a sequence of tools.
Distributed tracing
A trace is one request's journey through your system: the incoming call, the database queries, the calls to other services and how long each part took. Each part is a span. VitalRix receives traces over OTLP, the OpenTelemetry protocol, so any language works. W3C trace context keeps one request as one trace across services.
On the Traces page you see recent requests with their root operation, service, duration, span count and whether they failed. In the waterfall each bar is a span, indented under its caller. Self time shows how long a span spent in its own work. A per-service breakdown shows where the total went. Select a span for its attributes: method, status, database statement shape and errors.
Before a span is stored, secrets in attributes, tokens, passwords, query-string values and SQL values are removed.
Find the right trace
Traces are filtered by any combination of these. From APM you arrive already filtered, for example from an endpoint's slowest requests.
| Filter | Example |
|---|---|
| Service | checkout |
| Status | Only errors |
| Minimum duration | Slower than 500 ms |
| Operation | POST /orders |
| Environment | production |
| Endpoint | GET /orders/:id |
| Time range | The last hour by default, or a custom range |
If some spans were not received because they were sampled out, dropped or not yet exported, the trace is marked incomplete and the missing parents are listed, so you know the picture is partial.
Logs: search, filter, tail
Send logs over HTTPS as JSON, one entry or up to 1,000 per request, with an API key that can only write logs (the Log ingestion preset under Settings, then API keys). On the Logs page you search the message text and filter by level, service, environment, trace id, request id and metadata values such as orderId equal to o_123. Every filter becomes part of the page address, so you can bookmark a search or paste it to a colleague.
- Click a line to see its metadata, copy it, open its trace, or filter by its trace or request id.
- Live tail streams new lines as they arrive with your filters applied. Pause freezes the view while new lines are counted, so you can read without losing your place.
- Load older pages as far back as your retention goes.
- An incident links here with the right service and time window already filled in.
curl -X POST https://api.vitalrix.com/api/v1/logs \
-H "x-api-key: $VITALRIX_API_KEY" \
-H "content-type: application/json" \
-d '{"logs":[{"level":"error","service":"my-shop","environment":"production","message":"card declined","traceId":"5b8efff798038103d269b633813fc60c","metadata":{"orderId":"o_123"}}]}'Each entry has a small set of fields.
| Field | Rules |
|---|---|
| message | Required. Up to 32 KB. |
| level | debug, info, warn, error or fatal. Common aliases such as warning and critical are understood. Default info. |
| service | The service name. Use your application slug to link logs to it. |
| environment | Defaults to production. |
| timestamp | ISO 8601 or milliseconds since epoch. Defaults to when received. Up to 366 days old and at most 24 hours ahead. |
| traceId | The OpenTelemetry trace id, 32 hex characters, to link the line to its trace. |
| requestId, spanId | Free text up to 128 characters. |
| metadata | Any JSON object up to 16 KB, searchable by key. |
Metrics: chart any number
A metric point is a name, a number, optional labels and a time. Send points over HTTP, up to 1,000 per request, or through OpenTelemetry metrics. Names use letters, digits and the characters underscore, dot, colon, slash and hyphen, up to 200 characters. A point can carry up to 20 labels.
On the Metrics page choose a metric and an aggregation: average, sum, min, max, count, or percentiles from p50 to p99. Group by one label for one line per value, filter by label values such as env equal to prod, and pick a range. Buckets from one minute to one day are chosen for you. A distribution panel shows P50 to P99, average, minimum, maximum and sample count. Gaps stay empty instead of showing a false zero.
OpenTelemetry histograms arrive as count, sum, average and maximum series, and summaries also get p50 to p99. Runtime metrics with standard names, such as event-loop delay, heap, process memory and CPU, appear automatically on the APM Infrastructure page.
| Metric | Comes from | Use it for |
|---|---|---|
| monitor.up | Every uptime check (1 or 0) | Availability by monitor, alert rules |
| monitor.response_time_ms | Every uptime check | Response time trends and thresholds |
| infra.cpu_percent, infra.cpu_cores | The infrastructure agent | CPU load per server |
| infra.cpu_utilization_percent | The infrastructure agent | Alert when CPU stays above 80 percent |
| infra.memory_mb | The infrastructure agent | Memory use per server |
Everything connected
A log line links to its trace, a trace to its logs and an incident to both.
Shareable views
Filters and time range live in the page address, so any view is a link.
Runtime and host metrics
Event-loop delay, heap, memory and CPU from your apps, and CPU and memory per server from the agent.
Secrets redacted
Passwords, tokens and API keys in log metadata and span attributes are masked before storage.
A debugging session, start to finish
- An alert fires: checkout error rate is above 5 percent for five minutes. The incident opens.
- Click Investigate. Logs, traces and metrics for the incident's time window open, already filtered.
- In the metrics chart you see the error rate step up at 14:10, matching the time of a release.
- In the Logs page you filter to level error and find "card declined: token expired", repeated.
- Click the log line, then open its trace. The waterfall shows the payments call failing after 3 seconds with a timeout.
- Click the trace's log lines to see the retry log from the payments service. You now know which service, which call and why.
None of these steps needed a second tool or a pasted id.
Set it up
- Create keys. Go to Settings, then API keys, and use the presets Trace ingestion, Log ingestion and Metrics ingestion. Each key can only write one kind of data. Use one key per environment.
- Traces. Follow the APM setup guide. If you already use OpenTelemetry, set the OTLP traces endpoint, an x-api-key header and the protocol http/json. Other languages send through an OpenTelemetry Collector.
- Logs. Batch lines and send them every couple of seconds. Never let a failed log request break your application. Include the service and the trace id.
- Metrics. Post points over HTTP or add the OpenTelemetry metrics exporter with the same style of settings.
- Check. Open Logs, Traces and Metrics and watch the first data arrive. Put the service name equal to your application slug so everything groups under the application.
A customer reports a failed order
Search logs for orderId o_123. One error line has a trace id. Open the trace and see the inventory call timing out at 5 seconds. Support has an answer in two minutes, with evidence.
Latency creeps up every afternoon
Chart p95 of a custom queue-wait metric grouped by region. One region climbs from 200 ms to 900 ms between 13:00 and 16:00. The chart is a shareable link for the infrastructure team.
A background worker keeps retrying
Live-tail logs filtered to service worker and level warn. Pause when the repeated line appears, read its metadata and filter by its request id to see the full retry chain.
Limits and permissions
- Logs: up to 1,000 entries and 5 MB per request, and up to 100,000 entries per minute per organization. Above that VitalRix answers 429 with the seconds to wait.
- Retention and daily volume depend on your plan. At the time of writing the free tier keeps logs for 14 days with a daily line allowance, and paid tiers keep them longer with a larger allowance. See pricing.
- Free tier cap: log batches over the daily allowance get a 429 response and the extra lines are not stored. Data already stored is untouched.
- Traces: up to 10,000 spans and 5 MB per request. OTLP over HTTP with JSON only.
- Metrics: 1,000 points per request, 20 labels per point, timestamps up to 366 days old and at most 5 minutes ahead.
- Access: keys carry exactly the permission they need. A trace key cannot read logs, and the organization always comes from the key.
| Problem | Fix |
|---|---|
| 400 VALIDATION_ERROR when sending logs | Read the field errors in the response. They name the field, for example a missing message or a timestamp too far ahead. |
| Logs do not link to traces | Send traceId as 32 hex characters, the same id OpenTelemetry uses. |
| Logs do not show on my application | Set service to the application slug. |
| A metric does not appear in the picker | The picker lists names seen in the last 24 hours. Check the name rules and the timestamp. |
| 415 Unsupported Media Type on traces | The exporter sends protobuf or gRPC. Use http/json or the Collector. |
| 429 Too Many Requests | You passed a rate limit. Batch more, lower the sample rate for traces, or wait the number of seconds in Retry-After. |
APM
Percentiles, endpoints, databases and the service map from the same traces.
OpenTelemetry
Send traces and metrics with standard exporters.
Dashboards
Chart these metrics beside uptime and APM.
Notebooks
Write up an investigation with live charts and queries.
Alert noise
Keep metric and log rules quiet.
Security and access
Key permissions and redaction rules.
| Term | Meaning |
|---|---|
| Log | A timestamped message from your application, with optional metadata. |
| Metric | A named number with labels and a timestamp. |
| Trace | The record of one request across services. |
| Span | One timed step inside a trace. |
| OTLP | The OpenTelemetry protocol used to send traces and metrics. |
| Label | A key and value attached to a metric point, used to filter and group. |
| Live tail | A stream of new log lines as they arrive. |
| Trace id | The 32-character identifier shared by all spans and log lines of one request. |
Do I need OpenTelemetry for logs?
No. Logs are plain JSON over HTTPS. Add the OpenTelemetry trace id to each line only if you want the link to traces.
How do I link a log line to a trace?
Include traceId, 32 hex characters, in the log entry. The line then links to its trace and the trace lists all its logs.
How long are logs kept?
It depends on your plan. The free tier keeps them for 14 days at the time of writing, and paid tiers keep them longer.
Can I search inside metadata?
Yes. Filter by metadata keys and values such as orderId equal to o_123.
What aggregations do metrics support?
Average, sum, min, max, count and percentiles p50, p75, p90, p95 and p99, grouped by one label.
Can I alert on a metric?
Yes. Create a metric threshold rule, optionally limited to points with given labels, for example CPU above 80 percent for five minutes.
Is sensitive data masked?
Passwords, tokens and API keys in log metadata and span attributes are masked before storage. Avoid logging secrets in the message text anyway.
Can I send OpenTelemetry metrics?
Yes, over OTLP with JSON. Gauges and sums become one point each and histograms become count, sum, average and maximum series.
What if my SDK only speaks gRPC?
Send through an OpenTelemetry Collector, which converts to the JSON form VitalRix accepts.
Why is there a gap in my chart?
Gaps mean no data in that bucket. VitalRix leaves them empty instead of drawing a zero.
Can I share a view with a teammate?
Yes. Filters, chart settings and time range live in the page address.
What happens when I exceed a rate limit?
VitalRix answers 429 with the number of seconds to wait. Batch your writes and keep logging from breaking your application.
See logs, metrics and traces in one place
Create a free account, send your first data and follow a request end to end.