commonAttributesFunction property
A function to return attributes to include in all traces, called when spans are created but the UITracer. This is a good place to include value that change over time (as opposed to resource attributes, which do not change) to correlate traces. Consider adding values for UserSemantics userId, userRole and userSession.
Implementation
static CommonAttributesFunction? commonAttributesFunction;