Skip to content

Commit 8c70960

Browse files
authored
Refactor arcade embeds (#11722)
* remove irrelevant title attributes from arcade embeds * add Arcade embeds component * add docs * make link absolute to pass 404 linter
1 parent 35f8a2f commit 8c70960

File tree

28 files changed

+86
-607
lines changed

28 files changed

+86
-607
lines changed

docs/concepts/data-management/event-grouping/index.mdx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -80,19 +80,7 @@ Stack trace rules can work as a combination of both SDK and project settings. As
8080

8181
You can see a fingerprint by opening an issue, clicking "{} View JSON", and finding the _fingerprint_ property in that file. If the default grouping was used, you'll see "default" written there. If a different grouping was used, you'll see the actual fingerprint value itself.
8282

83-
<div style={{"height":"0px","paddingBottom":"calc(56.88524590163935% + 41px)","position":"relative","width":"100%"}}>
84-
<iframe
85-
src="https://demo.arcade.software/8vE2p1OF0WRxjg7XN8HH?embed"
86-
frameborder="0"
87-
loading="lazy"
88-
webkitallowfullscreen
89-
mozallowfullscreen
90-
allowfullscreen
91-
allow="fullscreen;"
92-
style={{"colorScheme":"light","height":"100%","left":"0px","position":"absolute","top":"0px","width":"100%"}}
93-
title="View Issue Fingerprint"
94-
></iframe>
95-
</div>
83+
<Arcade src="https://demo.arcade.software/8vE2p1OF0WRxjg7XN8HH?embed" />
9684

9785
## Transaction Grouping Algorithms
9886

docs/concepts/key-terms/environments/index.mdx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,4 @@ If a project is hidden, you won't see that environment in the environment select
4040

4141
Follow along with the interactive demo below to see how to hide and unhide environments.
4242

43-
<div style={{"height":"0px","paddingBottom":"calc(66.5403% + 41px)","position":"relative","width":"100%"}}>
44-
<iframe
45-
src="https://demo.arcade.software/GqXUGJBjoH5fOG5AMyLt?embed"
46-
frameborder="0"
47-
loading="lazy"
48-
webkitallowfullscreen
49-
mozallowfullscreen
50-
allowfullscreen
51-
allow="fullscreen;"
52-
style={{"colorScheme":"light","height":"100%","left":"0px","position":"absolute","top":"0px","width":"100%"}}
53-
title="Environments - Hide/show"
54-
></iframe>
55-
</div>
43+
<Arcade src="https://demo.arcade.software/GqXUGJBjoH5fOG5AMyLt?embed" />

docs/concepts/key-terms/tracing/trace-view.mdx

Lines changed: 2 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ By default, the waterfall view shows a list of transactions. If you need more gr
3030
>
3131
<iframe
3232
src="https://demo.arcade.software/25H9paIDvBOQp5T3pFeW?embed&show_copy_link=true"
33-
title="Trace View — Performance — sentry — Sentry"
3433
frameborder="0"
3534
loading="lazy"
3635
webkitallowfullscreen
@@ -45,7 +44,6 @@ By default, the waterfall view shows a list of transactions. If you need more gr
4544
top: "0px",
4645
width: "100%",
4746
}}
48-
title="Trace View -> Error"
4947
></iframe>
5048
</div>
5149

@@ -59,68 +57,14 @@ Whatever you highlight will also be saved if you navigate away from the page and
5957
If you're doing a comparison and want an easy way to go back and forth between highlighted areas of interest in your trace, you can pin the tabs. When a tab is pinned, the view will be persistent throughout your session.
6058

6159
<br />
62-
<div
63-
style={{
64-
height: "0px",
65-
paddingBottom: "calc(66.66% + 41px)",
66-
position: "relative",
67-
width: "100%",
68-
}}
69-
>
70-
<iframe
71-
src="https://demo.arcade.software/yP3PFytK0ckfetjJTe52?embed&show_copy_link=true"
72-
title="Sentry"
73-
frameborder="0"
74-
loading="lazy"
75-
webkitallowfullscreen
76-
mozallowfullscreen
77-
allowfullscreen
78-
allow="clipboard-write; fullscreen;"
79-
style={{
80-
colorScheme: "light",
81-
height: "100%",
82-
left: "0px",
83-
position: "absolute",
84-
top: "0px",
85-
width: "100%",
86-
}}
87-
title="Trace View - Tabbing"
88-
></iframe>
89-
</div>
60+
<Arcade src="https://demo.arcade.software/yP3PFytK0ckfetjJTe52?embed&show_copy_link=true" />
9061
<br />
9162
Sometimes, duration gaps between entries can be small, but critical to your debugging
9263
effort. That's why the Trace View enables you to zoom into certain areas of the trace,
9364
either by double clicking on row elements (which zooms into the row) or by using
9465
your scroll wheel.
9566
<br />
96-
<div
97-
style={{
98-
height: "0px",
99-
paddingBottom: "calc(66.66% + 41px)",
100-
position: "relative",
101-
width: "100%",
102-
}}
103-
>
104-
<iframe
105-
src="https://demo.arcade.software/U8JbMjFJR1KRiP4G4j4E?embed&show_copy_link=true"
106-
title="Trace View — Performance — sentry — Sentry"
107-
frameborder="0"
108-
loading="lazy"
109-
webkitallowfullscreen
110-
mozallowfullscreen
111-
allowfullscreen
112-
allow="clipboard-write; fullscreen;"
113-
style={{
114-
colorScheme: "light",
115-
height: "100%",
116-
left: "0px",
117-
position: "absolute",
118-
top: "0px",
119-
width: "100%",
120-
}}
121-
title="Trace View - Zooming"
122-
></iframe>
123-
</div>
67+
<Arcade src="https://demo.arcade.software/U8JbMjFJR1KRiP4G4j4E?embed&show_copy_link=true" />
12468
<br />
12569
The Trace View has other features like search, which makes it easy to visualize matching
12670
spans that you can then iterate over using the up or down arrows. You can also tailor

docs/contributing/pages/components.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,18 @@ An Alert component with no level setting will render as a Note component.
3838

3939
See also the [Note component](#note).
4040

41+
## Arcade embeds
42+
43+
Render an [Arcade](https://arcade.software) embed.
44+
<Arcade src="https://demo.arcade.software/v7uhzmdV6Q5PDzoVPAE6?embed&show_copy_link=true" />
45+
```markdown {tabTitle:Example}
46+
<Arcade src="https://demo.arcade.software/v7uhzmdV6Q5PDzoVPAE6?embed&show_copy_link=true" />
47+
```
48+
49+
Attributes:
50+
51+
- `src` (string) - the URL of the Arcade embed
52+
4153
## Expandable
4254

4355
Render an expandable section.

docs/organization/integrations/integration-platform/index.mdx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,7 @@ The Sentry integration platform provides the ability to add rich UI components t
3737
You can make any integration available as an action in [issue alerts](/organization/integrations/integration-platform/webhooks/issue-alerts) and [metric alerts](/organization/integrations/integration-platform/webhooks/metric-alerts) by enabling the "Alert Rule Action" toggle. The integration will then show
3838
up as a service in the action section when creating or updating an alert rule. The interactive demo below shows how to set up an integration that can receive Sentry alerts.
3939

40-
<div style={{"height":"0px","paddingBottom":"calc(56.88524590163935% + 41px)","position":"relative","width":"100%"}}>
41-
<iframe
42-
src="https://demo.arcade.software/v7uhzmdV6Q5PDzoVPAE6?embed&show_copy_link=true"
43-
frameborder="0"
44-
loading="lazy"
45-
webkitallowfullscreen
46-
mozallowfullscreen
47-
allowfullscreen
48-
allow="fullscreen;"
49-
style={{"colorScheme":"light","height":"100%","left":"0px","position":"absolute","top":"0px","width":"100%"}}
50-
title="Create Internal Integration &amp; Alert Rule"
51-
></iframe>
52-
</div>
40+
<Arcade src="https://demo.arcade.software/v7uhzmdV6Q5PDzoVPAE6?embed&show_copy_link=true" />
5341

5442
For your service to receive webhooks for alert rules, you must have `Send a notification via <your integration>` as an action in the rule. Once that's set up, you'll start receiving webhook requests for triggered alerts. For more information about the request and payload, check out the [full Webhooks documentation](/organization/integrations/integration-platform/webhooks/). If you'd like users to provide more app-specific information to handle these webhooks (e.g. assignees, teams, notification channels), consider implementing the [alert rule action UI component](/organization/integrations/integration-platform/ui-components/alert-rule-action).
5543

docs/organization/integrations/integration-platform/webhooks/issue-alerts.mdx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,7 @@ Sentry integrations which have been made available as [alert rule actions](/orga
88

99
The interactive demo below shows how to set up an internal integration that can receive issue alerts.
1010

11-
<div style={{"height":"0px","paddingBottom":"calc(56.88524590163935% + 41px)","position":"relative","width":"100%"}}>
12-
<iframe
13-
src="https://demo.arcade.software/v7uhzmdV6Q5PDzoVPAE6?embed&show_copy_link=true"
14-
frameborder="0"
15-
loading="lazy"
16-
webkitallowfullscreen
17-
mozallowfullscreen
18-
allowfullscreen
19-
allow="fullscreen;"
20-
style={{"colorScheme":"light","height":"100%","left":"0px","position":"absolute","top":"0px","width":"100%"}}
21-
title="Create Internal Integration &amp; Alert Rule"
22-
></iframe>
23-
</div>
11+
<Arcade src="https://demo.arcade.software/v7uhzmdV6Q5PDzoVPAE6?embed&show_copy_link=true" />
2412

2513
## Sentry-Hook-Resource Header
2614

docs/organization/integrations/integration-platform/webhooks/metric-alerts.mdx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,7 @@ Sentry integrations which have been made available as [alert rule actions](/orga
88

99
The interactive demo below shows how to set up an internal integration that can receive Sentry alerts.
1010

11-
<div style={{"height":"0px","paddingBottom":"calc(56.88524590163935% + 41px)","position":"relative","width":"100%"}}>
12-
<iframe
13-
src="https://demo.arcade.software/v7uhzmdV6Q5PDzoVPAE6?embed&show_copy_link=true"
14-
frameborder="0"
15-
loading="lazy"
16-
webkitallowfullscreen
17-
mozallowfullscreen
18-
allowfullscreen
19-
allow="fullscreen;"
20-
style={{"colorScheme":"light","height":"100%","left":"0px","position":"absolute","top":"0px","width":"100%"}}
21-
title="Create Internal Integration &amp; Alert Rule"
22-
></iframe>
23-
</div>
11+
<Arcade src="https://demo.arcade.software/v7uhzmdV6Q5PDzoVPAE6?embed&show_copy_link=true" />
2412

2513
## Sentry-Hook-Resource Header
2614

docs/product/alerts/create-alerts/routing-alerts.mdx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,7 @@ When you create a new integration and enable the "Alert Rule Action" option on i
4848

4949
The interactive demo below shows how to set up an integration that can receive Sentry alerts.
5050

51-
<div style={{"height":"0px","paddingBottom":"calc(56.88524590163935% + 41px)","position":"relative","width":"100%"}}>
52-
<iframe
53-
src="https://demo.arcade.software/v7uhzmdV6Q5PDzoVPAE6?embed&show_copy_link=true"
54-
frameborder="0"
55-
loading="lazy"
56-
webkitallowfullscreen
57-
mozallowfullscreen
58-
allowfullscreen
59-
allow="fullscreen;"
60-
style={{"colorScheme":"light","height":"100%","left":"0px","position":"absolute","top":"0px","width":"100%"}}
61-
title="Create Internal Integration &amp; Alert Rule"
62-
></iframe>
63-
</div>
51+
<Arcade src="https://demo.arcade.software/v7uhzmdV6Q5PDzoVPAE6?embed&show_copy_link=true" />
6452

6553
## Legacy Integrations
6654

docs/product/crons/job-monitoring.mdx

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -24,31 +24,7 @@ The "Issues" section shows the issues created from this Cron Monitor. Issues are
2424

2525
The table of recent check-ins lists previously scheduled jobs and their statuses.
2626

27-
<div style={{
28-
position: 'relative',
29-
paddingBottom: 'calc(57.073170731707314% + 41px)',
30-
height: 0,
31-
width: '100%'
32-
}}>
33-
<iframe
34-
src="https://demo.arcade.software/7XmPfL0l2pp6KmBUXwMc?embed"
35-
frameborder="0"
36-
loading="lazy"
37-
webkitallowfullscreen
38-
mozallowfullscreen
39-
allowfullscreen
40-
allow="fullscreen;"
41-
style={{
42-
position: 'absolute',
43-
top: 0,
44-
left: 0,
45-
width: '100%',
46-
height: '100%',
47-
colorScheme: 'light'
48-
}}
49-
title="Crons - Details page walkthrough"
50-
></iframe>
51-
</div>
27+
<Arcade src="https://demo.arcade.software/7XmPfL0l2pp6KmBUXwMc?embed" />
5228

5329
## Multiple Environments
5430

docs/product/explore/metrics/metrics-explorer-page.mdx

Lines changed: 5 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,7 @@ Once you've started sending metrics to Sentry, you can explore them in the produ
1010

1111
## Querying & Visualization
1212

13-
<div style={{"height":"0px","paddingBottom":"calc(56.8359% + 41px)","position":"relative","width":"100%"}}>
14-
<iframe
15-
src="https://demo.arcade.software/wazwqB6rvF5ZronReDLa?embed&show_copy_link=true"
16-
frameborder="0"
17-
loading="lazy"
18-
webkitallowfullscreen
19-
mozallowfullscreen
20-
allowfullscreen
21-
allow="fullscreen;"
22-
style={{"colorScheme":"light","height":"100%","left":"0px","position":"absolute","top":"0px","width":"100%"}}
23-
title="Sentry Metrics Explorer - Query &amp; Visualize"
24-
></iframe>
25-
</div>
13+
<Arcade src="https://demo.arcade.software/wazwqB6rvF5ZronReDLa?embed&show_copy_link=true" />
2614

2715
You can use the dropdowns at the top of the page as a query editor for your metrics. Select the metric you want to plot from a list of available metrics in your project, the aggregate operation you'd like to perform (such as avg, min, max, and so on), and, optionally, any tags you'd like to group by. In the image above the metric `gibpotato.potatoes.event_processing_time`, is queried and shown, grouped by `event_type`.
2816

@@ -38,19 +26,7 @@ If you'd like to zoom in and dig deeper into a particular area of your chart, dr
3826

3927
Sometimes observing one metric is enough to reach an insight. However, it's oftentimes necessary to look at multiple metrics simultaneously to find potential correlations.
4028

41-
<div style={{"height":"0px","paddingBottom":"calc(56.8359% + 41px)","position":"relative","width":"100%"}}>
42-
<iframe
43-
src="https://demo.arcade.software/LM8eNFS5x1y7YVC1Pe91?embed&show_copy_link=true"
44-
frameborder="0"
45-
loading="lazy"
46-
webkitallowfullscreen
47-
mozallowfullscreen
48-
allowfullscreen
49-
allow="fullscreen;"
50-
style={{"colorScheme":"light","height":"100%","left":"0px","position":"absolute","top":"0px","width":"100%"}}
51-
title="Sentry Metrics Explorer - Multiple Metrics"
52-
></iframe>
53-
</div>
29+
<Arcade src="https://demo.arcade.software/LM8eNFS5x1y7YVC1Pe91?embed&show_copy_link=true" />
5430

5531
In this case, you can create additional queries in order to compare and contrast different metrics. Click "Add Query" button to create a new query. Alternatively, you can also click "... > Duplicate" next to an existing query to create a duplicate of that query.
5632

@@ -66,19 +42,7 @@ While metrics are a great tool for analyzing your data in aggregate and identify
6642

6743
Below your metric charts, the "Span Samples" tab shows a list of exemplars associated with that metric. By clicking on a span, you can navigate to the full trace view.
6844

69-
<div style={{"height":"0px","paddingBottom":"calc(56.8359% + 41px)","position":"relative","width":"100%"}}>
70-
<iframe
71-
src="https://demo.arcade.software/aPBtSIQrhir2SLgTMcbZ?embed&show_copy_link=true"
72-
frameborder="0"
73-
loading="lazy"
74-
webkitallowfullscreen
75-
mozallowfullscreen
76-
allowfullscreen
77-
allow="fullscreen;"
78-
style={{"colorScheme":"light","height":"100%","left":"0px","position":"absolute","top":"0px","width":"100%"}}
79-
title="Sentry Metrics Explorer - Sample Transactions"
80-
></iframe>
81-
</div>
45+
<Arcade src="https://demo.arcade.software/aPBtSIQrhir2SLgTMcbZ?embed&show_copy_link=true" />
8246
Within the trace view, custom metrics associated with a span are also displayed in the span details.
8347

8448
![Trace View Metrics](./img/trace-view-metrics.png)
@@ -93,36 +57,12 @@ This feature is not currently available in all SDKs.
9357

9458
When it comes to custom metrics, you can use the code locations tab to see the line of code in your application where your metric is being emitted. This can come in handy when troubleshooting an issue, especially if you were not the one creating the metric in the first place.
9559

96-
<div style={{"height":"0px","paddingBottom":"calc(56.8359% + 41px)","position":"relative","width":"100%"}}>
97-
<iframe
98-
src="https://demo.arcade.software/LIthR3DDJaUXTLSNvD17?embed&show_copy_link=true"
99-
frameborder="0"
100-
loading="lazy"
101-
webkitallowfullscreen
102-
mozallowfullscreen
103-
allowfullscreen
104-
allow="fullscreen;"
105-
style={{"colorScheme":"light","height":"100%","left":"0px","position":"absolute","top":"0px","width":"100%"}}
106-
title="Sentry Metrics Explorer - Code Location"
107-
></iframe>
108-
</div>
60+
<Arcade src="https://demo.arcade.software/LIthR3DDJaUXTLSNvD17?embed&show_copy_link=true" />
10961

11062
## Create Alerts & Dashboards
11163

11264
In order to stay ahead of issues, you can also create metric-based alerts to get notified about unexpected changes or spikes. Click "... > Create Alert" next to your metric query to configure your custom metric alert.
11365

114-
<div style={{"height":"0px","paddingBottom":"calc(56.8359% + 41px)","position":"relative","width":"100%"}}>
115-
<iframe
116-
src="https://demo.arcade.software/7qnZaYnUMqEzJcR4Ro2D?embed&show_copy_link=true"
117-
frameborder="0"
118-
loading="lazy"
119-
webkitallowfullscreen
120-
mozallowfullscreen
121-
allowfullscreen
122-
allow="fullscreen;"
123-
style={{"colorScheme":"light","height":"100%","left":"0px","position":"absolute","top":"0px","width":"100%"}}
124-
title="Sentry Metrics Explorer - Create Alerts &amp; Dashboards"
125-
></iframe>
126-
</div>
66+
<Arcade src="https://demo.arcade.software/7qnZaYnUMqEzJcR4Ro2D?embed&show_copy_link=true" />
12767

12868
If you want to continuously monitor a particular metric, click "... > Add to Dashboard" to create a new Dashboard widget. You can configure your dashboard to display custom metrics that matter most to you. To learn more, see [Dashboards](/product/dashboards/).

docs/product/insights/assets.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ If you have performance monitoring enabled for your frontend, you can see how yo
1414

1515
Starting with the [**Assets** page](#assets-page), you get a high-level overview of how your assets are doing. From there, you can drill into a specific asset's [**Asset Summary** page](#asset-summary-page) and then investigate sample events from the [Sample List](#sample-list) to better understand the context of its performance in a specific page.
1616

17-
<div style={{position: 'relative', paddingBottom: 'calc(50.86013462976814% + 41px)', height: 0}}><iframe src="https://demo.arcade.software/c7lgN0cFkg0R2tb9t0jH?embed" frameborder="0" loading="lazy" webkitallowfullscreen mozallowfullscreen allowfullscreen allow="fullscreen;" style={{position: 'absolute', top: 0, left: 0, width: '100%', height: '100%', colorScheme: 'light'}}></iframe></div>
17+
<Arcade src="https://demo.arcade.software/c7lgN0cFkg0R2tb9t0jH?embed" />
1818

1919
## Prerequisites and Limitations
2020

docs/product/insights/caches/index.mdx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,7 @@ Sentry's cache monitoring provides insights into cache utilization and latency s
1414

1515
Starting with the [Cache page](https://sentry.io/orgredirect/organizations/:orgslug/insights/caches/), you get an overview of the transactions within your application that are making at least one lookup against a cache. From there, you can dig into specific cache span operations by clicking a transaction and viewing its sample list.
1616

17-
<div style={{"height":"0px","paddingBottom":"calc(56.8359% + 41px)","position":"relative","width":"100%"}}>
18-
<iframe
19-
src="https://demo.arcade.software/ZXXfmVEBIjlwk83pUSfs?embed&show_copy_link=true"
20-
frameborder="0"
21-
loading="lazy"
22-
webkitallowfullscreen
23-
mozallowfullscreen
24-
allowfullscreen
25-
allow="fullscreen;"
26-
style={{"colorScheme":"light","height":"100%","left":"0px","position":"absolute","top":"0px","width":"100%"}}
27-
title="Performance -> Caches Module Walkthrough"
28-
></iframe>
29-
</div>
17+
<Arcade src="https://demo.arcade.software/ZXXfmVEBIjlwk83pUSfs?embed&show_copy_link=true" />
3018

3119
## Instrumentation
3220

0 commit comments

Comments
 (0)