tangled
alpha
login
or
join now
eldridge.cam
/
cartography
0
fork
atom
Trading card city builder game?
0
fork
atom
overview
issues
pulls
pipelines
trying out adding glitchtip (sentry)
eldridge.cam
1 month ago
ebac5654
f1f81754
0/0
Waiting for spindle ...
+131
-1
5 changed files
expand all
collapse all
unified
split
.env.example
docker-compose.yml
package-lock.json
package.json
src
routes
+layout.svelte
+4
.env.example
···
4
4
5
5
WEBSOCKET_PROTOCOLS="json"
6
6
7
7
+
PUBLIC_ENV=localhost
8
8
+
7
9
PUBLIC_SERVER_URL=http://localhost:8000
8
10
PUBLIC_SERVER_WS_URL=ws://localhost:8000
11
11
+
12
12
+
PUBLIC_SENTRY_DSN=
+39
-1
docker-compose.yml
···
4
4
ports:
5
5
- "5432:5432"
6
6
environment:
7
7
-
- POSTGRES_PASSWORD=postgres
7
7
+
POSTGRES_PASSWORD: "postgres"
8
8
healthcheck:
9
9
test: ["CMD-SHELL", "pg_isready -U postgres"]
10
10
interval: 2s
···
12
12
retries: 5
13
13
volumes:
14
14
- ./generated:/generated
15
15
+
glitchtip-postgres:
16
16
+
image: postgres:18
17
17
+
container_name: glitchtip-postgres
18
18
+
environment:
19
19
+
POSTGRES_PASSWORD: "postgres"
20
20
+
volumes:
21
21
+
- glitchtip-postgres:/var/lib/postgresql
22
22
+
networks:
23
23
+
- glitchtip
24
24
+
glitchtip:
25
25
+
image: glitchtip/glitchtip
26
26
+
container_name: glitchtip
27
27
+
depends_on:
28
28
+
- postgres
29
29
+
ports:
30
30
+
- "8000:8000"
31
31
+
environment:
32
32
+
DATABASE_URL: postgres://postgres:postgres@glitchtip-postgres:5432/postgres
33
33
+
VALKEY_URL: "" # Set to enable Valkey. Ex: redis://valkey:6379
34
34
+
SECRET_KEY: d453bcfd7e5a00e45503f2566b11f1818a8508f667836673785731ff6965b181
35
35
+
PORT: 8000
36
36
+
EMAIL_URL: consolemail:// # Example smtp://email:password@smtp_url:port https://glitchtip.com/documentation/install#configuration
37
37
+
GLITCHTIP_DOMAIN: http://localhost:8000 # Change this to your domain
38
38
+
DEFAULT_FROM_EMAIL: cam@eldridge.cam # Change this to your email
39
39
+
CELERY_WORKER_AUTOSCALE: "1,2" # Scale between 1 and 2 to prevent excessive memory usage. Change it or remove to set it to the number of cpu cores.
40
40
+
command: ./bin/run-all-in-one.sh
41
41
+
volumes:
42
42
+
- glitchtip:/code/uploads
43
43
+
networks:
44
44
+
- glitchtip
45
45
+
46
46
+
volumes:
47
47
+
glitchtip-postgres:
48
48
+
glitchtip:
49
49
+
50
50
+
networks:
51
51
+
glitchtip:
52
52
+
driver: bridge
+76
package-lock.json
···
8
8
"name": "cartography",
9
9
"version": "0.1.0",
10
10
"dependencies": {
11
11
+
"@sentry/browser": "^10.38.0",
11
12
"cartography-api": "file:./api",
12
13
"core-js": "^3.38.1",
13
14
"json-patch": "^0.7.0",
···
1078
1079
"os": [
1079
1080
"win32"
1080
1081
]
1082
1082
+
},
1083
1083
+
"node_modules/@sentry-internal/browser-utils": {
1084
1084
+
"version": "10.38.0",
1085
1085
+
"resolved": "https://registry.npmjs.org/@sentry-internal/browser-utils/-/browser-utils-10.38.0.tgz",
1086
1086
+
"integrity": "sha512-UOJtYmdcxHCcV0NPfXFff/a95iXl/E0EhuQ1y0uE0BuZDMupWSF5t2BgC4HaE5Aw3RTjDF3XkSHWoIF6ohy7eA==",
1087
1087
+
"license": "MIT",
1088
1088
+
"dependencies": {
1089
1089
+
"@sentry/core": "10.38.0"
1090
1090
+
},
1091
1091
+
"engines": {
1092
1092
+
"node": ">=18"
1093
1093
+
}
1094
1094
+
},
1095
1095
+
"node_modules/@sentry-internal/feedback": {
1096
1096
+
"version": "10.38.0",
1097
1097
+
"resolved": "https://registry.npmjs.org/@sentry-internal/feedback/-/feedback-10.38.0.tgz",
1098
1098
+
"integrity": "sha512-JXneg9zRftyfy1Fyfc39bBlF/Qd8g4UDublFFkVvdc1S6JQPlK+P6q22DKz3Pc8w3ySby+xlIq/eTu9Pzqi4KA==",
1099
1099
+
"license": "MIT",
1100
1100
+
"dependencies": {
1101
1101
+
"@sentry/core": "10.38.0"
1102
1102
+
},
1103
1103
+
"engines": {
1104
1104
+
"node": ">=18"
1105
1105
+
}
1106
1106
+
},
1107
1107
+
"node_modules/@sentry-internal/replay": {
1108
1108
+
"version": "10.38.0",
1109
1109
+
"resolved": "https://registry.npmjs.org/@sentry-internal/replay/-/replay-10.38.0.tgz",
1110
1110
+
"integrity": "sha512-YWIkL6/dnaiQyFiZXJ/nN+NXGv/15z45ia86bE/TMq01CubX/DUOilgsFz0pk2v/pg3tp/U2MskLO9Hz0cnqeg==",
1111
1111
+
"license": "MIT",
1112
1112
+
"dependencies": {
1113
1113
+
"@sentry-internal/browser-utils": "10.38.0",
1114
1114
+
"@sentry/core": "10.38.0"
1115
1115
+
},
1116
1116
+
"engines": {
1117
1117
+
"node": ">=18"
1118
1118
+
}
1119
1119
+
},
1120
1120
+
"node_modules/@sentry-internal/replay-canvas": {
1121
1121
+
"version": "10.38.0",
1122
1122
+
"resolved": "https://registry.npmjs.org/@sentry-internal/replay-canvas/-/replay-canvas-10.38.0.tgz",
1123
1123
+
"integrity": "sha512-OXWM9jEqNYh4VTvrMu7v+z1anz+QKQ/fZXIZdsO7JTT2lGNZe58UUMeoq386M+Saxen8F9SUH7yTORy/8KI5qw==",
1124
1124
+
"license": "MIT",
1125
1125
+
"dependencies": {
1126
1126
+
"@sentry-internal/replay": "10.38.0",
1127
1127
+
"@sentry/core": "10.38.0"
1128
1128
+
},
1129
1129
+
"engines": {
1130
1130
+
"node": ">=18"
1131
1131
+
}
1132
1132
+
},
1133
1133
+
"node_modules/@sentry/browser": {
1134
1134
+
"version": "10.38.0",
1135
1135
+
"resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-10.38.0.tgz",
1136
1136
+
"integrity": "sha512-3phzp1YX4wcQr9mocGWKbjv0jwtuoDBv7+Y6Yfrys/kwyaL84mDLjjQhRf4gL5SX7JdYkhBp4WaiNlR0UC4kTA==",
1137
1137
+
"license": "MIT",
1138
1138
+
"dependencies": {
1139
1139
+
"@sentry-internal/browser-utils": "10.38.0",
1140
1140
+
"@sentry-internal/feedback": "10.38.0",
1141
1141
+
"@sentry-internal/replay": "10.38.0",
1142
1142
+
"@sentry-internal/replay-canvas": "10.38.0",
1143
1143
+
"@sentry/core": "10.38.0"
1144
1144
+
},
1145
1145
+
"engines": {
1146
1146
+
"node": ">=18"
1147
1147
+
}
1148
1148
+
},
1149
1149
+
"node_modules/@sentry/core": {
1150
1150
+
"version": "10.38.0",
1151
1151
+
"resolved": "https://registry.npmjs.org/@sentry/core/-/core-10.38.0.tgz",
1152
1152
+
"integrity": "sha512-1pubWDZE5y5HZEPMAZERP4fVl2NH3Ihp1A+vMoVkb3Qc66Diqj1WierAnStlZP7tCx0TBa0dK85GTW/ZFYyB9g==",
1153
1153
+
"license": "MIT",
1154
1154
+
"engines": {
1155
1155
+
"node": ">=18"
1156
1156
+
}
1081
1157
},
1082
1158
"node_modules/@standard-schema/spec": {
1083
1159
"version": "1.1.0",
+1
package.json
···
33
33
},
34
34
"type": "module",
35
35
"dependencies": {
36
36
+
"@sentry/browser": "^10.38.0",
36
37
"cartography-api": "file:./api",
37
38
"core-js": "^3.38.1",
38
39
"json-patch": "^0.7.0",
+11
src/routes/+layout.svelte
···
1
1
<script lang="ts">
2
2
import "core-js/actual/iterator";
3
3
+
import * as Sentry from "@sentry/browser";
3
4
import type { Snippet } from "svelte";
5
5
+
import Package from "../../package.json";
6
6
+
import { PUBLIC_SENTRY_DSN, PUBLIC_ENV } from "$env/static/public";
7
7
+
8
8
+
if (PUBLIC_SENTRY_DSN) {
9
9
+
Sentry.init({
10
10
+
dsn: PUBLIC_SENTRY_DSN,
11
11
+
release: Package.version,
12
12
+
environment: PUBLIC_ENV,
13
13
+
});
14
14
+
}
4
15
5
16
const { children }: { children: Snippet } = $props();
6
17
</script>