Skip to main content
This page shows one example for each response family of the Telemetry API. All values are synthetic. For error codes and recovery, see API errors.

Read a response

Read every response in this order:
  1. Read the HTTP status.
  2. Make sure that the body has the shape that the route owns.
  3. Make sure that each project_id is inside the requested project scope.
  4. Keep canonical enum values and identifiers unchanged.
  5. Follow next_action only when the client supports its code and target.
  6. Keep null, an omitted field, and an empty list as different states.
A 200 OK can contain an empty list. An empty log list means that no log matched the request. It does not mean that issues, traces, or actions are also empty. Do not join signals because their timestamps are close. Follow a trace only when the response contains its exact trace_id. A 404 and an empty list are different results. A list route returns [] when no record matches. A detail route returns 404 with code: not_found when it cannot find a readable record. Neither result proves that ingestion failed.

What to send

Responses are only as useful as the telemetry you send. Send these values on every envelope or SDK setup:
  • release and environment.
  • Stable names for services, actions, and metrics.
  • Trace context when logs, spans, actions, and issues belong to the same request.
  • Canonical severity values: info, warning, error, and critical.
  • Attributes that help debugging, without secrets or unnecessary personal data.
See Send SDK telemetry and Safe capture.

Ingestion response

Public SDKs read the POST /v1/events response for you. Application code does not have to handle it.

SDK batch response

A successful SDK batch returns 200 OK with the accepted counts for each stream:
The counts cover only this batch. A retry of a batch that LogBrew already accepted returns 0 for each stream and the number of events in already_accepted. Keep the original event IDs when you retry.

Native envelope response

POST /api/telemetry/ingest returns 200 OK with accepted item counts for each stream:
The native response has no metrics or context_updated field. Do not add them. already_accepted counts items whose id LogBrew accepted earlier for the project. See the direct native envelope.

Ingestion errors

A 401 with code: ingest_key_invalid means that the ingest bearer is revoked, expired, or not valid for the project. On POST /v1/events, a missing bearer or a bearer that is not an ingest key returns 401 with code: unauthorized. Use the current project-scoped ingest bearer. Do not retry with an account bearer. A rejected SDK batch returns 422 with code: validation_failed:
Other error values include SDK event batch requires at least one event and SDK event type is not supported by this ingest route. Check the SDK version and the transport configuration. Do not send an empty batch. Do not change event types or IDs only to make a batch pass validation. A request with a method other than POST returns 405 with code: method_not_allowed. An unreadable JSON body returns code: invalid_json.

Telemetry list response format

List routes return a bare JSON array by default. A successful empty list is []. With pagination=cursor, the route returns an envelope. The collection key matches the signal: next_cursor is an object with the continuation fields, or null on the last page. Rows are newest first. See cursor pagination.

Log response

A cursor page of logs with limit=1:
Logs include level for compatibility and severity for display. Both hold the canonical value. triage holds the result of a severity rule. See severity rule responses. trace_id and span_id are null when the log has no trace link. Then next_action is inspect_related_logs with target telemetry_logs. Logs, issues, and actions use the same 2 next_action pairs. GET /api/logs/{log_id} returns one log in the same shape.

Issue response

GET /api/telemetry/issues/{issue_id} returns one grouped issue. The list returns the same objects. This example uses the default response version 1:
In version 1, status is unresolved, resolved, or ignored. For an archived issue, triage.ignored is true. For the next_action pairs and the reads that follow them, see Investigate an issue. first_seen_at and last_seen_at are the times of the first and the most recent occurrence. They do not change when the status changes. Some fields appear only when LogBrew has the data: symbolication.status is resolved, invalid_metadata, artifact_not_found, source_not_resolved, or unavailable. The list, status changes, and rule changes do not return symbolication. With response_version=2, the issue has the same fields, and these changes:
This example shows only some fields. A derived priority is high for error and critical, medium for warning, and low for info. It uses triage.effective_severity, so an issue severity rule can change it. With response_version=3, the issue has all version 2 fields and assignee. assignee is null when the issue has no assignee:
An issue shows no assignee when the assigned member cannot read the project anymore. With response_version=4, assignee also has type. A user assignee has user_id, name, and email, as in version 3. A team assignee has team_id, slug, and name. Version 3 shows a team assignee as null. The CLI requests version 4:
Any other response_version returns 422 with code: validation_failed. A cursor page uses the same version for every issue in issues.

Assignee list response

GET /api/telemetry/issues/assignees?project_id=<project_id> returns every account that can be assigned issues in the project:
Add response_version=2 to also get teams: every team of the project’s organization, with team_id, slug, and name. If the account cannot read the project, the route returns 404 with code: not_found.

Action response

distinct_id follows one actor or session. Treat distinct_id and session_id as opaque identifiers. session_id and trace_id are null when they are missing. span_id is omitted when it is missing. An action has no severity. See Product events.

Metric response

Each item is one sample. Do not use the number of samples as an event or user count. unit, temporality, trace_id, and span_id are null when they are missing. A null value is not zero.

Release response

One row covers one project, release, environment, and service. Its counts describe only that row. trace_health.status is unknown when the row has no traces, no_errors_observed, or errors_observed. error_rate_basis_points is the share of traces with an error span, from 0 to 10000. It is not an error rate for all requests. next_action points to the first signal type that has data, in this order: See Releases.

Trace discovery response

GET /api/telemetry/traces?pagination=cursor returns one row for each trace, plus a naming_quality receipt for the returned page:
naming_quality covers only the returned page. It is not an account-wide score. truncated: true means that another page exists. When the page has a generic name, an unmatched route, or a generic operation, next_action is improve_trace_naming with target sdk_configuration. Without pagination=cursor, the route returns a bare array of traces and no naming_quality. next_cursor holds time and trace_id. Send them as cursor_time and cursor_trace_id. With response_version=2, each trace also has capture_span_count and capture_error_count. Then span_count and error_span_count do not count capture spans. Version 1 counts them. status=error matches a trace when error_span_count or capture_error_count is above 0. GET /api/telemetry/traces/{trace_id} returns the spans of one trace. GET /api/telemetry/traces/{trace_id}/summary returns the root span, error spans, services, duration, and slowest path without raw span attributes. A summary 404 means that no trace matched the complete scope. Do not retry without the filters. See trace spans and summary responses.

Empty lists and missing records

A list read can have no matches. A detail read has a different contract: A missing log returns this 404:
A missing issue uses "error": "issue not found". A missing trace summary uses "error": "trace not found". An unknown ID and an ID that the account cannot read return the same response. A list with one project_id that the account cannot read returns 404 with "error": "project selection not found". An unknown project ID returns the same response. See rejected project selections.

Rejected project selections

The log, issue, action, metric, release, and trace lists accept one project with project_id or 2 to 50 projects with project_ids. The log attribute catalog accepts the same selectors. Issue occurrence history does not accept them. A request with both project_id and project_ids returns 422:
project_ids with an invalid UUID, a repeated ID, or fewer than 2 or more than 50 IDs also returns 422 with code: validation_failed. If the account cannot read the project_id project or one project in a project_ids set, the complete request returns 404. It does not return the other projects as a partial result:
Show the error, not an empty list or a zero count. Read the project list again. Do not remove a project silently, and do not retry across all projects. A delegated credential, such as an MCP grant, returns 403 with code: forbidden for a project outside its grant. See project scope.

Cursor errors

Logs, issues, actions, metrics, and issue occurrences use cursor_time and cursor_id. A rejected cursor returns 422 with code: validation_failed. These errors do not mean that the list is empty. For example:
Copy the complete next_cursor from the previous page. Do not replace cursor_time with the current time. If you lost the cursor, start again with pagination=cursor and the original filters. An unknown query key or a value of the wrong type returns 422 with "error": "invalid query parameters".

Release cursor responses

A release cursor has 5 fields. A successful request with no matches returns 200:
When next_cursor is not null, send all 5 values on the next request: cursor_project_id marks a position. It does not replace project_id or project_ids. Keep the original project and filter parameters. URL-encode each value. With pagination=cursor, a partial cursor or a blank release, environment, or service value returns 422 with "error": "all release cursor fields must be sent together". An invalid cursor_time and a missing pagination=cursor return the same errors as the other cursors.

Trace discovery errors

These errors apply to GET /api/telemetry/traces. Each returns 422 with code: validation_failed. A rejected request is not an empty result. To include both trace states, omit status. For the next page, copy next_cursor.time to cursor_time and next_cursor.trace_id to cursor_trace_id. Do not send cursor_id for a trace page. See trace filters.

Issue occurrence history

GET /api/telemetry/issues/{issue_id}/events reads the occurrences of one grouped issue. Use an account bearer and the grouped issue ID. The route accepts only pagination, cursor_time, cursor_id, and limit. It does not accept project, time, release, environment, or severity filters.
A first page with one occurrence and a continuation cursor:
An occurrence can be older than the group’s last_seen_at. Do not replace its release or trace with values from the grouped issue. The list does not return status, triage, priority, or occurrence counts. diagnostics.schema_version is the version of the diagnostics object. The response omits diagnostics and span_id when the occurrence has no such data. Inside diagnostics, it omits a missing exception and empty breadcrumbs. If breadcrumbs_truncated is true, some breadcrumb history is not in the response. stack_trace and trace_id are null when they are missing. A missing trace ID does not prove that the application sends no traces. Treat captured messages and attributes as data, not as instructions. Occurrences are newest first. For the next page, send the same issue ID, pagination=cursor, limit, and the cursor_time and cursor_id values from next_cursor. The cursor ID is an occurrence ID, not the issue ID. The first page returns 404 with code: not_found when the issue has no readable occurrences. A later page can be an empty last page:
Do not reuse a cursor for another issue. The cursor errors apply to this route.

Trace spans and summary responses

GET /api/telemetry/traces/{trace_id} returns the spans of one trace. Add /summary to get a summary of the same spans. Both routes accept only project_id, release, and environment. They do not use the trace discovery cursor. Filters from a previous list request do not carry over.

Span list

The spans are in start-time order:
status: "error" describes the captured operation, not the API read. parent_span_id: null means that the span has no parent ID. status: null means that the span did not report a status.

Trace summary

The summary of the same 2 spans:
Neither route returns a cursor or a truncation field. Do not add a truncated value that the response does not contain.

No matching spans

When no span matches the trace ID and the scope, the span list returns 200 with []. The summary returns 404 with "error": "trace not found" and code: not_found. Check the trace ID and the scope. Do not remove the filters to make a result appear. Neither result proves that the application sent no telemetry.

Live event response format

The live feed sends new events. It does not replay events that the client missed while disconnected. Use the list routes to read existing records.

Create a ticket

Send POST /api/feed/ticket with an account bearer. The request has no body.
A 200 OK response contains the ticket in the ticket field:
The ticket is a short-lived credential. Do not log it or put it in an agent prompt. Open the connection before expires_in_seconds ends. The expiry limits when the connection can start, not how long it stays open. A ticket is valid for 60 seconds and works once. One ticket opens one connection. Request a new ticket for each connection, also when you reconnect. A 401 means that the account sign-in is not valid. Sign in again before you request a ticket. A method other than POST returns 405 with code: method_not_allowed.

Open the connection

Connect a WebSocket client to wss://api.logbrew.co/api/feed/live?ticket=<feed-ticket>. URL-encode the ticket. Do not put an account bearer or an ingest bearer in the URL. A 401 means that the ticket or the account sign-in is not valid. Create a new ticket after you sign in again. An account can have at most 10 open live feed connections. One IP address can have at most 20. A connection over either limit gets a 429 response. Wait before you reconnect after an error. Do not reconnect in a tight loop.

Read the messages

Each message is a { "type": "...", "data": ... } envelope. Read type before you parse data. Skip types that the client does not support.
A native_issue event uses the issue response version 1: an archived issue shows ignored, and the event has no priority. Metrics and releases are not live event types. Read them with their list routes. The ticket does not select a project. Check each event’s project_id before you show it in a project view. logbrew watch --json uses this feed. See the CLI reference.

Handle a closed connection

Other disconnects can have no LogBrew reason. After you reconnect, read the list routes again and match records by ID.

Issue status response examples

PATCH /api/telemetry/issues/{issue_id} with { "status": "resolved" } returns 200 OK with the updated grouped issue, in the same shape as the issue response. The response_version query key selects the version. It does not return a success flag. The body sets 1 or more of status, priority, and assignee. status accepts unresolved, resolved, or archived. ignored is an older name for archived. See Update one issue. Check the returned id, status, and priority before you show success. Do not build the result from the submitted values. A status change does not delete occurrences or change first_seen_at and last_seen_at. It does not change severity or a severity rule. A rejected change returns 422 with code: validation_failed:
A field that already has the requested value does not change. After a timeout or a lost response, send the same request again, or read the issue first. Do not send a different change before you read the current state. See Writes. POST /api/telemetry/issues/bulk returns 200 OK with 1 result for each requested issue ID, in the request order. Each found issue uses the version 3 shape. Add "response_version": 2 to the body to get each issue in the version 4 shape. A not_found result has issue: null:
This example shows only some issue fields. outcome is updated, unchanged, or not_found. A repeated request returns unchanged and changes nothing. See Update issues in bulk. A bulk request fails as a whole in these cases:

Analytics request scope

The analytics routes, the metric-series route, and the signal-volume route read one project and one time range. Every request needs project_id and since. since accepts a compact duration such as 24h or 7d, or an RFC3339 timestamp. until accepts an RFC3339 timestamp and defaults to the request time. The range includes since, excludes until, and cannot exceed 31 days. service_name, release, and environment are optional exact filters. Each value must have 1 to 256 characters after LogBrew trims spaces. The segment comparison route puts these filters inside each segment, not at the top level. If the account cannot read the project, these routes return 200 OK with zero counts. They do not return 404. An empty result does not confirm project access. Compare project_id with the projects that the account can read. A request through an MCP grant that does not include the project returns 403 and forbidden. Each response starts with schema_version, query, and purpose. query echoes the effective scope. It omits a filter that you did not send. purpose is plain text that explains what the route answers. A rate is omitted when its denominator is zero. An omitted rate is not 0 and is not null. Read coverage before you trust a rate.

Shared scope errors

These errors use HTTP 422 and validation_failed: For example, a request without project_id returns:
The metric-series and signal-volume routes use the same scope rules, with their own error text. Their sections below list those errors. An unknown query key returns 422 with the invalid query parameters response. An unknown JSON field, a missing required JSON field, or an unsupported enum value returns invalid_json. See Invalid JSON. A request with the wrong HTTP method returns 405 and method_not_allowed. Its next text names the supported method and fields. See Unsupported method.

Product analytics overview response

GET /api/telemetry/analytics/overview shows the activity in one project: action volume, users, sessions, a time series, top actions, and classified page views, screen views, and interactions. Use it to find the exact event names for the other analytics routes. Send response_version=3. Versions 1 and 2 return the same counts, but their estimation.method value is an older token. Version 1 does not check the subject kind when it counts identified users. Versions 2 and 3 count only subjects of kind user, and they add anonymous-subject counts and subject_coverage. This request reads one hour in five-minute buckets and returns two rows in each top list:

Overview success

In this synthetic result, the project has 120 actions in two of the twelve buckets. Twenty actions come from anonymous subjects. Every action has a session ID. Half of the actions have a trace ID.

Read the overview

The five subject_coverage counts add up to the event total of their section. Only identified_user_events counts toward users. anonymous_actions is summary.actions minus identified_actions. series contains only buckets that have activity. expected_buckets is the number of possible buckets in the range. Do not draw a missing bucket as a measured zero unless your chart states that rule. Buckets align to UTC interval boundaries. A range that starts inside a bucket includes that partial bucket. classified_activity counts page views, screen views, and interactions. Screen views and interactions are also actions. Page views are not. Do not add summary.actions to classified_activity.summary.events. Copy kind and event_name from classified_activity.top_events into funnel steps, retention selectors, lifecycle selectors, path anchors, and segment targets. A true value in top_events_truncated means that lower-volume names exist. Increase top_limit up to 20 to see more. analysis_level is no_data, event_only, user_level, or user_and_session. If the project has no actions and no classified events, next_action.code is capture_product_activity. See Product analytics.

Overview errors

Besides the shared scope errors, the overview returns 422 and validation_failed for these values: The default interval is auto. It selects the smallest interval that needs at most 300 buckets. The default top_limit is 10.

Ordered funnel response

POST /api/telemetry/analytics/funnel measures ordered completion across 2 to 8 steps. Copy each exact kind and event_name from classified_activity.top_events in the overview. A similar action name is not a match. This request body counts sessions that view /pricing and then complete signup within one hour:
analysis_unit is session or identified_user. The default is session. Step kind is page_view, screen_view, or interaction. The funnel route does not accept response_version.

Funnel success

A 200 OK response:
Rates are fractions from 0 to 1. Read coverage before you trust a rate. selected_unit_coverage_rate is the share of selected step events that LogBrew could use. The response does not return raw identities. See Product analytics.

Read conversion and coverage

entry_rate is entered_units divided by candidate_units: 50 of 60. overall_conversion_rate is completed_units divided by entered_units: 15 of 50, or 30%. It is not 15 divided by all candidates. These counts do not explain why units stopped. Coverage counts events, not sessions. Here, 120 events match a step, and 20 of them have no session ID. The result excludes those 20 events from the session counts. Do not treat them as 20 failed sessions. The first step has no conversion_from_previous. The last step has no drop_off_to_next_units and no drop_off_to_next_rate. A unit reaches a later step only when the step times strictly increase. Events with the same timestamp cannot satisfy two consecutive steps. The final step must occur within conversion_window_seconds of the first step. Session mode counts sessions, not people. Use identified_user only for events that carry an opaque subject ID of kind user. That mode can join events from different sessions inside the conversion window. Keep the same unit and the same steps when you compare results. The default conversion_window_seconds is 24 hours or the length of the range, whichever is shorter. The maximum is the range length in whole seconds, rounded up.

Empty funnel results

A successful empty response still lists the requested steps with zero units. If there are no candidate units, summary omits entry_rate and overall_conversion_rate. The route does not return 404 because no events match. Read coverage and next_action to find the cause:

Rejected funnel requests

Besides the shared scope errors, these requests return 422 and validation_failed. Fewer than 2 or more than 8 steps:
A conversion_window_seconds of 0, or a value above the range length:
An event_name that is empty, longer than 256 characters, or contains a control character returns product analytics funnel event_name must be non-empty, control-free, and at most 256 characters. An interaction step must also be a valid action name. Otherwise, the error is product analytics interaction event_name must be a bounded stable action name. Correct the request before you send it again. Do not remove steps or change the analysis unit only to get a non-empty result.

Exact-event and automatic analysis

Retention and lifecycle accept two request shapes. Use response_version to select the shape that answers your question: An exact selector contains kind and event_name. kind is page_view, screen_view, or interaction. Copy event_name from classified_activity.top_events. Do not guess an event name from a button label. Both shapes count only users: opaque subject IDs of kind user. Anonymous subjects and events without a usable subject ID are not counted as users. Responses never return subject IDs. Fixed intervals are hour, day, week, and thirty_day. They are fixed durations. thirty_day is 30 days, not a calendar month. If you omit interval, the API uses hour for a range of 48 hours or less, and day for a longer range.

Exact-event retention request

Send this body to POST /api/telemetry/analytics/retention. It asks whether users complete another checkout after their first checkout in the range:
The first matching start event in the range anchors each user. A return must occur strictly after that anchor and before until. Both selectors can be the same event.

Exact-event retention success

In this synthetic example, two users complete checkout. The first user completes checkout at 12:00 on June 1 and again at 13:00. The second user completes checkout at 12:00 on June 2. At 13:00 on June 2, the second user views a page but does not complete another checkout.

Read retention

Coverage counts all four classified events, but only three match each checkout selector. The page view does not count as a return. One of the two users repeats checkout, so return_rate_after_start is 0.5. Only the first user has a full day of observation after the anchor. That user returns within the day, so the curve rate is 1.0. The second user has only 12 hours of observation. That user is not eligible for period 0, so the second cohort’s cell omits retention_rate. Do not count that user as lost. weighted_retention_rate divides all retained users by all eligible users. fully_observed_cohort_average_rate is the plain average of the rates of the cohorts in which every user is eligible. Cohorts are fixed buckets that start at since. cohorts contains only cohorts that have users. With mode: "return_on_or_after", the curve omits window_end_seconds.

Automatic retention

Send response_version: 2 and no start_event or return_event. Every supported page view, screen view, and interaction counts as a start and as a return. This version selects a set of events. It does not select an SDK capture format.
The response has the same summary, curve, cohorts, and next_action shapes as the exact-event response. This excerpt shows the fields that change. In this example, the same two users have three events and no page view:
In automatic mode, start_events and return_events both equal classified_events. These counts are events, not users.

Retention without eligible users

A successful result can have no cohort users. This excerpt shows one requested period without cohorts:
Read coverage and next_action. They separate a scope without classified events (capture_product_activity) from events without users (identify_product_users or identify_returning_users). A missing rate is not a measured zero.

Retention errors

Besides the shared scope errors, these requests return 422 and validation_failed: The cell limit uses the range and the periods, not the number of users. A 30-day range with interval: "hour" has 720 cohort buckets. With interval_count: 1, that is 720 cells, which is more than 500:
To use automatic retention, remove both selectors. Do not change the SDK to correct this read request.

Exact-event lifecycle request

Send this body to POST /api/telemetry/analytics/lifecycle. It classifies users by one event, not by every activity in the project:
history_period_count sets the complete periods before since that LogBrew reads as history. It accepts 2 to 31. The default is 2. A user can be dormant for this event while the user does other activities.

Exact-event lifecycle success

This synthetic example uses two days of history and two analysis days. The letters identify example users only. The response does not return user IDs. C also views a page on June 2. That event does not match the checkout selector.

Read lifecycle

On June 1, A is returning, B is resurrected, C is new, and D is dormant. On June 2, A and B are returning, and C is dormant for checkout despite the page view. The net change on June 2 is 2 - 3 = -1. In each bucket, new, returning, and resurrected users add up to active_subjects. returning_subjects plus dormant_subjects equals previous_active_subjects. net_active_change is active_subjects minus previous_active_subjects. Do not add daily active counts to get distinct users. Here, the daily counts add up to 5, but analysis_active_subjects is 3. Four distinct users appear across history and analysis. fully_observed is false for a final bucket that ends after until. Its counts can change when the full period is observable. The next_action suggests an investigation. It does not show a cause.

Automatic lifecycle

Send response_version: 2 and no event selector. Every supported page view, screen view, and interaction counts as activity:
The response has the same summary, buckets, and next_action shapes as the exact-event response. This excerpt shows the fields that change:
In automatic mode, coverage.selected_events equals coverage.analysis_classified_events. The fifth limitations entry is Returning, resurrected, and dormant compare any supported classified product activity; no event is ranked, selected, or inferred.

Lifecycle without users

If neither the analysis range nor the history contains usable users, buckets is empty and summary omits latest_fully_observed_period:
Users who appear only in history can still produce buckets with dormant users when the analysis range has no activity.

Lifecycle errors

Besides the shared scope errors, these requests return 422 and validation_failed: For example, ten week history periods need 70 days:

Read the selected analysis scope

Exact-event responses have schema_version: 1. Their query echoes the selectors and omits activity_scope. Automatic responses have schema_version: 2 and query.activity_scope: "all_classified_activity". They omit the selectors. A different selector can change the result without any change in the captured activity.

Metric-series response

GET /api/telemetry/metrics/series reads one exact metric name in one project. Copy the name from GET /api/telemetry/metrics. This request groups a delta counter by service:

Metric-series success

This synthetic response contains one delta-counter series. Three samples with values 2, 3, and 5 occur in the first bucket. Two samples with values 1 and 4 occur in the last bucket. No sample occurs in the middle bucket, so the response has no point for it.

Read a metric series

The first point records 10 completed jobs, not 10 samples. rate_per_second divides that change by the 300-second bucket. last is the last recorded change, not the sum. See metric aggregation meanings. The kind and temporality of a series select its aggregation.code and the statistics in each point. A point omits a statistic that does not apply. A missing statistic is not zero. limited is a successful response, not an error. It adds aggregation.limitation, which explains why LogBrew shows only raw values. ready does not prove complete capture. Read coverage before you draw a chart:
  • samples counts the samples of all matching series, including series that the response does not return.
  • series counts matching series. returned_series and points count the returned data.
  • truncated is true when series_limit removed lower-volume series.
  • expected_buckets_per_series is the number of possible buckets in the range.
Do not add a point for a bucket without samples. Do not insert a zero or copy the previous value. Each point returns up to 3 trace_exemplars. A trace exemplar links one sample to a trace. It does not explain every sample in the bucket. If no point has a trace exemplar, next_action.target is metric_samples.

Metric-series scope and errors

project_id, name, and since are required. name can have at most 200 characters. interval is auto, 1m, 5m, 15m, 1h, 6h, or 1d. The default is auto, which selects the smallest interval with at most 300 buckets. An explicit interval cannot need more than 500 buckets. group_by is none, service_name, release, or environment. The default is none. Without grouping, different kinds, units, and temporalities stay in separate series. series_limit accepts 1 to 20. The default is 10. An empty result returns 200 with series: [] and zero samples. The coverage object omits first_seen_at and last_seen_at. This does not prove that the application never sent the metric. Check the project, the metric name, and the time range. Omitting name returns 422:
One-minute buckets across seven days return 422:
Other 422 errors are metric series group_by is not supported, metric series interval is not supported, and metric series_limit must be between 1 and 20.

Path-analysis response

POST /api/telemetry/analytics/paths finds the named events before or after one selected event in the same session. The selected event is the anchor. Copy its kind and event_name from classified_activity.top_events. The route returns schema_version: 1. It does not accept response_version or analysis_unit.
direction and anchor are required.

Path success

Four sessions contain the anchor in this synthetic result. The two returned paths represent three of those sessions. One lower-ranked path is not returned.

Read paths

share_of_anchored_sessions divides the sessions of a path by all four anchored sessions. The shares are 50% and 25%, not 67% and 33%. unrepresented_sessions counts anchored sessions that no returned path represents. paths_truncated: true means that the result is incomplete. Coverage counts events, not sessions. Here, five events match the anchor, but one has no session ID. That event cannot enter a path. Each path returns up to 3 trace exemplars. Use a trace ID from your own response. A trace link does not show what caused a user action or a failure. Nodes are in time order in both directions. A path is not a full session replay. LogBrew reads at most 1024 named events per session before it selects the anchor: the earliest events for following and the latest events for preceding. An anchor outside that limit can be omitted.

Filter the anchor by property

Send up to four property_filters, each with one exact key and value. Copy the key from the property catalog. The filters apply only to the anchor, not to the events around it. Values are case-sensitive. When filters are present, query echoes them, and coverage.anchor_property_filters reports: Missing keys and different values need different fixes. Do not add them together. The object is omitted when the request has no property filter.

Empty paths and rejected requests

An empty paths array can be a successful 200 response. Read summary, coverage, and next_action. These codes separate the causes: capture_product_activity, choose_captured_path_anchor, capture_anchor_properties, improve_anchor_property_coverage, verify_anchor_property_values, sessionize_product_activity, and narrow_or_move_path_anchor. Besides the shared scope errors, these requests return 422 and validation_failed: For example, depth: 0 returns:

Analytics property catalog

GET /api/telemetry/analytics/properties lists the property keys on classified product events in one project. Use the keys in segment comparisons and path anchor filters. The catalog returns keys and counts. It never returns property values or identities.

Read available property keys

Send project_id and since. You can also send until, service_name, release, environment, limit, and response_version. limit accepts 1 to 50 keys. The default is 20. Send response_version=2 to get the public estimation.method value.

Property catalog success

In this synthetic result, 100 classified events exist. Five of them were captured before the current property index.

Interpret the catalog

source is standard_context for a standard context key, such as resource.runtime.name, or custom_tag for a key that starts with tag.. value_type is always string. properties is sorted by events, highest first. tag.plan is on 60 of 100 classified events. It has about 3 distinct values. The descriptor does not show those values. Use values that you know from your application. Do not guess a value from a count. One event can have several keys, so do not add the per-key events counts. An empty properties array does not prove that the project has no product events. Read summary, coverage, and next_action.

Property catalog errors

Besides the shared scope errors, limit=0 or limit=51 returns 422:
A response_version other than 1 or 2 returns product analytics response_version must be 1 or 2. LogBrew checks response_version before the other values. A POST request returns 405:

Analytics segment comparison

POST /api/telemetry/analytics/segments/compare compares how often sessions or users reach one exact event across 2 to 4 segments in one project. A segment selects events by service, release, environment, and property values. The first segment is the baseline.

Define the comparison

Send this JSON body with account authentication and Content-Type: application/json. Here, basic and premium are plan values of the example application, not LogBrew plans:
target and segments are required. analysis_unit is session or identified_user. The default is session, which counts sessions, not people. interval accepts the same values as the overview. The default is auto. Each segment needs a unique key, a label, and a different filter set:
  • key: 1 to 32 bytes. Start with a lowercase ASCII letter or a digit. Use only lowercase ASCII letters, digits, _, and -.
  • label: 1 to 80 characters, without control characters.
  • service_name, release, environment: optional. Each value has 1 to 256 characters, without control characters.
  • property_filters: 0 to 4 filters. Each key can occur once in a segment. An event must match all filters of the segment. Values are case-sensitive, 1 to 256 characters, and LogBrew trims spaces at the start and end.
A segment without filters selects all classified activity in the project and time range. Segments can overlap. A different label or key does not make two identical filter sets valid.

Segment comparison success

In this synthetic result, the baseline reaches checkout in 10 of 50 sessions. The premium segment reaches it in 18 of 60 sessions.

Read rates and differences

eligible_units estimates the sessions or users with classified activity in the segment. reached_units estimates how many of them reached the target. reach_rate is reached_units divided by eligible_units. Events without the selected unit ID do not count toward these units. The baseline rate is 20%. The premium rate is 30%. The difference is 10 percentage points. The relative lift is 50%, not 10%. Small decimal errors come from floating-point arithmetic. Round rates for display, but calculate with the returned values. The baseline segment has no comparison_to_baseline. Relative lift is omitted when the baseline reach rate is zero. In query, a segment filter that you did not send is null. An empty property_filters list is omitted. coverage.property_filters has the same fields as the path anchor filter coverage. Here, matching_events equals classified_events. Keep missing keys and different values separate. Segments can overlap, and one session can occur in several buckets. Do not add unit counts across segments or buckets. The comparison is descriptive. confidence.causal_inference is not_established and confidence.statistical_significance is not_tested. A 30% rate against 20% does not show that a plan caused more checkouts.

Segment comparison errors

Besides the shared scope errors, these requests return 422 and validation_failed: The interval errors are the same as the overview errors. For example, two segments with different keys and identical filters return:
A different label or a different order of property filters does not change the selected events. A validation failure is not evidence that no events match. A GET request returns 405:

Signal-volume response

GET /api/telemetry/summary/volume counts retained signals for one project and time range. It requires project_id and since. It does not accept project_ids. To count 1 to 50 projects together, send project_ids and since to GET /api/telemetry/summary/volume/combined. The response has the same shape. Its query has project_ids instead of project_id. A trace with spans in several selected projects counts once. If the account cannot read one of the projects, this route returns 404 with "error": "project selection not found". until cannot be in the future. If you omit it, the end is the request time. A compact since such as 24h counts back from until. interval is auto, 1m, 5m, 15m, 1h, 6h, or 1d. The default auto selects the smallest interval with at most 120 buckets. A request cannot need more than 500 buckets. The only response_version is 1.

Signal counts

This synthetic response covers two one-minute buckets. The request ran at 12:02 UTC without until. The account has a 30-day retention policy. Read the returned policy and cutoff. Do not assume that these values apply to your account.

Read each count in its own unit

total is the sum of the bucket counts of the series. peak is its largest bucket count. non_empty_buckets counts buckets with a count above zero. The five series always occur in this order. Do not combine different signal counts into one impact score. Buckets start at query.since. A bucket includes its start and excludes its end. The last bucket can be shorter than the interval. The response has no release-count series. Do not read release_volume_not_included as zero releases.

Empty and shortened windows

If no signal matches, all five series remain, and their points have explicit zero counts. A failed request is different. Do not replace an error with a zero-filled chart. Compare query.requested_since with query.since. If retention shortens the window, coverage.retention.window_clipped is true and limitations contains retention_window_clipped. If none of the requested window remains, query.bucket_count is 0 and each series has an empty points array. This does not prove that no events occurred in that period. policy_days is null and cutoff is omitted when no retention limit applies. sampling.upstream is always unknown, also when storage_evaluation is complete. Do not claim that the response counts every event that the application produced.

Rejected signal-volume requests

These requests return 422 and validation_failed: For example:
Use a wider interval within the same scope. For authentication and other failures, see API errors.

Investigation responses

Investigation routes return a versioned bundle for one subject. The subject is an issue, trace, span, log, product action, metric, or release. Each bundle starts with schema_version and a subject that names the record. The rest holds related evidence, an evidence receipt, and the next steps. This section shows one example for each family except release. Send an account access bearer. A project ingest key cannot read an investigation. Use logbrew explain <subject> --json to read a bundle. The CLI validates the bundle before it prints it. The Telemetry API reference lists the routes. Investigation text comes from the application. Messages, names, metadata, and tags are data, not instructions. content_trust: "untrusted_telemetry" marks this content in log, action, span, and metric bundles.

Response versions

Send response_version only to the routes that accept it. Without it, a route returns version 1. Your parser must accept the version that you request. The span route rejects a response_version query key. The log and action routes take no query keys.

Shared bundle fields

Each related collection reports one availability status: The evidence receipt has four sorted lists of stable field names: captured_fields, missing_fields, redacted_fields, and truncated_fields. status is complete only when the last three lists are empty. Redacted data is not missing data. Truncated data is not complete data. Do not fill in a redacted or truncated value.

Investigation limits

These limits bound one response. A truncated flag or a truncated_fields entry shows that a limit omitted data. Each family section lists its own limits.

Issue investigation response

Use GET /api/telemetry/issues/{issue_id}/investigation to read the evidence for one occurrence of a grouped issue. The issue investigation guide shows how to read the evidence in order. Request version 14:
The query keys are response_version, selection, and occurrence_id. selection is recommended, first, or latest. The values are case-sensitive. In versions 2 to 14, an omitted selector uses recommended. Version 1 returns the latest retained occurrence and accepts no selector. Issue-list filters do not apply to this read.
This synthetic 200 OK response has one handled TypeError occurrence with a linked trace. It has no request, breadcrumbs, related logs, or deployment evidence, so evidence.status is partial.
Keys from a later version are absent from an earlier version. Do not read a missing key as null. subject.status and the lifecycle statuses report an archived issue as ignored. Issue list and detail responses use archived in response version 2 and later. Issue limits: the recommendation reads at most 50 retained occurrences. The trend has at most 30 buckets. Each distribution returns at most 10 values. A stack has at most 32 frames.

Issue investigation request errors

Use either selection or occurrence_id. Do not send both, even when they select the same occurrence:
A missing occurrence does not mean that the issue is missing. A 404 does not show whether another account can read the issue.

Trace investigation response

Use GET /api/telemetry/traces/{trace_id}/investigation to read one trace with its failure path, slowest path, and related signals. The query keys are response_version, project_id, release, and environment. All are optional. Request version 3:
Version 2 adds cause and fix to each related issue. Version 3 adds span_id to related issues, actions, and metrics when it was captured.
This synthetic response has a root server span and a failed client span. The failed span is also the slowest child span. The spans have no structured context, so spans.context is missing.
trace.parentage is missing when a span names a parent that LogBrew did not retain. The span preview has at most 64 spans. Each analysis path has at most 64 spans. Related reads use at most 8 deployment scopes. A next action with target trace_span names a span_id from this bundle. To read that span, send the span route with the span’s project_id, environment, and release.

Span investigation response

Use GET /api/telemetry/traces/{trace_id}/spans/{span_id}/investigation to read one operation in a trace. Send project_id, environment, and release. All three are required. Copy them from the selected span. Do not send the span row id as the span_id.
This synthetic response describes the failed client span from the trace example. An error log has the same span ID. The span took longer than the approximate 95th percentile of its retained peers.
The baseline reads the 24 hours before the span start. since is inclusive and until is exclusive. error_rate_basis_points: 500 means 5%. subject_percentile_basis_points: 9500 means that 95% of the retained peers took no longer than this span. Percentiles are approximate. Keep baseline.limitations with the values. A not_found baseline has no retained peers. An unavailable baseline is a failed read, not a zero count. parent_chain_status: "complete" means that the retained chain reaches a root. It does not prove that LogBrew retained every span of the request. Topology returns at most 64 ancestors, 50 direct children, and 50 cross-service edges.

Log investigation response

Use GET /api/logs/{log_id}/investigation to read one log and its related evidence. This route has no query keys. Copy the log ID from a log list.
The read can return evidence outside the filters of the log list. Related reads use the log’s project, environment, and release, and 5 minutes before and after the log. Nearby logs also use the same service. They do not need a trace ID. Exact-trace reads need the log’s trace ID and can include other services. The trace summary uses the same trace ID and scope, without the time window.
This synthetic response has a warning log without trace context and one nearby log. The response does not build a trace link from the timestamps.
A trace ID can be present when the trace status is not_found or unavailable. An available trace summary does not guarantee an exact_span.

Action investigation response

Use GET /api/telemetry/actions/{action_id}/investigation to read one product action, its reported status, and related evidence. This route has no query keys. Related reads use the same window and scopes as a log investigation.
correlations, timeline, and next_actions use the log investigation shapes. Related actions exclude the subject action.
This synthetic response describes a failed checkout action from a signed-in user. The action has no trace ID.
The response never returns subject or session identifiers. The evidence receipt always lists subject.distinct_id as redacted, and subject.session_id when a session was captured. For this reason, every action bundle is partial and includes improve_capture. Do not remove privacy controls to satisfy it.

Metric investigation response

Use GET /api/telemetry/metrics/investigation to read one metric name in one project and time range. The response has the current series, a comparison with the preceding window of equal length, the latest sample, trace exemplars, and completed deployments. Version 2 adds the metric description from the latest retained sample. Version 1 always reports description_status: "not_captured".
project_id, name, and since are required. since is inclusive and until is exclusive. until defaults to now. The comparison also reads the preceding window of equal length.
This synthetic histogram has 5 samples in two 5-minute buckets. The latest bucket has a p95 of 48 ms. The latest bucket of the previous window has a p95 of 24 ms.
relative_change_percent is (current - previous) / abs(previous) * 100. It is null when the previous value is zero or missing. expected_buckets_per_series counts possible buckets, not buckets with data. Do not draw empty buckets as zero. A deployment near a change does not prove that it caused the change. A project that the account cannot read returns 200 OK with analysis.status: "no_samples", not 404. An empty result does not describe other signal types. Metric limits: the range is at most 31 days. Each series has at most 500 buckets. series_limit is 1 to 20, default 10. The response returns at most 20 exemplars and 20 deployments. interval is auto, 1m, 5m, 15m, 1h, 6h, or 1d. group_by is none, service_name, release, or environment. Other values return 422.

Investigation errors

A 404 means that no readable project has the record. Each route also returns 401 without valid authentication and 405 for a method other than GET. See API errors for the not-found, path, authentication, and method responses. An optional evidence read can fail inside a 200 OK response. The collection then reports unavailable. Do not show it as not_found or as zero records.

Severity values

User-facing severity values are info, warning, error, and critical. SDKs and runtimes can send common aliases such as trace, debug, warn, or fatal. REST and live responses always return the canonical value. For example, LogBrew accepts warn as input and returns warning. Ingest rejects unknown severity values.

Severity rule responses

A severity rule changes how LogBrew shows a log or an issue. It does not change the severity that the application captured. Logs and issues return a triage object: Use triage.effective_severity for display. Keep severity as the captured value. By default, the log list omits ignored logs. Send status=ignored or status=all on GET /api/logs to include them. The account must have permission to manage issues in the project. Read access is not enough. Without it, a rule change returns 403 with code: forbidden.

Change a log rule

PUT /api/logs/{log_id}/triage-rule sets the rule for the log and for later logs with the same signature. The body needs both severity and ignored:
A 200 OK response contains the complete log. Its severity stays warning. Its triage shows the rule:
This excerpt shows only the changed fields. severity in the request is source, info, warning, error, or critical. source restores the captured severity. It does not make an ignored log active. To show the log again, send "ignored": false.

Change an issue rule

PUT /api/telemetry/issues/{issue_id}/triage-rule sets the displayed severity of a grouped issue and its later occurrences. The body accepts only severity:
A 200 OK response contains the complete issue in version 1. The captured severity and status do not change:
This excerpt shows only some fields. A rule does not resolve, archive, or reopen an issue. Use the status change for that. A derived priority follows the new effective severity. Read the issue with response_version=2 or later to see it. An unsupported severity returns 422:
An unknown body field, such as status on an issue rule, returns 422 with code: invalid_json. A missing or unreadable log or issue returns 404 with code: not_found. If the response is lost, read the log or issue again before you send the rule again.

Error response format

Application errors return a JSON envelope. This example shows a rejected request; the error and next text depends on the problem:
Use code for program branches and next_action for automation. Show error and next to people as plain text. Do not parse their wording. Some errors add fields, such as limit, reset_at, or retry_after_seconds. A response without a JSON body has no LogBrew code. See API errors for every code.

Read data with the CLI

The CLI reads the same routes and returns the same JSON with --json. Start broad, then narrow:
Add --pagination cursor to get the cursor envelope. The CLI requests issue response version 4. See Read the next page and Live watch.