{"title":"Configure an exporter","description":"Authenticate OpenTelemetry exporters and send logs, traces, and telemetry signals into Altertable for SQL analysis.","order":100,"askSuggestions":["How do I build the Basic Auth header for my exporter?","Why are no rows appearing after I export telemetry?","Why is my telemetry landing in the wrong environment?"],"navigation":true,"routeId":"ingestDataOpenTelemetry","body":{"code":"var Component=(()=>{var y=Object.create;var c=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var v=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty;var b=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),w=(n,e)=>{for(var o in e)c(n,o,{get:e[o],enumerable:!0})},p=(n,e,o,a)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let i of T(e))!S.call(n,i)&&i!==o&&c(n,i,{get:()=>e[i],enumerable:!(a=x(e,i))||a.enumerable});return n};var D=(n,e,o)=>(o=n!=null?y(v(n)):{},p(e||!n||!n.__esModule?c(o,\"default\",{value:n,enumerable:!0}):o,n)),I=n=>p(c({},\"__esModule\",{value:!0}),n);var m=b((A,u)=>{u.exports=_jsx_runtime});var C={};w(C,{default:()=>f,frontmatter:()=>O});var t=D(m()),O={title:\"Configure an exporter\",routeId:\"ingestDataOpenTelemetry\",description:\"Authenticate OpenTelemetry exporters and send logs, traces, and telemetry signals into Altertable for SQL analysis.\",order:100,askSuggestions:[\"How do I build the Basic Auth header for my exporter?\",\"Why are no rows appearing after I export telemetry?\",\"Why is my telemetry landing in the wrong environment?\"]};function g(n){let e={a:\"a\",code:\"code\",h1:\"h1\",h2:\"h2\",h3:\"h3\",li:\"li\",p:\"p\",pre:\"pre\",strong:\"strong\",ul:\"ul\",...n.components},{CodeSnippet:o,DocsAppAction:a,DocsCodeExamples:i,DocsPreviewDocument:l,DocsPreviewSection:r,DocsPrompt:d,DocsSectionCards:h}=e;return o||s(\"CodeSnippet\",!0),a||s(\"DocsAppAction\",!0),i||s(\"DocsCodeExamples\",!0),l||s(\"DocsPreviewDocument\",!0),r||s(\"DocsPreviewSection\",!0),d||s(\"DocsPrompt\",!0),h||s(\"DocsSectionCards\",!0),(0,t.jsxs)(l,{anchors:\"configure-an-exporter set-up-with-your-coding-agent goal prerequisites sdk-and-collector-setup steps 1-configure-authentication 2-choose-a-signal 3-export-telemetry verification troubleshooting next-steps\",children:[(0,t.jsxs)(r,{sectionId:\"configure-an-exporter\",anchors:\"\",ancestors:\"\",index:\"0\",children:[(0,t.jsx)(e.h1,{id:\"configure-an-exporter\",children:\"Configure an exporter\"}),`\n`,(0,t.jsxs)(e.p,{children:[\"Configure OpenTelemetry SDKs or collectors to send OTLP/HTTP data to Altertable. Logs, traces, and metrics are written into the built-in \",(0,t.jsx)(e.code,{children:\"opentelemetry\"}),\" catalog for the target environment.\"]}),`\n`]}),(0,t.jsxs)(r,{sectionId:\"set-up-with-your-coding-agent\",anchors:\"\",ancestors:\"\",index:\"1\",children:[(0,t.jsx)(e.h2,{id:\"set-up-with-your-coding-agent\",children:\"Set up with your coding agent\"}),`\n`,(0,t.jsx)(e.p,{children:\"Open this prompt from the repository for the service you want to instrument.\"}),`\n`,(0,t.jsx)(d,{children:(0,t.jsx)(e.pre,{children:(0,t.jsx)(e.code,{className:\"language-text\",children:`Set up OpenTelemetry export to Altertable for this service. Read https://altertable.ai/docs/opentelemetry/setup.md and the official documentation for the installed SDK or collector first.\n\nInspect the runtime, existing instrumentation, exporters, and deployment configuration. Determine which signal I need first: logs, traces, or metrics. Ask only if the signal or target environment is unclear. Reuse existing instrumentation and preserve other telemetry destinations.\n\nConfigure OTLP over HTTP, the correct signal endpoint and encoding, batching, and service resource attributes. Keep lakehouse credentials in server-side secret configuration; do not print or commit them. Confirm the target Altertable environment.\n\nRun the project's checks and send one non-sensitive test signal. Inspect the actual schema in the opentelemetry catalog and query the matching logs, spans, or metrics. Verify the service, timestamp, and test payload rather than relying on an exporter acknowledgement. Report the changes and any deployment configuration I must complete.\n`})})}),`\n`]}),(0,t.jsxs)(r,{sectionId:\"goal\",anchors:\"\",ancestors:\"\",index:\"2\",children:[(0,t.jsx)(e.h2,{id:\"goal\",children:\"Goal\"}),`\n`,(0,t.jsx)(e.p,{children:\"Authenticate an OpenTelemetry exporter, send logs, traces, or metrics to Altertable, and verify the accepted telemetry with SQL.\"}),`\n`]}),(0,t.jsxs)(r,{sectionId:\"prerequisites\",anchors:\"\",ancestors:\"\",index:\"3\",children:[(0,t.jsx)(e.h2,{id:\"prerequisites\",children:\"Prerequisites\"}),`\n`,(0,t.jsxs)(e.ul,{children:[`\n`,(0,t.jsxs)(e.li,{children:[\"Enable \",(0,t.jsx)(e.a,{href:\"/docs/opentelemetry\",children:\"OpenTelemetry\"}),\" for the target environment.\"]}),`\n`,(0,t.jsxs)(e.li,{children:[\"Have access to the target environment\\u2019s \",(0,t.jsx)(e.a,{href:\"/docs/administration/lakehouse-credentials\",children:\"lakehouse credentials\"}),\".\"]}),`\n`,(0,t.jsx)(e.li,{children:\"Configure an OpenTelemetry SDK or collector that supports OTLP over HTTP with protobuf or JSON encoding.\"}),`\n`]}),`\n`]}),(0,t.jsxs)(r,{sectionId:\"sdk-and-collector-setup\",anchors:\"\",ancestors:\"\",index:\"4\",children:[(0,t.jsx)(e.h2,{id:\"sdk-and-collector-setup\",children:\"SDK and collector setup\"}),`\n`,(0,t.jsxs)(e.p,{children:[\"Use the \",(0,t.jsx)(e.a,{href:\"https://opentelemetry.io/docs/languages/\",children:\"OpenTelemetry SDK for your application language\"}),\" or an existing collector with an OTLP/HTTP exporter. Configure instrumentation, batching, and resource attributes in the SDK or collector, then use the credentials and endpoints below.\"]}),`\n`]}),(0,t.jsxs)(r,{sectionId:\"steps\",anchors:\"\",ancestors:\"\",index:\"5\",children:[(0,t.jsx)(e.h2,{id:\"steps\",children:\"Steps\"}),`\n`]}),(0,t.jsxs)(r,{sectionId:\"1-configure-authentication\",anchors:\"\",ancestors:\"steps\",index:\"6\",children:[(0,t.jsx)(e.h3,{id:\"1-configure-authentication\",children:\"1. Configure authentication\"}),`\n`,(0,t.jsx)(e.p,{children:\"OpenTelemetry uses HTTP Basic Auth with your environment\\u2019s lakehouse credentials. Copy this header into your SDK or collector configuration:\"}),`\n`,(0,t.jsx)(o,{language:\"http\",children:\"Authorization: Basic {{BASE64_TOKEN}}\"}),`\n`,(0,t.jsxs)(e.p,{children:[\"The token is already Base64-encoded. If your exporter has separate header name and value fields, use \",(0,t.jsx)(e.code,{children:\"Authorization\"}),\" as the name and \",(0,t.jsx)(e.code,{children:\"Basic <token>\"}),\" as the value.\"]}),`\n`,(0,t.jsxs)(e.p,{children:[\"If the exporter provides separate username and password fields for Basic Auth, use the lakehouse credentials from \",(0,t.jsx)(e.strong,{children:\"API keys & credentials\"}),\" in organization settings. Use credentials from the environment that owns the OpenTelemetry catalog.\"]}),`\n`,(0,t.jsx)(a,{destination:\"credentials\"}),`\n`,(0,t.jsxs)(e.p,{children:[\"To build the header yourself, Base64-encode \",(0,t.jsx)(e.code,{children:\"username:password\"}),\" and prefix the result with \",(0,t.jsx)(e.code,{children:\"Basic\"}),\" followed by a space. The \",(0,t.jsx)(e.a,{href:\"/docs/api-references/opentelemetry#authentication\",children:\"OpenTelemetry API reference\"}),\" defines the authentication header and request format.\"]}),`\n`]}),(0,t.jsxs)(r,{sectionId:\"2-choose-a-signal\",anchors:\"\",ancestors:\"steps\",index:\"7\",children:[(0,t.jsx)(e.h3,{id:\"2-choose-a-signal\",children:\"2. Choose a signal\"}),`\n`,(0,t.jsxs)(e.ul,{children:[`\n`,(0,t.jsxs)(e.li,{children:[(0,t.jsx)(e.a,{href:\"/docs/opentelemetry/logs\",children:\"Send logs\"}),\" to \",(0,t.jsx)(e.code,{children:\"POST https://api.altertable.ai/v1/logs\"}),\".\"]}),`\n`,(0,t.jsxs)(e.li,{children:[(0,t.jsx)(e.a,{href:\"/docs/opentelemetry/metrics\",children:\"Send metrics\"}),\" to \",(0,t.jsx)(e.code,{children:\"POST https://api.altertable.ai/v1/metrics\"}),\".\"]}),`\n`,(0,t.jsxs)(e.li,{children:[(0,t.jsx)(e.a,{href:\"/docs/opentelemetry/traces\",children:\"Send traces\"}),\" to \",(0,t.jsx)(e.code,{children:\"POST https://api.altertable.ai/v1/traces\"}),\".\"]}),`\n`]}),`\n`]}),(0,t.jsxs)(r,{sectionId:\"3-export-telemetry\",anchors:\"\",ancestors:\"steps\",index:\"8\",children:[(0,t.jsx)(e.h3,{id:\"3-export-telemetry\",children:\"3. Export telemetry\"}),`\n`,(0,t.jsxs)(e.p,{children:[\"Configure your SDK or collector with the selected endpoint, the content type matching its encoding (\",(0,t.jsx)(e.code,{children:\"application/x-protobuf\"}),\" or \",(0,t.jsx)(e.code,{children:\"application/json\"}),\"), and the Basic Auth header. Start the instrumented application or collector to send a batch.\"]}),`\n`]}),(0,t.jsxs)(r,{sectionId:\"verification\",anchors:\"\",ancestors:\"\",index:\"9\",children:[(0,t.jsx)(e.h2,{id:\"verification\",children:\"Verification\"}),`\n`,(0,t.jsxs)(e.p,{children:[\"Open \",(0,t.jsx)(e.a,{href:\"/docs/lakehouse/query/sql-explorer\",children:\"SQL Explorer\"}),\" and choose the signal you sent:\"]}),`\n`,(0,t.jsx)(i,{examples:[{label:\"Logs\",language:\"sql\",code:\"SELECT * FROM opentelemetry.main.logs ORDER BY timestamp DESC LIMIT 10;\"},{label:\"Traces\",language:\"sql\",code:\"SELECT * FROM opentelemetry.main.spans ORDER BY start_time DESC LIMIT 10;\"},{label:\"Metrics\",language:\"sql\",code:\"SELECT * FROM opentelemetry.main.metrics ORDER BY timestamp DESC LIMIT 10;\"}]}),`\n`,(0,t.jsx)(e.p,{children:\"Find your service and check that the timestamp and telemetry fields match the test signal you sent. If it is missing, use the troubleshooting checks below.\"}),`\n`]}),(0,t.jsxs)(r,{sectionId:\"troubleshooting\",anchors:\"\",ancestors:\"\",index:\"10\",children:[(0,t.jsx)(e.h2,{id:\"troubleshooting\",children:\"Troubleshooting\"}),`\n`,(0,t.jsxs)(e.ul,{children:[`\n`,(0,t.jsxs)(e.li,{children:[(0,t.jsx)(e.strong,{children:\"The exporter receives an authentication error:\"}),\" rebuild the Basic Auth header with credentials from the same environment as the OpenTelemetry catalog.\"]}),`\n`,(0,t.jsxs)(e.li,{children:[(0,t.jsx)(e.strong,{children:\"No rows appear:\"}),\" confirm that the exporter uses OTLP/HTTP, the correct signal endpoint, and a content type matching its payload.\"]}),`\n`,(0,t.jsxs)(e.li,{children:[(0,t.jsx)(e.strong,{children:\"Telemetry is in the wrong environment:\"}),\" update the exporter credentials to those of the intended environment.\"]}),`\n`]}),`\n`]}),(0,t.jsxs)(r,{sectionId:\"next-steps\",anchors:\"\",ancestors:\"\",index:\"11\",children:[(0,t.jsx)(e.h2,{id:\"next-steps\",children:\"Next steps\"}),`\n`,(0,t.jsx)(h,{path:\"related\",alsoInclude:[\"opentelemetry/logs\",\"opentelemetry/traces\",\"opentelemetry/metrics\",\"api-references/opentelemetry\"]})]})]})}function f(n={}){let{wrapper:e}=n.components||{};return e?(0,t.jsx)(e,{...n,children:(0,t.jsx)(g,{...n})}):g(n)}function s(n,e){throw new Error(\"Expected \"+(e?\"component\":\"object\")+\" `\"+n+\"` to be defined: you likely forgot to import, pass, or provide it.\")}return I(C);})();\n;return Component;"},"_id":"docs/opentelemetry/setup.mdx","_raw":{"sourceFilePath":"docs/opentelemetry/setup.mdx","sourceFileName":"setup.mdx","sourceFileDir":"docs/opentelemetry","contentType":"mdx","flattenedPath":"docs/opentelemetry/setup"},"type":"Docs","path":"/opentelemetry/setup","level":2,"parent":"opentelemetry"}