Skip to content

Commit c513a29

Browse files
committed
trim url to the first 200 characters
1 parent fb850b3 commit c513a29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/tracing/src/browser/metrics.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ export class MetricsInstrumentation {
185185
}
186186

187187
if (this._lcpEntry.url) {
188-
transaction.setTag('lcp.url', this._lcpEntry.url);
188+
// Trim URL to the first 200 characters.
189+
transaction.setTag('lcp.url', this._lcpEntry.url.trim().slice(0, 200));
189190
}
190191

191192
transaction.setTag('lcp.size', this._lcpEntry.size);

0 commit comments

Comments
 (0)