Skip to content
This repository was archived by the owner on Apr 29, 2026. It is now read-only.
This repository was archived by the owner on Apr 29, 2026. It is now read-only.

Examples clarifications #17

Description

@marlon-sousa

Hello,

Thanks for your work.

Being new to the whole eco system, I am still unsure how this library relates to others.

I like the idea of defining custom fields that can be filled at run time, but I am somewhat unsure about two questions I'd like to have clarified:

async fn personal_hello

  1. Inside this function, can I call info!, error! and others directly?
  2. In real life applications, this function will call other sync or async functions. If I need to call info!, error! from within that functions, what is going to happen? Do I have to pass the root_span around or just calling info! (etc) will work?
  3. what if this inner functions need to call .record to add yet more context they somehow acquire during request execution?

I will try to dig around on this library, but again it is kind of a puzzle where it is very hard to understand who is responsible for what, including all the async corner cases. If you could add this kind of information on the example this would be great to new members!

Thanks,
Marlon

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions