Skip to content

Commit e32b1eb

Browse files
committed
Update all deps, remove OpenTelemetry stack
1 parent 9c94476 commit e32b1eb

26 files changed

Lines changed: 900 additions & 2712 deletions

File tree

.env.example

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,5 @@ NEXT_PUBLIC_APP_URL=http://localhost:3000
2828

2929
REDIS_URL=redis://alice:foobared@awesome.redis.server:6380
3030

31-
# Optional SigNoz/OpenTelemetry export. Leave unset for local development.
32-
# OTEL_SERVICE_NAME=hackclub-photos
33-
# OTEL_EXPORTER_OTLP_ENDPOINT=https://in-sig.deployor.dev
34-
# OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
35-
# OTEL_EXPORTER_OTLP_HEADERS=Authorization=Basic <base64-value>
36-
# OTEL_TRACES_EXPORTER=otlp
37-
# OTEL_METRICS_EXPORTER=otlp
38-
# OTEL_LOGS_EXPORTER=none
39-
# OTEL_RESOURCE_ATTRIBUTES=deployment.environment=production,service.namespace=photos
40-
# OTEL_NODE_RESOURCE_DETECTORS=env,host,os
41-
# NEXT_OTEL_VERBOSE=1
42-
# OTEL_METRIC_EXPORT_INTERVAL=60000
4331
# APP_VERSION=<git-sha-or-release>
4432
LOG_LEVEL=info

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
3838
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
3939
COPY --from=builder --chown=nextjs:nodejs /app/drizzle ./drizzle
4040
COPY --from=builder --chown=nextjs:nodejs /app/scripts ./scripts
41-
COPY --from=builder --chown=nextjs:nodejs /app/otel-bootstrap.cjs ./otel-bootstrap.cjs
4241
COPY --chown=nextjs:nodejs package.json bun.lock ./
4342
RUN --mount=type=cache,target=/root/.bun/install/cache \
4443
bun install --production --frozen-lockfile

app/actions/storage.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { auditLog } from "@/lib/audit";
33
import { getSession } from "@/lib/auth";
44
import { APP_URL } from "@/lib/constants";
5-
import { logger, recordException, serializeError } from "@/lib/logger";
5+
import { logger, serializeError } from "@/lib/logger";
66
import { getDetailedStorageStats } from "@/lib/media/s3";
77
import { can, getUserContext } from "@/lib/policy";
88
import { getDatabaseStorageStats } from "@/lib/storage";
@@ -73,7 +73,6 @@ export async function cleanupGhostFiles(cursor?: string) {
7373
});
7474
return { success: true, ...result };
7575
} catch (error) {
76-
await recordException(error);
7776
logger.error(
7877
{ userId: user.id, cursor, error: serializeError(error) },
7978
"manual ghost file cleanup failed",
@@ -110,7 +109,6 @@ export async function repairThumbnails(cursor?: string) {
110109
await auditLog(user.id, "update", "storage", "thumbnails", { result });
111110
return { success: true, ...result };
112111
} catch (error) {
113-
await recordException(error);
114112
logger.error(
115113
{ userId: user.id, cursor, error: serializeError(error) },
116114
"manual thumbnail repair failed",
@@ -169,7 +167,6 @@ export async function repairExifData(cursor?: string) {
169167
completed: payload.completed === true,
170168
};
171169
} catch (error) {
172-
await recordException(error);
173170
logger.error(
174171
{ userId: user.id, cursor, error: serializeError(error) },
175172
"manual EXIF repair failed",

0 commit comments

Comments
 (0)