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.
constbuscar = traced('repo.usuarios.buscar', async (id: number) =>oracle.one(SQL, { id }));
Wraps
fnin a span namedname, by conventionlayer.domain.method(repo.usuarios.buscar): the span is the active one whilefnruns, 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.