Documentation ¶
Overview ¶
Package infrastructure is implements an adapter to talk to low-level modules. # This manifest was generated by ymir. DO NOT EDIT.
Package infrastructure is implements an adapter to talk to low-level modules. # This manifest was generated by ymir. DO NOT EDIT.
Package infrastructure is implements an adapter to talks low-level modules. # This manifest was generated by ymir. DO NOT EDIT.
Index ¶
- Constants
- func GrpcMetricExporter(ctx context.Context, addr string, timeout time.Duration, enabled bool) (metric.Exporter, error)
- func GrpcTraceExporter(ctx context.Context, addr string, timeout time.Duration, enabled bool) (*otlptrace.Exporter, error)
- func InitializeLogger(stage string)
- func MetricExporter(ctx context.Context, debug, enabled bool, addr string, timeout time.Duration) (metric.Exporter, error)
- func TraceExporter(ctx context.Context, debug, enabled bool, addr string, timeout time.Duration) (sdkTrace.SpanExporter, error)
- type MetricReturnFunc
- type TracerReturnFunc
Constants ¶
const Development string = "development"
Development is debugging the constant.
Variables ¶
This section is empty.
Functions ¶
func GrpcMetricExporter ¶
func GrpcMetricExporter(ctx context.Context, addr string, timeout time.Duration, enabled bool) (metric.Exporter, error)
GrpcMetricExporter is open connection to open telemetry collector.
func GrpcTraceExporter ¶
func GrpcTraceExporter(ctx context.Context, addr string, timeout time.Duration, enabled bool) (*otlptrace.Exporter, error)
GrpcTraceExporter is open connection to open telemetry collector.
func InitializeLogger ¶
func InitializeLogger(stage string)
InitializeLogger will set logging format.
Types ¶
type MetricReturnFunc ¶
MetricReturnFunc return type func with error.
func InitMetric ¶
func InitMetric(exporter metric.Exporter) MetricReturnFunc
InitMetric create metric provider from collector exporter.
type TracerReturnFunc ¶
TracerReturnFunc return type func with error.
func InitTracer ¶
func InitTracer(serviceName string, exporter sdkTrace.SpanExporter) TracerReturnFunc
InitTracer create tracer provider from collector exporter.