@@ -145,7 +145,7 @@ function createTransactionForOtelSpan(span: ReadableSpan): Transaction {
145
145
146
146
const parentSampled = span . attributes [ InternalSentrySemanticAttributes . PARENT_SAMPLED ] as boolean | undefined ;
147
147
148
- const { op, description, tags , data, origin, source } = getSpanData ( span ) ;
148
+ const { op, description, data, origin, source } = getSpanData ( span ) ;
149
149
const metadata = getSpanMetadata ( span ) ;
150
150
const capturedSpanScopes = getSpanScopes ( span ) ;
151
151
@@ -167,7 +167,6 @@ function createTransactionForOtelSpan(span: ReadableSpan): Transaction {
167
167
} ,
168
168
data : removeSentryAttributes ( data ) ,
169
169
origin,
170
- tags,
171
170
sampled : true ,
172
171
} ) ;
173
172
@@ -203,7 +202,7 @@ function createAndFinishSpanForOtelSpan(node: SpanNode, sentryParentSpan: Sentry
203
202
const spanId = span . spanContext ( ) . spanId ;
204
203
const { attributes } = span ;
205
204
206
- const { op, description, tags , data, origin } = getSpanData ( span ) ;
205
+ const { op, description, data, origin } = getSpanData ( span ) ;
207
206
const allData = { ...removeSentryAttributes ( attributes ) , ...data } ;
208
207
209
208
// eslint-disable-next-line deprecation/deprecation
@@ -215,7 +214,6 @@ function createAndFinishSpanForOtelSpan(node: SpanNode, sentryParentSpan: Sentry
215
214
startTimestamp : convertOtelTimeToSeconds ( span . startTime ) ,
216
215
spanId,
217
216
origin,
218
- tags,
219
217
} ) ;
220
218
221
219
node . children . forEach ( child => {
@@ -226,7 +224,6 @@ function createAndFinishSpanForOtelSpan(node: SpanNode, sentryParentSpan: Sentry
226
224
}
227
225
228
226
function getSpanData ( span : ReadableSpan ) : {
229
- tags : Record < string , string > ;
230
227
data : Record < string , unknown > ;
231
228
op ?: string ;
232
229
description : string ;
@@ -239,15 +236,14 @@ function getSpanData(span: ReadableSpan): {
239
236
const op = definedOp || inferredOp ;
240
237
const source = definedSource || inferredSource ;
241
238
242
- const tags = getTags ( span ) ;
243
239
const data = { ...inferredData , ...getData ( span ) } ;
244
240
245
241
return {
246
242
op,
247
243
description,
248
244
source,
249
245
origin,
250
- tags ,
246
+
251
247
data,
252
248
} ;
253
249
}
@@ -270,18 +266,6 @@ function removeSentryAttributes(data: Record<string, unknown>): Record<string, u
270
266
return cleanedData ;
271
267
}
272
268
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
-
285
269
function getData ( span : ReadableSpan ) : Record < string , unknown > {
286
270
const attributes = span . attributes ;
287
271
const data : Record < string , unknown > = {
0 commit comments