@vtexlab/planner-message-bus
Version:
A Message Bus that uses AWS SNS, AWS SQS, and AWS EventBridge
21 lines (20 loc) • 579 B
JavaScript
export class Configuration {
static configureDefaultTraces(traces) {
if (!this._defaultTracerProperties) {
this._defaultTracerProperties = traces;
}
}
static get defaultTracerProperties() {
return this._defaultTracerProperties;
}
static messageSuffix(endpoint) {
switch (process.env.NODE_ENV) {
case 'local':
case 'development':
case 'staging':
return `${endpoint}-${process.env.NODE_ENV}`;
default:
return endpoint;
}
}
}