Repository navigation
Commit b6cd79a
fix(tanstackstart-react): Set
The span starts with a `serverFn` placeholder because the function's name
is not known until the global function middleware runs. That middleware
only replaced the placeholder under span streaming, so static-lifecycle
spans kept `serverFn` even though the real name was available.
Resolve the attribute in both lifecycles and gate only `sentry.description`,
which exists solely to carry the request path past Relay's streaming
description template. This matches the ember and sveltekit `function` spans,
which both set `code.function.name` unconditionally.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>code.function.name in both trace lifecycles1 parent 9c0d10e commit b6cd79a
2 files changed
Lines changed: 9 additions & 11 deletions
File tree
- packages/tanstackstart-react
- src/server
- test/server
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 62 | + | |
65 | 63 | | |
66 | 64 | | |
67 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
| 82 | + | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 105 | + | |
| 106 | + | |
109 | 107 | | |
110 | 108 | | |
111 | 109 | | |
| |||
116 | 114 | | |
117 | 115 | | |
118 | 116 | | |
119 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
0 commit comments