Title: Tool call errors have a different trace than tool call errors · Issue #17108 · getsentry/sentry-javascript · GitHub
Open Graph Title: Tool call errors have a different trace than tool call errors · Issue #17108 · getsentry/sentry-javascript
X Title: Tool call errors have a different trace than tool call errors · Issue #17108 · getsentry/sentry-javascript
Description: Trace, IssueRepro: import "./instrument"; import { generateText, streamText, tool } from "ai"; import { openai } from "@ai-sdk/openai"; import dotenv from "dotenv"; import { z } from "zod"; import * as Sentry from "@sentry/node"; dotenv....
Open Graph Description: Trace, IssueRepro: import "./instrument"; import { generateText, streamText, tool } from "ai"; import { openai } from "@ai-sdk/openai"; import dotenv from "dotenv"; import { z } from "zod"; import ...
X Description: Trace, IssueRepro: import "./instrument"; import { generateText, streamText, tool } from "ai"; import { openai } from "@ai-sdk/openai"; import dotenv from "dotenv...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/17108
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Tool call errors have a different trace than tool call errors","articleBody":"[Trace](https://telemetry-experience.sentry.io/insights/agents/?project=4509327135539280&span=307dc7742554cc3e&statsPeriod=14d&trace=cb6efd5bed13d6627313fcaa7bb8f1cb), [Issue](https://telemetry-experience.sentry.io/issues/41864505/events/9ad903a38c6445459cdd13380bc3abaa/)\u003cbr>\u003cbr>Repro:\n\n```\nimport \"./instrument\";\nimport { generateText, streamText, tool } from \"ai\";\nimport { openai } from \"@ai-sdk/openai\";\nimport dotenv from \"dotenv\";\nimport { z } from \"zod\";\nimport * as Sentry from \"@sentry/node\";\n\ndotenv.config();\n\nasync function main() {\n const result = await generateText({\n model: openai(\"o1\", { structuredOutputs: true }),\n experimental_telemetry: {\n functionId: \"Simple Agent\",\n recordInputs: true,\n recordOutputs: true,\n isEnabled: true,\n },\n tools: {\n calculateTool: tool({\n description: `Calculate the result of a math problem. Returns a number.`,\n\n parameters: z.object({\n a: z.number().describe(\"First number\"),\n b: z.number().describe(\"Second number\"),\n }),\n type: \"function\",\n execute: async ({ a, b }) => {\n throw new Error(\"Not implemented\");\n return a + b;\n },\n }),\n },\n maxSteps: 2,\n system: `You helps users with their math problems.`,\n prompt: \"What is 1 + 1?\",\n });\n console.log(\"result\", result.text);\n}\n\nmain();\n```","author":{"url":"https://github.com/AbhiPrasad","@type":"Person","name":"AbhiPrasad"},"datePublished":"2025-07-21T11:13:51Z","url":"https://github.com/getsentry/sentry-javascript/issues/17108"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5f9de69f-7f9c-e466-6b38-d52810a5d4a8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E2CA:E3E44:660D94:89121F:6B05EB2E |
| html-safe-nonce | db1fa08c955ff41369b047895a241fae5aea033f55aeb3d1f3a020f649561794 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMkNBOkUzRTQ0OjY2MEQ5NDo4OTEyMUY6NkIwNUVCMkUiLCJ2aXNpdG9yX2lkIjoiNDMyNjQ1MDE3Njg3NDM3NTk4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ff364144a0cfe3fbc8fc5dccc3b80ab24c939df1a8d37e39142c284750be70dd |
| hovercard-subject-tag | issue:3248218100 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/17108/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3898f594d46172534294729663666a1421eec5a5c2f2c159de5c9bd0e8f8f3fa/getsentry/sentry-javascript/issues/17108 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3898f594d46172534294729663666a1421eec5a5c2f2c159de5c9bd0e8f8f3fa/getsentry/sentry-javascript/issues/17108 |
| og:image:alt | Trace, IssueRepro: import "./instrument"; import { generateText, streamText, tool } from "ai"; import { openai } from "@ai-sdk/openai"; import dotenv from "dotenv"; import { z } from "zod"; import ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AbhiPrasad |
| hostname | github.com |
| expected-hostname | github.com |
| None | c214754a6652274794ed4e054a7b71be999d69843f103ba54893001d45010ece |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7d164a4e71eb333b2b17fd5b17e18efb7855505c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width