-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Propagate tags to child spans #492
Comments
Try |
@alexmojaki I don't think that will work across files. Sorry if this is unclear or I am missing something |
Can't you define the instance in another file that both file1 and file2 import? |
I could hack this together in each of my projects. (I would instantiate a Logfire instance (not using with_tags) in file3 and just keep updating its internal _tags attribute) this is fine but it's not really a long term solution. |
OK, I guess you're using tags in a way that's more dynamic than what I would recommend creating a context variable and passing the value to |
Description
A
logfire.span
argument that allows child spans and records to inherit tags. All child spans (a relationship that looks to be defined by index inOPEN_SPANS
) would inherit tags from surrounding spans that havepropagate_tags=True
. Spans that set the argument to False (the default) do not pass tags to child spans.Proposal
The text was updated successfully, but these errors were encountered: