Coming from Sentry

Supported Sentry data

Every Sentry envelope item type, whether axonpush keeps it and where it shows, plus transport limits, grouping, retention and the endpoints that don't exist.

This page describes what the Sentry-compatible endpoint does with each part of what a Sentry SDK sends. It is checked against fixtures recorded from @sentry/node 11.13 and sentry-sdk 2.75 for Python.

Endpoints

Method and pathAccepts
POST /api/{projectId}/envelope/Sentry envelopes, the format every current SDK uses
POST /api/{projectId}/store/A single JSON event, the legacy format

{projectId} is ignored. The key is read, in this order, from the sentry_key in X-Sentry-Auth, from an Authorization: DSN ... header, or from the sentry_key query parameter, which is what SDKs send. It must be a public ingest token (pt_). An ak_ API key is rejected.

Anything else under /api/{projectId}/ returns 404, including:

  • /minidump/ (send minidumps as envelope attachments instead, see below)
  • /security/ (CSP, Expect-CT and other browser security reports)
  • /unreal/
  • every sentry-cli and web API route: releases, deploys, commits, artifact bundles, chunk upload, debug files, monitors and issues

Envelope item types

Item typeKeptStored asShows in
event with an exception, or level error / fatalYesError event, grouped into an issueErrors
event without an exception, below errorYesLog-level messageEvents
transactionYesA root span plus one span per child in spans, each with start, end and statusTraces
span, streamed v2 (application/vnd.sentry.items.span.v2+json)YesOne span per item in the batchTraces
span, legacy v1 standaloneYesOne spanTraces
log (application/vnd.sentry.items.log+json)YesOne log event per record, with level, body, attributes and message templateEvents
trace_metricYes: counter, gauge, distributionMetric points with unit and attributesMetrics
check_inYes: in_progress, ok, errorMonitor runs; monitor_config upserts the monitorMonitors
attachmentYes, up to 5 MiB eachFile in object storage plus a metadata rowThe issue or trace it belongs to
sessionYes, when it has a releaseHourly release health counters and per-user statusReleases
sessions (aggregates)Yes, when it has a releaseSame as sessionReleases
feedbackYesFeedback eventThe linked issue in Errors
user_reportYesFeedback eventThe linked issue in Errors
client_reportReadSDK-side drop countsWhat we receive
replay_event, replay_recording, replay_videoNoCounted as not supportedWhat we receive
profile, profile_chunk, profile_chunk_uiNoCounted as not supportedWhat we receive
Any other typeNoCounted as not recognisedWhat we receive

Notes on specific items:

  • AI and MCP spans. Spans with a gen_ai.* operation or from MCP server instrumentation are treated as agent, model and tool steps. Older attribute names that SDKs still send (for example gen_ai.request.messages, gen_ai.system, gen_ai.usage.input_tokens.cached, mcp.tool.name) are also copied to their current names, so older and newer SDKs read the same.
  • Streamed spans take their release and environment from the envelope’s trace header when a span doesn’t carry them.
  • Transactions keep the raw transaction (without the child list) on the root span, and child spans inherit its release, environment, host, user and SDK.
  • Logs use the message template (sentry.message.template) as the event name, so records from one logger.info("cart {id} ...") call group together. warning is stored as warn.
  • Metrics of any other type, or without a name, value or timestamp, are skipped.
  • Check-ins need a monitor_slug, a check_in_id and a known status. A check-in id of all zeros finishes the monitor’s latest in_progress run. duration is stored in milliseconds.
  • Attachments can belong to an error event or, with the trace attachment content types (application/vnd.sentry.trace-attachment, application/vnd.sentry.attachment.v2), to a trace or span. Minidumps sent as event.minidump attachments are stored as files without symbolication. A deployment without object storage counts attachments as “no storage configured” instead of storing them.
  • Sessions count users by the SDK’s distinct id (did), hashed with the organisation id before it is stored.
  • Feedback keeps the message, contact email, name, page URL, linked event id and source.

Fields kept on events

The full Sentry event is stored with each error and message, and the issue page reads the exception chain, stack frames, breadcrumbs, request and contexts from it. These fields are also indexed as attributes for search and filtering:

Sentry fieldAttribute
exception.values[0].type, .valueerror.type, error.message
message, logentrymessage
releasedeployment.release
environmentdeployment.environment.name
server_namehost.name
user.iduser.id
tags (object or list of pairs)sentry.tag.<key>
transactionsentry.transaction
contexts.trace.opsentry.op
platform, dist, levelsentry.platform, sentry.dist, sentry.level
sdk.name, sdk.versionsentry.sdk.name, sentry.sdk.version
event_idsentry.event_id
fingerprintsentry.fingerprint

Timestamps come from the SDK: an event’s timestamp, a span’s start and end, a log record’s time. Events queued offline or retried keep the time they happened.

Grouping

An issue’s fingerprint is a hash of:

  1. the exception type,
  2. the message, lowercased, with UUIDs, hex ids, numbers, quoted strings, paths and URLs replaced by placeholders, so order 4812 not found and order 4813 not found group together,
  3. the last in-app stack frame (file:function), or the last frame when none is marked in-app. Without a stack, the HTTP route template is used when present.

A fingerprint set in the SDK replaces this. If it contains {{ default }}, the custom parts extend the default grouping instead of replacing it.

server_name is stored as host.name and is not part of the fingerprint, so the same error on many replicas is one issue.

More than error events open issues

Error and fatal log records, and spans whose status is a failure, are also grouped into issues. If you send errors both as exceptions and as logger.error records, you may see both.

Issues are grouped across the organisation, not per application or environment. There is no server-side grouping configuration and no issue merge.

Transport

Compression. The request body may use Content-Encoding gzip, deflate, br or zstd (or none), on both endpoints. Envelope items may also carry their own content_encoding. Other encodings return 400.

Size. A request body over 6 MB returns 413, and a body or envelope that decompresses to more than 6 MB returns 400. Each attachment is limited to 5 MiB; larger ones are dropped with a “too large” outcome rather than cut.

Responses. A successful envelope returns 200 with {"id": "<event_id>"}. When some items were not kept, the body adds a partialSuccess object listing them; SDKs ignore it, so use What we receive to see drops. One bad item never fails the rest of the envelope. If nothing in the envelope could be stored, the response is 503 with Retry-After: 60.

Rate limits. When the organisation is over its monthly quota (429), or ingest is refused for billing (402: trial ended, payment overdue past its grace period, subscription paused or not activated), the response carries X-Sentry-Rate-Limits covering every category and a matching Retry-After: 60 seconds for quota, an hour for 402. SDKs stop sending for that long and report the dropped data in their next client report. Self-hosted installs have no quota, but an inactive licence also answers 402 with an hour’s back-off. Browser SDKs can read both headers across origins.

Other errors. 401 with WWW-Authenticate: Sentry for a missing, revoked or unbound key, and 403 when Sentry ingest is turned off on the server.

What we receive

Every item is accounted for per day, environment and category under Settings › Integrations › Sentry › What we receive, and through the GET /ingest/outcomes API and the ingest_outcomes MCP tool:

ReasonMeaning
AcceptedStored
Not supportedReplays and profiles
Not recognisedAn item type axonpush doesn’t map
InvalidThe item could not be read
Too largeAn attachment over 5 MiB
No storage configuredThis deployment has no storage for the type (attachments without object storage)
Could not be stored, ingest failedA storage error on the axonpush side
Dropped by the SDKFrom the SDK’s client reports: sampling, before_send, rate-limit back-off, queue or buffer overflow, network errors

See Ingest outcomes.

Retention

Errors, spans, logs, messages and feedback are events and follow the organisation’s retention, measured from when they happened (or were received, if earlier). Metrics, check-ins, attachments, release health and ingest outcomes are kept for 30 days.

Privacy

Event content passes through the organisation’s redaction policy before it is stored. Credential-looking values (authorization headers, cookies, passwords, bearer tokens, JWTs, API keys, private keys) are always removed. The capture mode under Settings › Privacy decides whether prompt and response content on AI and MCP spans is kept, shortened or dropped. See Privacy.