File tree 2 files changed +2
-5
lines changed
2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -241,10 +241,7 @@ export interface Span {
241
241
* the final name of the span. Instrumentation might still overwrite the name with an automatically
242
242
* computed name, for example in `http.server` or `db` spans.
243
243
*
244
- * You can ensure that your name is kept and not overwritten by
245
- * - either calling `Sentry.updateSpanName(span, name)`
246
- * - or by calling `span.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, 'custom')`
247
- * in addition to `span.updateName`.
244
+ * You can ensure that your name is kept and not overwritten by calling `Sentry.updateSpanName(span, name)`
248
245
*
249
246
* If you want to update a span name in a browser-only app, `span.updateName` and `Sentry.updateSpanName`
250
247
* are identical: In both cases, the name will not be overwritten by the Sentry SDK.
Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ export function getSanitizedUrl(
268
268
* Because Otel decided to mutate span names via `span.updateName`, the only way to ensure
269
269
* that a user-set span name is preserved is to store it as a tmp attribute on the span.
270
270
* We delete this attribute once we're done with it when preparing the event envelope.
271
- * @internal
271
+ * @internal exported only for testing
272
272
*/
273
273
export function getOriginalName ( name : string , attributes : Attributes ) : string {
274
274
return attributes [ SEMANTIC_ATTRIBUTE_SENTRY_SOURCE ] === 'custom' &&
You can’t perform that action at this time.
0 commit comments