Categorygithub.com/savsgio/apm-go-logger
modulepackage
0.0.0-20240704100103-d5854836d032
Repository: https://github.com/savsgio/apm-go-logger.git
Documentation: pkg.go.dev

# README

apm-go-logger

Test status Go Report Card GoDev

Elastic APM hook implementation for go-logger.

Install

go get github.com/savsgio/apm-go-logger

Contributing

Feel free to contribute... :wink:

# Functions

TraceContext returns a []logger.Field containing the trace context of the transaction and span contained in ctx, if any.

# Constants

DefaultFatalFlushTimeout is the default value for Hook.FatalFlushTimeout.
FieldKeySpanID is the field key for the span ID.
FieldKeyTraceID is the field key for the trace ID.
FieldKeyTransactionID is the field key for the transaction ID.

# Variables

DefaultLogLevels is the log levels for which errors are reported by Hook, if Hook.LogLevels is not set.

# Structs

Hook implements logger.Hook, reporting log records as errors to the APM Server.