{"title":"OpenTelemetry data model","description":"Look up the OpenTelemetry logs, spans, and metrics in Altertable, understand accepted signals, and query telemetry alongside other lakehouse catalogs.","order":800,"navigation":true,"body":{"code":"var Component=(()=>{var u=Object.create;var i=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var b=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty;var g=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),x=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of y(e))!f.call(t,o)&&o!==r&&i(t,o,{get:()=>e[o],enumerable:!(s=h(e,o))||s.enumerable});return t};var D=(t,e,r)=>(r=t!=null?u(b(t)):{},c(e||!t||!t.__esModule?i(r,\"default\",{value:t,enumerable:!0}):r,t)),T=t=>c(i({},\"__esModule\",{value:!0}),t);var l=g((j,d)=>{d.exports=_jsx_runtime});var v={};x(v,{default:()=>p,frontmatter:()=>w});var n=D(l()),w={title:\"OpenTelemetry data model\",description:\"Look up the OpenTelemetry logs, spans, and metrics in Altertable, understand accepted signals, and query telemetry alongside other lakehouse catalogs.\",order:800};function m(t){let e={code:\"code\",h1:\"h1\",p:\"p\",...t.components},{DocsPreviewDocument:r,DocsPreviewSection:s,DocsTable:o}=e;return r||a(\"DocsPreviewDocument\",!0),s||a(\"DocsPreviewSection\",!0),o||a(\"DocsTable\",!0),(0,n.jsx)(r,{anchors:\"opentelemetry-data-model\",children:(0,n.jsxs)(s,{sectionId:\"opentelemetry-data-model\",anchors:\"\",ancestors:\"\",index:\"0\",children:[(0,n.jsx)(e.h1,{id:\"opentelemetry-data-model\",children:\"OpenTelemetry data model\"}),`\n`,(0,n.jsx)(e.p,{children:\"When you enable OpenTelemetry, Altertable creates the catalog tables for you and exposes OTLP/HTTP endpoints that make ingestion easier. Accepted traces, logs, and metrics are written to normal SQL tables:\"}),`\n`,(0,n.jsx)(o,{columns:[\"Table\",\"Description\"],data:[{Table:\"`opentelemetry.main.spans`\",Description:\"Trace spans with service, timing, status, attributes, events, and links\"},{Table:\"`opentelemetry.main.metrics`\",Description:\"Metric points joined with metric names, types, services, and series attributes\"},{Table:\"`opentelemetry.main.logs`\",Description:\"Log records with severity, body, trace/span IDs, attributes, and resource attributes\"}]}),`\n`,(0,n.jsxs)(e.p,{children:[\"Query \",(0,n.jsx)(e.code,{children:\"opentelemetry.main.metrics\"}),\" for metric values with their series attributes. The view joins the underlying \",(0,n.jsx)(e.code,{children:\"metric_points\"}),\" and \",(0,n.jsx)(e.code,{children:\"metric_series\"}),\" tables. Gauge and sum points expose \",(0,n.jsx)(e.code,{children:\"value\"}),\"; histogram and summary points expose fields such as \",(0,n.jsx)(e.code,{children:\"count\"}),\" and \",(0,n.jsx)(e.code,{children:\"sum\"}),\".\"]})]})})}function p(t={}){let{wrapper:e}=t.components||{};return e?(0,n.jsx)(e,{...t,children:(0,n.jsx)(m,{...t})}):m(t)}function a(t,e){throw new Error(\"Expected \"+(e?\"component\":\"object\")+\" `\"+t+\"` to be defined: you likely forgot to import, pass, or provide it.\")}return T(v);})();\n;return Component;"},"_id":"docs/opentelemetry/data-model.mdx","_raw":{"sourceFilePath":"docs/opentelemetry/data-model.mdx","sourceFileName":"data-model.mdx","sourceFileDir":"docs/opentelemetry","contentType":"mdx","flattenedPath":"docs/opentelemetry/data-model"},"type":"Docs","path":"/opentelemetry/data-model","level":2,"parent":"opentelemetry"}