Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TJTS5901 K23 Template
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Startuplab
Courses
TJTS5901 Continuous Software Engineering
TJTS5901 K23 Template
Commits
c93863ff
Commit
c93863ff
authored
2 years ago
by
Teemu Autto
Browse files
Options
Downloads
Patches
Plain Diff
Javascript sentry for client side tracing.
parent
2fc8ea24
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/tjts5901/templates/base.html
+21
-0
21 additions, 0 deletions
src/tjts5901/templates/base.html
with
21 additions
and
0 deletions
src/tjts5901/templates/base.html
+
21
−
0
View file @
c93863ff
...
...
@@ -11,6 +11,27 @@
<link
rel=
"stylesheet"
href=
"{{ url_for('static', filename='windows-95-ui-kit/css/w95.css') }}"
>
<link
rel=
"stylesheet"
href=
"{{ url_for('static', filename='style.css') }}"
>
{# Sentry tracing for client side. See: https://docs.sentry.io/platforms/javascript/install/cdn/ #}
{% if config['SENTRY_DSN'] %}
{{sentry_trace}}
<script
src=
"https://browser.sentry-cdn.com/7.35.0/bundle.tracing.min.js"
integrity=
"sha384-CjDPchuHUNlGb4GlhyuebuZegU12keiasU1R69+B0VhN5ShdBb06nBWZRfGi73G1"
crossorigin=
"anonymous"
>
</script>
<script>
Sentry
.
onLoad
(
function
()
{
Sentry
.
init
({
dsn
:
{{
config
[
'
SENTRY_DSN
'
]
|
tojson
}},
release
:
{{
config
[
'
SENTRY_RELEASE
'
]
|
tojson
}},
environment
:
{{
config
[
'
SENTRY_ENVIRONMENT
'
]
|
tojson
}},
integrations
:
[
new
Sentry
.
BrowserTracing
()],
});
});
</script>
{% endif %}
</head>
<body
class=
"bg-secondary"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment