package
1.0.9
Repository: https://github.com/spaziodati/go-utils.git
Documentation: pkg.go.dev

# Functions

CustomFCMTransport returns a FCMTransport.
No description provided by the author
GenerateFCMTokenProvider gets a valid token for FCM.
GetFCMHTTPClient returns an HttpClient able to performs requests setting a valid Authorization header.
No description provided by the author
No description provided by the author
GetTracingHeaders returns tracing headers computed from the given context.
No description provided by the author
Init see: https://opentelemetry.io/docs/go/getting-started/ If needed, start a new span: opentelemetry.GetTracer().Start(parentCtx, name, ..) See examples.
InitMetrics creates a new server on the port provided that exposes metrics.
No description provided by the author

# Structs

FCMTransport defines a httpTransport with a custom RoundTripper.
No description provided by the author

# Type aliases

SampleByRatio implements Sampler interface: https://pkg.go.dev/go.opentelemetry.io/otel/sdk/trace#Sampler Be aware this will also check for an attribute named FlagSkip.