Skip to content

Commit d1f10a1

Browse files
committed
Language fixes to tracing details
1 parent 1e40d28 commit d1f10a1

File tree

1 file changed

+4
-9
lines changed
  • docs/platforms/javascript/common/tracing/span-metrics

1 file changed

+4
-9
lines changed

docs/platforms/javascript/common/tracing/span-metrics/index.mdx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,10 @@ When adding metrics as span attributes:
4242
- Use consistent naming conventions (e.g., `category.metric_name`)
4343
- Keep attribute names concise but descriptive
4444
- Use appropriate data types (string, number, boolean, or arrays of these types)
45-
- Consider the cardinality of your metrics to avoid excessive unique combinations
4645

4746
## Creating Dedicated Metric Spans
4847

49-
For more detailed transaction tracking, you can create custom dedicated spans that focus on specific metrics or attributes that you want to track. This approach provides better discoverability and more precise span configurations, however it can also appear to create more noise in your transaction traces.
48+
For more detailed operations, task, or process tracking, you can create custom dedicated spans that focus on specific metrics or attributes that you want to track. This approach provides better discoverability and more precise span configurations, however it can also appear to create more noise in your trace waterfall.
5049

5150
```javascript
5251
Sentry.startSpan(
@@ -172,21 +171,17 @@ Sentry.startSpan(
172171
name: 'File Upload and Processing',
173172
op: 'file.process',
174173
attributes: {
175-
'file.size_bytes': 15728640, // 15MB
176174
'file.type': 'image/jpeg',
177175
'file.name': 'user-profile.jpg',
178176
'processing.steps_completed': ['resize', 'compress', 'metadata'],
179-
'processing.output_size_bytes': 524288, // 512KB
180177
'processing.compression_ratio': 0.033,
181-
'upload.chunk_size': 1048576, // 1MB
182178
'upload.chunks_completed': 15,
183179
'upload.storage_provider': 's3',
184-
'upload.cdn_propagation_ms': 1500,
185180
'error.count': 0
186181
}
187182
},
188183
async () => {
189-
// File processing and upload execution
184+
// Existing file processing and upload functionality
190185
}
191186
);
192187
```
@@ -206,7 +201,7 @@ Sentry.startSpan(
206201
}
207202
},
208203
async () => {
209-
// API call execution
204+
// Existing API call functionality
210205
}
211206
);
212207
```
@@ -258,7 +253,7 @@ Sentry.startSpan(
258253
}
259254
},
260255
async () => {
261-
// Checkout process execution
256+
// Existing checkout process functionality
262257
}
263258
);
264259
```

0 commit comments

Comments
 (0)