Unverified Commit 193c88f3 authored by vercel-fleet-prod[bot]'s avatar vercel-fleet-prod[bot] Committed by GitHub

Remove obsolete request source span attribute fallback

Co-authored-by: 's avatarWill Binns-Smith <755844+wbinnssmith@users.noreply.github.com>
parent 4b396e2f
......@@ -57,7 +57,6 @@ const SAFE_SPAN_ATTRIBUTE_KEYS = new Set([
'next.fetch.idx',
'next.route',
'next.request_insights.omitted_spans',
'next.request_source',
'next.rsc',
'next.segment',
'next.span_category',
......@@ -474,13 +473,6 @@ function getSourceFromSpan(
}
const spanType = getStringAttribute(span.attributes?.['next.span_type'])
const markedSource = getStringAttribute(
span.attributes?.['next.request_source']
)
if (markedSource === 'image' || markedSource === 'asset') {
return markedSource
}
if (spanType === 'AppRouteRouteHandlers.runHandler') {
return 'app-route'
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment