Skip to content

Commit eac4137

Browse files
committed
Cleaning up example content
1 parent 61004bb commit eac4137

File tree

1 file changed

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

1 file changed

+4
-12
lines changed

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

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,9 @@ Sentry.startSpan(
3232
'file.name': 'user-profile.jpg',
3333

3434
// Client processing metrics
35-
'client.chunk_size': 1048576, // 1MB chunks
36-
'client.chunks_total': 15,
3735
'client.compression_applied': true,
3836

3937
// Upload progress tracking
40-
'upload.chunks_sent': 15,
4138
'upload.retry_count': 0,
4239
'upload.total_time_ms': 3500
4340
}
@@ -58,8 +55,6 @@ Sentry.startSpan(
5855
attributes: {
5956
// Server processing steps
6057
'processing.steps_completed': ['virus_scan', 'resize', 'compress', 'metadata'],
61-
'processing.output_size_bytes': 524288, // 512KB
62-
'processing.compression_ratio': 0.033,
6358

6459
// Storage operations
6560
'storage.provider': 's3',
@@ -106,12 +101,9 @@ Sentry.startSpan(
106101

107102
// UI performance
108103
'ui.time_to_first_token_ms': 245,
109-
'ui.tokens_per_second': 15,
110-
'ui.total_render_time_ms': 3250,
104+
'ui.total_request_time_ms': 3250,
111105

112106
// Stream handling
113-
'stream.buffer_size': 10,
114-
'stream.chunks_received': 42,
115107
'stream.rendering_mode': 'markdown'
116108
}
117109
},
@@ -130,9 +122,9 @@ Sentry.startSpan(
130122
op: 'ai.server',
131123
attributes: {
132124
// Model configuration
133-
'llm.model': 'gpt-4',
134-
'llm.temperature': 0.7,
135-
'llm.max_tokens': 2000,
125+
'llm.model': 'claude-3-5-sonnet-20241022',
126+
'llm.temperature': 0.5,
127+
'llm.max_tokens': 4096,
136128

137129
// Token usage metrics
138130
'llm.prompt_tokens': 425,

0 commit comments

Comments
 (0)