Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(config: ProfilerConfig) {
config = config || ({} as ProfilerConfig);
const serviceConfig: ServiceConfig = {
baseUrl: config.baseApiUrl,
scopes: [SCOPE],
packageJson: pjson,
};
super({
parent: new Service(serviceConfig, config),
baseUrl: '/',
});
this.config = config;
this.logger = createLogger(this.config.logLevel);
const labels: { zone?: string; version?: string; language: string } = {
language: 'nodejs',
};
if (this.config.zone) {
labels.zone = this.config.zone;
}
if (this.config.serviceContext.version) {
labels.version = this.config.serviceContext.version;
}
this.deployment = {