Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uber service crashes when FIN_METRICS_EXPORT_GC env variable is not set to true #78

Open
UcDust opened this issue Jan 31, 2024 · 1 comment

Comments

@UcDust
Copy link
Contributor

UcDust commented Jan 31, 2024

Setting FIN_METRICS_EXPORT_GC=true allows the service to run successfully. Otherwise, it crashes with the following error-

> @ucd-lib/fin-service-utils@0.2.19 uber
> node uber/index.js
Setting up node OpenTelemetry metrics {
  'service.name': 'uber',
  'service.version': '2.5.1.239',
  'service.namespace': 'aggie-experts-localhost',
  'service.instance.id': 'uber-318af6824741'
}
/fin/services/node_modules/@opentelemetry/sdk-metrics/build/src/export/PeriodicExportingMetricReader.js:32
            aggregationSelector: (_a = options.exporter.selectAggregation) === null || _a === void 0 ? void 0 : _a.bind(options.exporter),
                                                        ^
TypeError: Cannot read properties of undefined (reading 'selectAggregation')
    at new PeriodicExportingMetricReader (/fin/services/node_modules/@opentelemetry/sdk-metrics/build/src/export/PeriodicExportingMetricReader.js:32:57)
    at init (/fin/services/node-utils/lib/metrics/index.js:63:19)
    at Object.<anonymous> (/fin/services/node-utils/lib/metrics/index.js:91:1)
    at Module._compile (node:internal/modules/cjs/loader:1356:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
    at Module.load (node:internal/modules/cjs/loader:1197:32)
    at Module._load (node:internal/modules/cjs/loader:1013:12)
    at Module.require (node:internal/modules/cjs/loader:1225:19)
    at require (node:internal/modules/helpers:177:18)
    at Object.<anonymous> (/fin/services/node-utils/index.js:2:17)
Node.js v18.19.0
@jrmerz
Copy link
Contributor

jrmerz commented Jan 31, 2024

patched at c495468 . Build in progress for 2.5.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants