File tree Expand file tree Collapse file tree 5 files changed +36
-844
lines changed Expand file tree Collapse file tree 5 files changed +36
-844
lines changed Original file line number Diff line number Diff line change 11FROM node:22-alpine
22
3- # for node-gyp to install cloud profiler
4- RUN apk add python3 g++ make py-setuptools
5-
63ENV PNPM_HOME="/pnpm"
74ENV PATH="$PNPM_HOME:$PATH"
85RUN npm install -g corepack@latest && corepack enable
Original file line number Diff line number Diff line change 11import { createTerminus } from '@godaddy/terminus' ;
2- import profiler from '@google-cloud/profiler' ;
32import * as Sentry from '@sentry/node' ;
43import * as Tracing from '@sentry/tracing' ;
54import express from 'express' ;
@@ -102,18 +101,6 @@ if (process.env.SENTRY_DSN) {
102101 } ) ;
103102}
104103
105- if ( process . env . GCP_CREDENTIALS ) {
106- await profiler . start ( {
107- projectId : 'statelycloud-prod' ,
108- serviceContext : {
109- service : 'dim' ,
110- version : process . env . COMMITHASH ,
111- } ,
112- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
113- credentials : JSON . parse ( process . env . GCP_CREDENTIALS ) ,
114- } ) ;
115- }
116-
117104const server = http . createServer ( app ) ;
118105
119106function beforeShutdown ( ) {
Original file line number Diff line number Diff line change 5959 secretKeyRef :
6060 name : dim-api-secret
6161 key : stately_access_key
62- - name : GCP_CREDENTIALS
63- valueFrom :
64- secretKeyRef :
65- name : gcp-credentials
66- key : gcp_credentials
6762 envFrom :
6863 - configMapRef :
6964 name : dim-api-config
Original file line number Diff line number Diff line change 6464 "dependencies" : {
6565 "@bufbuild/protobuf" : " ^2.2.3" ,
6666 "@godaddy/terminus" : " ^4.12.1" ,
67- "@google-cloud/profiler" : " ^6.0.2" ,
6867 "@sentry/node" : " ^7.120.3" ,
6968 "@sentry/tracing" : " ^7.120.3" ,
7069 "@stately-cloud/client" : " ^0.24.0" ,
You can’t perform that action at this time.
0 commit comments