MCPcopy Create free account

hub / github.com/agoda-com/opentelemetry-go / functions

Functions41 in github.com/agoda-com/opentelemetry-go

↓ 30 callersMethodString
()
otelzerolog/otelzerolog_test.go:22
↓ 4 callersMethodCtx
(ctx context.Context)
otelzap/logger.go:40
↓ 4 callersMethodEnabled
(level zapcore.Level)
otelzap/core.go:46
↓ 3 callersFunctionnewResource
configure common attributes for all logs
otelzerolog/otelzerolog_test.go:27
↓ 3 callersFunctionotelAttribute
otelAttribute convert zap Field into OpenTelemetry Attribute
otelzap/conv.go:54
↓ 2 callersFunctionL
L returns the global Logger
otelzap/global.go:25
↓ 2 callersFunctionNewHook
(loggerProvider otel.LoggerProvider)
otelzerolog/otelzerolog.go:49
↓ 2 callersMethodWith
(fields ...zapcore.Field)
otelzap/logger.go:48
↓ 2 callersMethodWithAttrs
(attrs []slog.Attr)
otelslog/otel_handler.go:136
↓ 2 callersMethodWithGroup
(name string)
otelslog/otel_handler.go:149
↓ 2 callersFunctionotelAttribute
(attr slog.Attr)
otelslog/conv.go:24
↓ 2 callersFunctionwithGroupPrefix
(groupPrefix string, attr slog.Attr)
otelslog/otel_handler.go:129
↓ 1 callersFunctionNewOtelCore
NewOtelCore creates new OpenTelemetry Core to export logs in OTLP format
otelzap/otelzap.go:25
↓ 1 callersFunctionNewOtelHandler
NewOtelHandler creates a OtelHandler that writes to otlp, using the given options. If opts is nil, the default options are used.
otelslog/otel_handler.go:169
↓ 1 callersMethodRun
(e *zerolog.Event, level zerolog.Level, msg string)
otelzerolog/otelzerolog.go:57
↓ 1 callersMethodSugar
()
otelzap/logger.go:34
↓ 1 callersFunctionVersion
Version is the current release version of OpenTelemetry Slog in use.
otelslog/version.go:20
↓ 1 callersFunctionVersion
Version is the current release version of OpenTelemetry Zerolog in use.
otelzerolog/version.go:20
↓ 1 callersFunctionVersion
Version is the current release version of OpenTelemetry Zap in use.
otelzap/version.go:20
↓ 1 callersFunctionWithLevelEnabler
WithLevelEnabler sets the zapcore.LevelEnabler for determining which log levels to export
otelzap/otelzap.go:53
↓ 1 callersFunctiondoSomething
(ctx context.Context)
otelslog/otel_handler_test.go:30
↓ 1 callersFunctionnewResource
configure common attributes for all logs
otelslog/otel_handler_test.go:20
↓ 1 callersFunctionotelAttribute
(key string, value interface{})
otelzerolog/conv.go:10
↓ 1 callersFunctionotelLevel
otelLevel zap level to otlp level converter
otelzap/conv.go:33
↓ 1 callersFunctionotelLevelNumber
(level zerolog.Level)
otelzerolog/level.go:24
↓ 1 callersFunctionotelLevelText
(level zerolog.Level)
otelzerolog/level.go:45
MethodCheck
Check OTLP zap extension method to check if logger is enabled
otelzap/core.go:62
FunctionCtx
Ctx is a shortcut for L().Ctx(ctx).
otelzap/global.go:36
MethodCtx
(ctx context.Context)
otelzap/logger.go:58
MethodEnabled
(ctx context.Context, level slog.Level)
otelslog/otel_handler.go:66
MethodHandle
(ctx context.Context, record slog.Record)
otelslog/otel_handler.go:74
FunctionS
()
otelzap/global.go:31
MethodSync
()
otelzap/core.go:69
FunctionTestLevelEnabler_ChangeLevelAfterCreation
(t *testing.T)
otelzap/core_test.go:10
FunctionTestNewOtelHandler
(t *testing.T)
otelslog/otel_handler_test.go:35
FunctionTestOTeLAttributeMapping
(t *testing.T)
otelzap/conv_test.go:22
FunctionTestZerologHook
(t *testing.T)
otelzerolog/otelzerolog_test.go:37
FunctionTestZerologHook_ValidSpan
(t *testing.T)
otelzerolog/otelzerolog_test.go:64
MethodWith
(f []zapcore.Field)
otelzap/core.go:50
FunctionWithLevel
WithLevel sets the minimum level for the OpenTelemetry Core log to be exported
otelzap/otelzap.go:46
MethodWrite
(ent zapcore.Entry, fields []zapcore.Field)
otelzap/core.go:73