Answer: Set the `OTEL_*` environment variables, including `OTEL_EXPORTER_OTLP_ENDPOINT` for the collector base URL, `OTEL_EXPORTER_OTLP_HEADERS` for auth headers, and `OTEL_SERVICE_NAME`; Agent SDK then sends traces, metrics, and logs to the OTLP collector. The default protocol is `http/protobuf`, and if you don't set an endpoint, Agent SDK doesn't export anything. Status: Confirmed Entry: tool/cursor/integrations/configure-otel-export Revision: 1 Digest: sha256:6612da5a9660ff2b (changes whenever the content changes) Timeline: Created: 2026-11-13T03:08:37Z Last changed: 2026-11-13T03:08:37Z Last verified: 2026-11-20T12:33:09Z Next check: 2026-11-21T12:33:09Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of endpoint variable | OTEL_EXPORTER_OTLP_ENDPOINT | [1] | 2026-11-20 headers variable | OTEL_EXPORTER_OTLP_HEADERS | [1] | 2026-11-20 service name variable | OTEL_SERVICE_NAME | [1] | 2026-11-20 default protocol | http/protobuf | [1] | 2026-11-20 endpoint path appends | /v1/traces | [1] | 2026-11-20 logs exporter | otlp | [1] | 2026-11-20 no endpoint behavior | If you don't set an endpoint, Agent SDK doesn't export anything. | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/agent-sdk/guides/opentelemetry.md". https://cursor.com/docs/agent-sdk/guides/opentelemetry.md Role: primary. Accessed: 2026-11-20T12:33:09Z Quote: "export OTEL_EXPORTER_OTLP_ENDPOINT=https://otel.example.com" (Supports: endpoint variable) Quote: "export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer%20$OTEL_TOKEN"" (Supports: headers variable) Quote: "export OTEL_SERVICE_NAME=incident-agent" (Supports: service name variable) Quote: "The default protocol is `http/protobuf`." (Supports: default protocol) Quote: "Base URL. Appends `/v1/traces`, `/v1/metrics`, `/v1/logs`." (Supports: endpoint path appends) Quote: "`otlp` exports logs. Unset, `none`, and `console` do not." (Supports: logs exporter) Quote: "If you don't set an endpoint, Agent SDK doesn't export anything." (Supports: no endpoint behavior) Snapshot SHA-256: 1e7da9d4f116cf6156761fd4b7677b72e91a74b20c35d8a02d40f351147f667d (captured 2026-11-13T03:08:37Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:08:37Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:33:09Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:33:09Z Last attempt: 2026-11-20T12:33:09Z Notes and limitations: Extracted automatically from a single official source (section "OpenTelemetry"). Related: https://latestn.com/tool/cursor/integrations/confirm-user-identity How do I confirm a user's Cursor identity and handle the callback in Origin? https://latestn.com/tool/cursor/integrations/connect-bitbucket-account How do I connect my Bitbucket account to Cursor? https://latestn.com/tool/cursor/integrations/connect-bitbucket-repository How do I connect a Bitbucket repository to a Cursor agent? https://latestn.com/tool/cursor/integrations/clonekit-github-actions-setup How do I set up CloneKit in GitHub Actions for Cursor Origin? https://latestn.com/tool/cursor/integrations/cloud-agents-mcp-support Does Cursor Cloud Agents support MCP servers? https://latestn.com/tool/cursor/integrations/cloud-mcp-tools-permissions What MCP tools can Cursor Cloud Agents access and what permissions do they have? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:08:37Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/integrations/configure-otel-export/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/cursor/integrations/configure-otel-export POST: https://latestn.com/dispute/tool/cursor/integrations/configure-otel-export with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/integrations/configure-otel-export?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I configure Cursor Agent SDK to send OpenTelemetry traces, metrics, and logs to an OTLP collector? Revision 1, last verified 2026-11-20T12:33:09Z. https://latestn.com/tool/cursor/integrations/configure-otel-export (accessed 2026-11-21T10:00:28Z). @misc{LatestN_tool_cursor_integrations_configure_otel_export_r1, title = {How do I configure Cursor Agent SDK to send OpenTelemetry traces, metrics, and logs to an OTLP collector?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/integrations/configure-otel-export}}, note = {Revision 1; digest sha256:6612da5a9660ff2b; last verified 2026-11-20T12:33:09Z; accessed 2026-11-21T10:00:28Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/cursor/integrations/configure-otel-export