package
module
Version:
v0.0.0-...-2d719dd
Opens a new window with list of versions in this module.
Published: May 15, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 20
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Helper for telemetry bootstrap
Opinionated config for open telemetry and prometheus, for use in main().
- traces go to zpages or OTel collector if env is set.
- prometheus, expvar and otel metrics supported in libraries for metrics
Accessing metrics and traces programmatically
For tests and debug tools it is useful to be able to access local telemetry.
Even in regular code it helps to know the current status.
Documentation
¶
Should be called only if another main function didn't already initialize this.
OTel is the struct containing the bootstrapped telemetry
This is called from main() to setup the SDKs and providers in a particular way.
func (ot *OTel) InitProm()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.