Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Commit 6cc78e6

Browse files
author
Matt Loring
committed
Add projectid label/omit default module
1 parent 3a44bfd commit 6cc78e6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/debugletapi.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ DebugletApi.prototype.register_ = function(errorMessage, callback) {
135135
'node version': process.versions.node,
136136
'V8 version': process.versions.v8,
137137
'agent.name': pjson.name,
138-
'agent.version': pjson.version
138+
'agent.version': pjson.version,
139+
'projectid': that.project_
139140
};
140141

141142
if (process.env.GAE_MODULE_NAME) {
@@ -145,7 +146,9 @@ DebugletApi.prototype.register_ = function(errorMessage, callback) {
145146

146147
if (process.env.GAE_MODULE_VERSION) {
147148
desc += ' version:' + process.env.GAE_MODULE_VERSION;
148-
labels[DEBUGGEE_MAJOR_VERSION_LABEL] = process.env.GAE_MODULE_VERSION;
149+
if (process.env.GAE_MODULE_VERSION !== 'default') {
150+
labels[DEBUGGEE_MAJOR_VERSION_LABEL] = process.env.GAE_MODULE_VERSION;
151+
}
149152
}
150153

151154
if (process.env.GAE_MINOR_VERSION) {

0 commit comments

Comments
 (0)