The TRANSACTION_SOURCE_* constants defined in tracing.py would likely make more sense to be defined as enums. We can then redefine the functions that accept as an argument a transaction source (for example, scope.set_transaction_name) to accept the Transaction Source enum type.
The
TRANSACTION_SOURCE_*constants defined intracing.pywould likely make more sense to be defined as enums. We can then redefine the functions that accept as an argument a transaction source (for example,scope.set_transaction_name) to accept the Transaction Source enum type.