Skip to content

Commit

Permalink
Initialize config before set profileQueryEndpoint (#601)
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Wolff <marwolff@microsoft.com>
  • Loading branch information
qetza and Mark Wolff committed Mar 17, 2020
1 parent 80b56e3 commit e8ea15e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Config.ts
Expand Up @@ -83,11 +83,11 @@ class Config {

this.setCorrelationId = (correlationId) => this.correlationId = correlationId;

this.profileQueryEndpoint = csCode.ingestionendpoint || csEnv.ingestionendpoint || process.env[Config.ENV_profileQueryEndpoint] || this.endpointBase;
this.proxyHttpUrl = process.env[Config.ENV_http_proxy] || undefined;
this.proxyHttpsUrl = process.env[Config.ENV_https_proxy] || undefined;
this.httpAgent = undefined;
this.httpsAgent = undefined;
this.profileQueryEndpoint = csCode.ingestionendpoint || csEnv.ingestionendpoint || process.env[Config.ENV_profileQueryEndpoint] || this.endpointBase;
this._quickPulseHost = csCode.liveendpoint || csEnv.liveendpoint || process.env[Config.ENV_quickPulseHost] || Constants.DEFAULT_LIVEMETRICS_HOST;
// Parse quickPulseHost if it startswith http(s)://
if (this._quickPulseHost.match(/^https?:\/\//)) {
Expand Down

0 comments on commit e8ea15e

Please sign in to comment.