8000 fix: Remove incorrect usage from flask helper example by BYK · Pull Request #1434 · getsentry/sentry-python · GitHub
[go: up one dir, main page]

Skip to content

fix: Remove incorrect usage from flask helper example #1434

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
48 changes: 22 additions & 26 deletions examples/tracing/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,51 +1,47 @@
<meta name="sentry-trace" content="{{ sentry_trace }}" />
<script src="https://browser.sentry-cdn.com/6.17.7/bundle.js" crossorigin="anonymous"></script>
{{ sentry_trace }}
<script
src="https://browser.sentry-cdn.com/6.17.7/bundle.js"
crossorigin="anonymous"
></script>
<!-- TODO: Replace with real tracing integration once it's fixed -->
<script src="/static/tracing.js" crossorigin="anonymous"></script>

<script>

8000

Sentry.init({
Sentry.init({
dsn: "{{ sentry_dsn }}",
integrations: [
new Sentry.Integrations.Tracing({ tracingOrigins: ['']})
],
debug: true
});
integrations: [new Sentry.Integrations.Tracing({tracingOrigins: [""]})],
debug: true,
});

async function compute() {
async function compute() {
const res = await fetch(
"/compute/" +
document.getElementsByName('b64str')[0].value
"/compute/" + document.getElementsByName("b64str")[0].value,
);

const token = await res.text();
wait(token);

return false;
}
}

async function wait(token) {
async function wait(token) {
const res = await fetch("/wait/" + token);
const line = await res.text();
document.getElementById('output').innerHTML += line;
document.getElementById('output').innerHTML += '<br>';
document.getElementById("output").innerHTML += line;
document.getElementById("output").innerHTML += "<br>";

if(line == "NONE") {
window.setTimeout(function() { wait(token) }, 500);
if (line == "NONE") {
window.setTimeout(function () {
wait(token);
}, 500);
}
}

}
</script>


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

<input value='aGVsbG8gd29ybGQK' name=b64str> A base64 string<br>
<input type=button value=submit onclick="compute()">
<input value="aGVsbG8gd29ybGQK" name="b64str" /> A base64 string<br />
<input type="button" value="submit" onclick="compute()" />

<p>Output:</p>
<pre id=output />
<pre id="output" />
0