LogBrew · Schema

NativeTelemetryEnvelope

A batch of native telemetry emitted by a first-party SDK.

ObservabilityLoggingMonitoringAnalyticsError Tracking

Properties

Name Type Description
environment string Deployment environment, such as `production` or `staging`.
items array Telemetry items carried by this envelope.
project_id string Target project that owns every item in this batch.
release string Application release, build, or git SHA.
sdk_name string SDK name, such as `logbrew-rust` or `logbrew-swift`.
sdk_version string SDK semantic version.
service_name string Logical service name, such as `checkout-api`.
trace_id stringnull Distributed trace ID shared by items in the envelope when available.
View JSON Schema on GitHub

JSON Schema

logbrew-native-telemetry-envelope-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/logbrew/json-schema/logbrew-native-telemetry-envelope-schema.json",
  "title": "NativeTelemetryEnvelope",
  "description": "A batch of native telemetry emitted by a first-party SDK.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/logbrew-ingestion-api-openapi.yml#/components/schemas/NativeTelemetryEnvelope",
  "properties": {
    "environment": {
      "default": "",
      "description": "Deployment environment, such as `production` or `staging`.",
      "type": "string"
    },
    "items": {
      "description": "Telemetry items carried by this envelope.",
      "items": {
        "$ref": "#/$defs/NativeTelemetryItem"
      },
      "type": "array"
    },
    "project_id": {
      "description": "Target project that owns every item in this batch.",
      "format": "uuid",
      "type": "string"
    },
    "release": {
      "description": "Application release, build, or git SHA.",
      "type": "string"
    },
    "sdk_name": {
      "description": "SDK name, such as `logbrew-rust` or `logbrew-swift`.",
      "type": "string"
    },
    "sdk_version": {
      "description": "SDK semantic version.",
      "type": "string"
    },
    "service_name": {
      "description": "Logical service name, such as `checkout-api`.",
      "type": "string"
    },
    "trace_id": {
      "description": "Distributed trace ID shared by items in the envelope when available.",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "project_id",
    "release",
    "service_name",
    "sdk_name",
    "sdk_version",
    "items"
  ],
  "type": "object",
  "$defs": {
    "NativeAction": {
      "description": "Product action emitted by a native SDK.",
      "properties": {
        "distinct_id": {
          "description": "Stable actor identifier.",
          "type": "string"
        },
        "id": {
          "description": "Client event ID. A replay of an accepted ID is acknowledged, not stored again.",
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "description": "Machine-safe action name, such as `checkout_failed`.",
          "type": "string"
        },
        "occurred_at": {
          "description": "When the action occurred.",
          "format": "date-time",
          "type": "string"
        },
        "properties": {
          "description": "Action properties."
        },
        "session_id": {
          "description": "Client session identifier, if available.",
          "type": [
            "string",
            "null"
          ]
        },
        "span_id": {
          "description": "Exact span identifier for trace correlation, when available.",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "name",
        "distinct_id",
        "occurred_at",
        "properties"
      ],
      "type": "object"
    },
    "NativeIssueEvent": {
      "description": "Error or crash candidate emitted by a native SDK.",
      "properties": {
        "attributes": {
          "description": "Additional structured context."
        },
        "exception_type": {
          "description": "Runtime exception or error type, if available.",
          "type": [
            "string",
            "null"
          ]
        },
        "fingerprint": {
          "description": "SDK-provided grouping override.",
          "type": [
            "string",
            "null"
          ]
        },
        "id": {
          "description": "Client event ID. A replay of an accepted ID is acknowledged, not stored again.",
          "type": [
            "string",
            "null"
          ]
        },
        "message": {
          "description": "Human-readable failure message.",
          "type": "string"
        },
        "occurred_at": {
          "description": "When the issue occurred in the client application.",
          "format": "date-time",
          "type": "string"
        },
        "severity": {
          "description": "User-facing severity: `info`, `warning`, `error`, or `critical`.\n\nSDK aliases such as `warn` and `fatal` are accepted at ingest and\nnormalized by the backend before API responses.",
          "type": "string"
        },
        "span_id": {
          "description": "Exact span identifier for trace correlation, when available.",
          "type": [
            "string",
            "null"
          ]
        },
        "stack_frames": {
          "description": "Structured stack frames used for stable grouping.",
          "items": {
            "$ref": "#/$defs/StackFrame"
          },
          "type": "array"
        },
        "stack_trace": {
          "description": "Original stack trace text, if available.",
          "type": [
            "string",
            "null"
          ]
        },
        "title": {
          "description": "Short title shown in issue lists.",
          "type": "string"
        }
      },
      "required": [
        "severity",
        "title",
        "message",
        "stack_frames",
        "attributes",
        "occurred_at"
      ],
      "type": "object"
    },
    "NativeLogEvent": {
      "description": "Structured log line emitted by a native SDK.",
      "properties": {
        "attributes": {
          "description": "Additional structured fields."
        },
        "id": {
          "description": "Client event ID. A replay of an accepted ID is acknowledged, not stored again.",
          "type": [
            "string",
            "null"
          ]
        },
        "level": {
          "description": "SDK log level as emitted by the runtime.\n\nAccepted values include `trace`, `debug`, `info`, `warn`, `warning`,\n`error`, `fatal`, and `critical`. The backend stores and returns the\ncanonical user-facing value.",
          "type": "string"
        },
        "message": {
          "description": "Log message.",
          "type": "string"
        },
        "occurred_at": {
          "description": "When the log line occurred in the client application.",
          "format": "date-time",
          "type": "string"
        },
        "source": {
          "description": "Log source, usually `runtime`.",
          "type": "string"
        },
        "span_id": {
          "description": "Exact span identifier for trace correlation, when available.",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "level",
        "message",
        "source",
        "attributes",
        "occurred_at"
      ],
      "type": "object"
    },
    "NativeTelemetryItem": {
      "description": "A single native telemetry item.",
      "oneOf": [
        {
          "description": "Error or crash candidate that should be grouped into an issue.",
          "properties": {
            "data": {
              "$ref": "#/$defs/NativeIssueEvent"
            },
            "type": {
              "const": "issue",
              "type": "string"
            }
          },
          "required": [
            "type",
            "data"
          ],
          "type": "object"
        },
        {
          "description": "Structured application log line.",
          "properties": {
            "data": {
              "$ref": "#/$defs/NativeLogEvent"
            },
            "type": {
              "const": "log",
              "type": "string"
            }
          },
          "required": [
            "type",
            "data"
          ],
          "type": "object"
        },
        {
          "description": "Distributed trace span.",
          "properties": {
            "data": {
              "$ref": "#/$defs/NativeTraceSpanEvent"
            },
            "type": {
              "const": "trace_span",
              "type": "string"
            }
          },
          "required": [
            "type",
            "data"
          ],
          "type": "object"
        },
        {
          "description": "Product action event.",
          "properties": {
            "data": {
              "$ref": "#/$defs/NativeAction"
            },
            "type": {
              "const": "action",
              "type": "string"
            }
          },
          "required": [
            "type",
            "data"
          ],
          "type": "object"
        }
      ]
    },
    "NativeTraceSpanEvent": {
      "description": "Distributed trace span emitted by a native SDK.",
      "properties": {
        "attributes": {
          "description": "Additional span attributes."
        },
        "duration_ms": {
          "description": "Span duration in milliseconds.",
          "format": "int64",
          "type": "integer"
        },
        "id": {
          "description": "Client event ID. A replay of an accepted ID is acknowledged, not stored again.",
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "description": "Human-readable span name.",
          "type": "string"
        },
        "operation": {
          "description": "Operation category, such as `http.server` or `db.query`.",
          "type": "string"
        },
        "parent_span_id": {
          "description": "Parent span ID, absent for root spans.",
          "type": [
            "string",
            "null"
          ]
        },
        "span_id": {
          "description": "Span ID unique within the trace.",
          "type": "string"
        },
        "started_at": {
          "description": "Span start timestamp.",
          "format": "date-time",
          "type": "string"
        },
        "status": {
          "description": "Span status, such as `ok`, `error`, or `cancelled`.",
          "type": [
            "string",
            "null"
          ]
        },
        "trace_id": {
          "description": "W3C/OpenTelemetry-compatible trace ID.",
          "type": "string"
        }
      },
      "required": [
        "trace_id",
        "span_id",
        "name",
        "operation",
        "started_at",
        "duration_ms",
        "attributes"
      ],
      "type": "object"
    },
    "StackFrame": {
      "description": "Structured stack frame for native issue grouping.",
      "properties": {
        "column": {
          "description": "Source column number.",
          "format": "int32",
          "type": [
            "integer",
            "null"
          ]
        },
        "debug_id": {
          "description": "Release-artifact debug identity retained for hosted symbolication.",
          "format": "uuid",
          "type": [
            "string",
            "null"
          ]
        },
        "filename": {
          "description": "Source filename or path.",
          "type": [
            "string",
            "null"
          ]
        },
        "function": {
          "description": "Function or method name.",
          "type": [
            "string",
            "null"
          ]
        },
        "in_app": {
          "description": "Whether the SDK classified this frame as application-owned code.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "line": {
          "description": "Source line number.",
          "format": "int32",
          "type": [
            "integer",
            "null"
          ]
        },
        "module": {
          "description": "Module, package, namespace, or crate path.",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/logbrew-native-telemetry-envelope"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.