File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
packages/build-info/src/node Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -10,17 +10,18 @@ const pkgJSON = new URL('../../package.json', import.meta.url)
10
10
export async function initializeMetrics ( ) : Promise < Client | undefined > {
11
11
try {
12
12
const { version, name } = JSON . parse ( await readFile ( pkgJSON , 'utf-8' ) )
13
+ const metadata : { [ key : string ] : any } = {
14
+ deploy_id : process . env . DEPLOY_ID ,
15
+ build_id : process . env . BUILD_ID ,
16
+ repository_url : process . env . REPOSITORY_URL ,
17
+ }
13
18
Bugsnag . start ( {
14
19
apiKey : process . env . BUGSNAG_KEY_BUILD_INFO || '' ,
15
20
appType : name ,
16
21
appVersion : version ,
17
22
releaseStage : 'production' ,
18
23
enabledReleaseStages : [ 'production' ] ,
19
- metadata : {
20
- deploy_id : process . env . DEPLOY_ID ,
21
- build_id : process . env . BUILD_ID ,
22
- repository_url : process . env . REPOSITORY_URL ,
23
- } ,
24
+ metadata,
24
25
autoTrackSessions : false ,
25
26
26
27
logger : new NoopLogger ( ) ,
You can’t perform that action at this time.
0 commit comments