Commit Graph

4 Commits

Author SHA1 Message Date
Martin Gencur 894c2f20c9
SetupStaticPublishing and SetupDynamicPublishing returns Tracer with Shutdown function (#2566)
* SetupStaticPublishing and SetupDynamicPublishing returns OpenCensusTracer

* The caller can then call Finish() to properly flush buffered Spans
before shutdown

* Make sure the WithExporterFull checks if the config is nil

* Parse cfg.Backend only if config is not nil

Otherwise proceed futher and let globalOct.closer to be closed which
actually flushes the remaining Spans.

* Provide Tracer type with Shutdown function

* Provide backwards compatible API

* Never return nil Tracer

* Provide SetupPublishingWithDynamicConfigAndInitialValue

* Remove SetupDynamicPublishingWithInitialValue
2022-08-15 21:25:47 +00:00
Ying Chun Guo 7b8b06028e
Add tracing.SetupDynamicPublishingWithInitialValue (#2558) 2022-08-05 01:21:21 +00:00
Matt Moore e2d6b4f845
Try splitting configmap package (#1851) 2020-12-22 13:58:04 -08:00
Francesco Guardiani 9e655c6b02
Port tracing setup code to pkg (#1807)
* Port setup code to pkg

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Moved prebuilt setups in config

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Removed maybe useless code

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Removed hardcoded configs and renamed defaultConfig() to NoopConfig()

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Applied suggestions

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Applied suggestions

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2020-10-14 11:45:31 -07:00