Dynamic Layer Configuration in Node SDK Using Effects

Is it possible to use the result of an effect when defining layers?
For example
const NodeSdkLive = NodeSdk.layer(() => ({
  resource: {
    serviceName: 'my-service',
  },
  metricReader: new PrometheusExporter({ port: 9464 }),
}))


to resolve the port here from Config, or based on a config decide to attach a different reader
Was this page helpful?