8000 fix: Remove incorrect usage from flask helper example (#1434) · leeworker/sentry-python@e08e3f5 · GitHub
[go: up one dir, main page]

Skip to content

Commit e08e3f5

Browse files
authored
fix: Remove incorrect usage from flask helper example (getsentry#1434)
1 parent adbe26f commit e08e3f5

File tree

1 file changed

+22
-26
lines changed

1 file changed

+22
-26
lines changed

examples/tracing/templates/index.html

Lines changed: 22 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,47 @@
1-
<meta name="sentry-trace" content="{{ sentry_trace }}" />
2-
<script src="https://browser.sentry-cdn.com/6.17.7/bundle.js" crossorigin="anonymous"></script>
31
{{ sentry_trace }}
2+
<script
3+
src="https://browser.sentry-cdn.com/6.17.7/bundle.js"
4+
crossorigin="anonymous"
5+
></script>
46
<!-- TODO: Replace with real tracing integration once it's fixed -->
57
<script src="/static/tracing.js" crossorigin="anonymous"></script>
68

79
<script>
8-
9-
10-
11-
Sentry.init({
10+
Sentry.init({
1211
dsn: "{{ sentry_dsn }}",
13-
integrations: [
14-
new Sentry.Integrations.Tracing({ tracingOrigins: ['']})
15-
],
16-
debug: true
17-
});
12+
integrations: [new Sentry.Integrations.Tracing({tracingOrigins: [""]})],
13+
debug: true,
14+
});
1815

19-
async function compute() {
16+
async function compute() {
2017
const res = await fetch(
21-
"/compute/" +
22-
document.getElementsByName('b64str')[0].value
18+
"/compute/" + document. 8000 getElementsByName("b64str")[0].value,
2319
);
2420

2521
const token = await res.text();
2622
wait(token);
2723

2824
return false;
29-
}
25+
}
3026

31-
async function wait(token) {
27+
async function wait(token) {
3228
const res = await fetch("/wait/" + token);
3329
const line = await res.text();
34-
document.getElementById('output').innerHTML += line;
35-
document.getElementById('output').innerHTML += '<br>';
30+
document.getElementById("output").innerHTML += line;
31+
document.getElementById("output").innerHTML += "<br>";
3632

37-
if(line == "NONE") {
38-
window.setTimeout(function() { wait(token) }, 500);
33+
if (line == "NONE") {
34+
window.setTimeout(function () {
35+
wait(token);
36+
}, 500);
3937
}
40-
}
41-
38+
}
4239
</script>
4340

44-
4541
<p>Decode your base64 string as a service (that calls another service)</p>
4642

47-
<input value='aGVsbG8gd29ybGQK' name=b64str> A base64 string<br>
48-
<input type=button value=submit onclick="compute()">
43+
<input value="aGVsbG8gd29ybGQK" name="b64str" /> A base64 string<br />
44+
<input type="button" value="submit" onclick="compute()" />
4945

5046
<p>Output:</p>
51-
<pre id=output />
47+
<pre id="output" />

0 commit comments

Comments
 (0)
0