Skip to content

Auto instrumentation of Services #125

@patroza

Description

@patroza

tracing: true would wrap all service members with

Effect.withSpan(`${identifier}.${member}`)

(or the new upcoming Effect.fn)

complications:

  • non effect returning functions

Can look into andThen implementation for some ideas.
Can look at only allowing the tracing: true option when shape is compatible.
Either use proxy or just a Record.map

Alternatives:

  • tsc/loader plugin to wrap functions automatically with Effect.fn?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions