otel

package
v0.0.0-...-75a017b Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

参考SigNoz文档 https://signoz.io/docs/instrumentation/golang/

Index

Constants

This section is empty.

Variables

View Source
var ServiceName string

Functions

func GinMiddleware

func GinMiddleware() gin.HandlerFunc

GinMiddleware gin中间件,404时会发送数据

func InitTracer

func InitTracer(endpoint, service string) (func(context.Context) error, error)

InitTracer 初始化全局 trace provider exporter 将数据发送到 endpoint 返回 exporter 的 Shutdown 方法,在程序结束时调用 endpoint 无法连接时,初始化正常,发送数据时报错

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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