shutdown tracer provider first
Signed-off-by: Yingrong Zhao <yingrong.zhao@gmail.com>
This commit is contained in:
@ -109,12 +109,12 @@ func newTracingExporter(ctx context.Context, cfg *Config) (*tracingExporter, err
|
||||
}
|
||||
|
||||
func (te *tracingExporter) Close(ctx context.Context) {
|
||||
if te.exporter != nil {
|
||||
te.exporter.Shutdown(ctx)
|
||||
}
|
||||
if te.provider != nil {
|
||||
te.provider.Shutdown(ctx)
|
||||
}
|
||||
if te.exporter != nil {
|
||||
te.exporter.Shutdown(ctx)
|
||||
}
|
||||
}
|
||||
|
||||
func determineSampler(samplingRate int) tracesdk.Sampler {
|
||||
|
Reference in New Issue
Block a user