-
Notifications
You must be signed in to change notification settings - Fork 63
/
gpii.js
32 lines (22 loc) · 1.05 KB
/
gpii.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*!
GPII Universal Personalization Framework Node.js Bootstrap
Copyright 2012 OCAD University
Licensed under the New BSD license. You may not use this file except in
compliance with this License.
The research leading to these results has received funding from the European Union's
Seventh Framework Programme (FP7/2007-2013) under grant agreement no. 289016.
You may obtain a copy of the License at
https://github.com/GPII/universal/blob/master/LICENSE.txt
*/
"use strict";
// GPII-3394: This is temporary code enabling Google Stackdriver tracing https://cloud.google.com/trace/
// If this requirement expands, this code will be moved into its own module, otherwise it will be removed
if (process.env.GPII_ENABLE_STACKDRIVER_TRACE === "true") {
console.log("Enabling @google-cloud/trace-agent");
require("@google-cloud/trace-agent").start();
}
// A simple bootstrap file which allows a configuration of the GPII to be
// started from the command line from universal
var fluid = require("./index.js"),
gpii = fluid.registerNamespace("gpii");
gpii.start();