app

package
v0.0.0-...-58ae5d1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package app provides global variables related to the app.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTracer

func GetTracer() oteltrace.Tracer

GetTracer gets the global app tracer.

func InitTracer

func InitTracer(cfg *config.Config) (*tracesdk.TracerProvider, error)

InitTracer initializes tracer and set it as default tracer. The created tracer can be accessed using GetTracer method. Tracer will only be created if jaeger config is enabled.

func Tracer

func Tracer(tracer oteltrace.Tracer)

Tracer sets the global app tracer.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL