// Provides CloudWatchService
export const SegmentServiceLive = Layer.effect(
SegmentService,
Effect.gen(function* () {
const cloudWatchService = yield* CloudWatchService
const analytics = new Analytics({ writeKey: writeKey })
analytics.on('error', onErrorCallback)
}),
)
// Provides CloudWatchService
export const SegmentServiceLive = Layer.effect(
SegmentService,
Effect.gen(function* () {
const cloudWatchService = yield* CloudWatchService
const analytics = new Analytics({ writeKey: writeKey })
analytics.on('error', onErrorCallback)
}),
)