tracing: allow the Resource
to be set externally
#4472
Merged
Resource
to be set externally
#4472