Skip to content

Commit 28a5886

Browse files
committed
update options grid
1 parent 09ab5fb commit 28a5886

File tree

2 files changed

+41
-16
lines changed

2 files changed

+41
-16
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import React from 'react'
2+
import {
3+
FiBarChart,
4+
FiShare2
5+
} from 'react-icons/fi'
6+
import IconCardGrid from '../Card/IconCardGrid';
7+
8+
interface IconCardData {
9+
name: string
10+
href: string
11+
icon: React.ReactNode
12+
clickName: string
13+
}
14+
15+
const integrationsData: IconCardData[] = [
16+
{
17+
name: 'Sending Web Vitals as Metrics',
18+
href: '/docs/frontend-monitoring/web-vitals-with-metrics',
19+
icon: <FiBarChart className="h-7 w-7 text-red-500" />,
20+
clickName: 'Sending Web Vitals as Metrics',
21+
},
22+
{
23+
name: 'Sending Web Vitals as Traces',
24+
href: '/docs/frontend-monitoring/web-vitals-with-traces',
25+
icon: <FiShare2 className="h-7 w-7 text-blue-600" />,
26+
clickName: 'Sending Web Vitals as Traces',
27+
},
28+
]
29+
30+
export default function Integrations() {
31+
return (
32+
<IconCardGrid
33+
title="Web Vitals"
34+
description="Send web vitals to SigNoz using OpenTelemetry"
35+
cards={integrationsData}
36+
sectionName="Web Vitals Section"
37+
/>
38+
)
39+
}

data/docs/frontend-monitoring/opentelemetry-web-vitals.mdx

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Web vitals are essential metrics to measure the user experience on your website.
1919

2020
Web vitals can be exported as either **metrics** or **traces** in OpenTelemetry, and the choice depends on your specific use case:
2121

22-
### Exporting as Histogram Metrics
22+
### Exporting as Metrics
2323
**Best for larger scale deployments where sampling might be required:**
2424
- Provides aggregated statistical data (percentiles, histograms)
2525
- More efficient for high-volume applications
@@ -38,18 +38,4 @@ Web vitals can be exported as either **metrics** or **traces** in OpenTelemetry,
3838

3939
Choose the approach that aligns with your monitoring goals and infrastructure requirements. For production environments with high traffic, histogram metrics are often the better choice, while traces provide more detailed insights for development and troubleshooting scenarios.
4040

41-
<DocCardContainer>
42-
43-
<DocCard
44-
title="📄️ Sending Web Vitals Metrics"
45-
description="Monitor your application's web vitals with metrics using SigNoz"
46-
href="/docs/frontend-monitoring/web-vitals-with-metrics"
47-
/>
48-
49-
<DocCard
50-
title="📄️ Sending Web Vitals Traces"
51-
description="Monitor your application's web vitals with traces using SigNoz"
52-
href="/docs/frontend-monitoring/web-vitals-with-traces"
53-
/>
54-
55-
</DocCardContainer>
41+
<WebVitalsGrid />

0 commit comments

Comments
 (0)