Iskra API Reference
    Preparing search index...

    Function traced

    • Wraps fn in a span named name, by convention layer.domain.method (repo.usuarios.buscar): the span is the active one while fn runs, so the spans started inside (a query, a call to another service) are its children; a throw or a rejection marks it as an error. Without an OpenTelemetry SDK it costs a no-op span.

      const buscar = traced('repo.usuarios.buscar', async (id: number) => oracle.one(SQL, { id }));
      

      Type Parameters

      • A extends unknown[]
      • R

      Parameters

      Returns (...args: A) => R