MCPcopy
hub / github.com/Effect-TS/effect / metric

Function metric

packages/experimental/src/DevTools/Domain.ts:209–216  ·  view source on GitHub ↗
(tag: Tag, state: Schema.Schema<S, IS, R>)

Source from the content-addressed store, hash-verified

207 * @category schemas
208 */
209export const metric = <Tag extends string, S, IS, R>(tag: Tag, state: Schema.Schema<S, IS, R>) =>
210 Schema.Struct({
211 _tag: Schema.Literal(tag),
212 name: Schema.String,
213 description: Schema.optionalWith(Schema.String, { as: "Option" }),
214 tags: Schema.Array(MetricLabel),
215 state
216 })
217
218/**
219 * @since 1.0.0

Callers 2

core-effect.tsFile · 0.85
Domain.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected