You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The question might not be self-explanatory so let me explain:
I have an application that executes a series of steps over a unit of data.
On each step, I log some information, and I'm all the time adding the same data_id over and over on each log.
So like: info!(data_id = %data.id, "some message");
So I would like to know if there is a way to do something like: set_global!(data_id = %data.id).
Also I have this use case where some of the steps generate new data that from that I point I want to be set as a field on every event.
For example, lets say I have functions A, B, C
The flow is the following:
A calls B, B generates some data that should be set as a global field, then B returns
A calls C, any event in C should contain the fields that B set.
Also, events triggered inside those functions should always have the data_id field.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The question might not be self-explanatory so let me explain:
I have an application that executes a series of steps over a unit of data.
On each step, I log some information, and I'm all the time adding the same data_id over and over on each log.
So like:
info!(data_id = %data.id, "some message");
So I would like to know if there is a way to do something like:
set_global!(data_id = %data.id)
.Also I have this use case where some of the steps generate new data that from that I point I want to be set as a field on every event.
For example, lets say I have functions A, B, C
The flow is the following:
A calls B, B generates some data that should be set as a global field, then B returns
A calls C, any event in C should contain the fields that B set.
Also, events triggered inside those functions should always have the
data_id
field.Beta Was this translation helpful? Give feedback.
All reactions