File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
fabric-chaincode-shim/src/test/java/org/hyperledger/fabric/shim/impl Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 1212import org .hyperledger .fabric .protos .peer .ChaincodeShim ;
1313import org .hyperledger .fabric .shim .ChaincodeBase ;
1414import org .hyperledger .fabric .shim .chaincode .EmptyChaincode ;
15+ import org .hyperledger .fabric .traces .Traces ;
1516import org .junit .Rule ;
1617import org .junit .contrib .java .lang .system .EnvironmentVariables ;
1718import org .junit .jupiter .api .AfterEach ;
@@ -57,6 +58,7 @@ void getManager() throws IOException {
5758 chaincodeBase .validateOptions ();
5859
5960 Properties props = chaincodeBase .getChaincodeConfig ();
61+ Traces .initialize (props );
6062 Metrics .initialize (props );
6163
6264 final Chaincode .ChaincodeID chaincodeId = Chaincode .ChaincodeID .newBuilder ().setName ("chaincodeIdNumber12345" ).build ();
@@ -223,6 +225,7 @@ void shutdown() throws IOException {
223225 chaincodeBase .validateOptions ();
224226
225227 Properties props = chaincodeBase .getChaincodeConfig ();
228+ Traces .initialize (props );
226229 Metrics .initialize (props );
227230
228231 final ManagedChannelBuilder <?> managedChannelBuilder = chaincodeBase .newChannelBuilder ();
You can’t perform that action at this time.
0 commit comments