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

Commit

Permalink
Add projectid label/omit default module
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Loring committed Apr 22, 2016
1 parent 3a44bfd commit 6cc78e6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/debugletapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ DebugletApi.prototype.register_ = function(errorMessage, callback) {
'node version': process.versions.node,
'V8 version': process.versions.v8,
'agent.name': pjson.name,
'agent.version': pjson.version
'agent.version': pjson.version,
'projectid': that.project_
};

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

if (process.env.GAE_MODULE_VERSION) {
desc += ' version:' + process.env.GAE_MODULE_VERSION;
labels[DEBUGGEE_MAJOR_VERSION_LABEL] = process.env.GAE_MODULE_VERSION;
if (process.env.GAE_MODULE_VERSION !== 'default') {
labels[DEBUGGEE_MAJOR_VERSION_LABEL] = process.env.GAE_MODULE_VERSION;
}
}

if (process.env.GAE_MINOR_VERSION) {
Expand Down

0 comments on commit 6cc78e6

Please sign in to comment.