Issue with `Effect.try` and `Effect.fn` Traces in Effect Typescript Library

Hi, is it expected that Effec.try breaks Effect.fn traces?
The following code does not return the function definition trace
class CustomError extends Data.TaggedError("CustomError")<{
  cause?: unknown
  message?: string
}> {}
const error = () => {
  throw new Error("boom")
}
const boomFunction = Effect.fn(function*(n: number) {
  yield* Effect.annotateCurrentSpan("n", n)
  yield* Effect.try({
    try: () => error(),
    catch: (cause) => new CustomError({ message: "custom error", cause }) 
  })
})
Was this page helpful?