Discover Packages
github.com/ljkiraly/sdk
pkg
tools
log
spanlogger
package
Version:
v0.4.4
Opens a new window with list of versions in this module.
Published: Jan 17, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package spanlogger provides a set of utilities to assist in working with spans
type Span interface {
Log(level, format string , v ...interface{})
LogObject(k, v interface{})
WithField(k, v interface{}) Span
Finish()
ToString() string
}
Span - unified interface for opentelemetry spans
FromContext - creates a new spanLogger from context and operation
Source Files
¶
Click to show internal directories.
Click to hide internal directories.