@@ -145,7 +145,7 @@ function createTransactionForOtelSpan(span: ReadableSpan): Transaction {
145145
146146 const parentSampled = span . attributes [ InternalSentrySemanticAttributes . PARENT_SAMPLED ] as boolean | undefined ;
147147
148- const { op, description, tags , data, origin, source } = getSpanData ( span ) ;
148+ const { op, description, data, origin, source } = getSpanData ( span ) ;
149149 const metadata = getSpanMetadata ( span ) ;
150150 const capturedSpanScopes = getSpanScopes ( span ) ;
151151
@@ -167,7 +167,6 @@ function createTransactionForOtelSpan(span: ReadableSpan): Transaction {
167167 } ,
168168 data : removeSentryAttributes ( data ) ,
169169 origin,
170- tags,
171170 sampled : true ,
172171 } ) ;
173172
@@ -203,7 +202,7 @@ function createAndFinishSpanForOtelSpan(node: SpanNode, sentryParentSpan: Sentry
203202 const spanId = span . spanContext ( ) . spanId ;
204203 const { attributes } = span ;
205204
206- const { op, description, tags , data, origin } = getSpanData ( span ) ;
205+ const { op, description, data, origin } = getSpanData ( span ) ;
207206 const allData = { ...removeSentryAttributes ( attributes ) , ...data } ;
208207
209208 // eslint-disable-next-line deprecation/deprecation
@@ -215,7 +214,6 @@ function createAndFinishSpanForOtelSpan(node: SpanNode, sentryParentSpan: Sentry
215214 startTimestamp : convertOtelTimeToSeconds ( span . startTime ) ,
216215 spanId,
217216 origin,
218- tags,
219217 } ) ;
220218
221219 node . children . forEach ( child => {
@@ -226,7 +224,6 @@ function createAndFinishSpanForOtelSpan(node: SpanNode, sentryParentSpan: Sentry
226224}
227225
228226function getSpanData ( span : ReadableSpan ) : {
229- tags : Record < string , string > ;
230227 data : Record < string , unknown > ;
231228 op ?: string ;
232229 description : string ;
@@ -239,15 +236,14 @@ function getSpanData(span: ReadableSpan): {
239236 const op = definedOp || inferredOp ;
240237 const source = definedSource || inferredSource ;
241238
242- const tags = getTags ( span ) ;
243239 const data = { ...inferredData , ...getData ( span ) } ;
244240
245241 return {
246242 op,
247243 description,
248244 source,
249245 origin,
250- tags ,
246+
251247 data,
252248 } ;
253249}
@@ -270,18 +266,6 @@ function removeSentryAttributes(data: Record<string, unknown>): Record<string, u
270266 return cleanedData ;
271267}
272268
273- function getTags ( span : ReadableSpan ) : Record < string , string > {
274- const attributes = span . attributes ;
275- const tags : Record < string , string > = { } ;
276-
277- if ( attributes [ SemanticAttributes . HTTP_STATUS_CODE ] ) {
278- const statusCode = attributes [ SemanticAttributes . HTTP_STATUS_CODE ] as string | number ;
279- tags [ 'http.status_code' ] = `${ statusCode } ` ;
280- }
281-
282- return tags ;
283- }
284-
285269function getData ( span : ReadableSpan ) : Record < string , unknown > {
286270 const attributes = span . attributes ;
287271 const data : Record < string , unknown > = {
0 commit comments