[VOL-3142] Added method to terminate tracing in deferred mode with error checking

Change-Id: Ic11bb5f0390ec2628512d3770a423e8964f66af2
diff --git a/VERSION b/VERSION
index be94e6f..b347b11 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-3.2.2
+3.2.3
diff --git a/pkg/log/utils.go b/pkg/log/utils.go
index a947185..cdd0a4e 100644
--- a/pkg/log/utils.go
+++ b/pkg/log/utils.go
@@ -120,6 +120,13 @@
 	return cfg.InitGlobalTracer(componentName, jcfg.Reporter(jReporterCfgOption), jcfg.Sampler(jSamplerCfgOption))
 }
 
+func TerminateTracing(c io.Closer) {
+	err := c.Close()
+	if err != nil {
+		defaultLogger.Error(context.Background(), "error-while-closing-jaeger-tracer", Fields{"err": err})
+	}
+}
+
 // Extracts details of Execution Context as log fields from the Tracing Span injected into the
 // context instance. Following log fields are extracted:
 // 1. Operation Name : key as 'op-name' and value as Span operation name