slogcommon

package module
v0.0.0-...-230610e Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 3 Imported by: 0

README

Nothing to see here (internal package)

tag Go Version GoDoc Build Status Go report Coverage Contributors License

gif-nothing-to-see-meme

A toolchain for slog Go library. I made this library independent from others, to prevent injection of OTEL dependency when not necessary.

This project gathers common OTEL functions for my slog Go libraries:

See also:

HTTP middlewares:

Loggers:

Log sinks:

🤝 Contributing

Don't hesitate ;)

# Install some dev dependencies
make tools

# Run tests
make test
# or
make watch-test

👤 Contributors

Contributors

💫 Show your support

Give a ⭐️ if this project helped you!

GitHub Sponsors

📝 License

Copyright © 2023 Samuel Berthe.

This project is MIT licensed.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractOtelAttrFromContext

func ExtractOtelAttrFromContext(groups []string, traceIDKey string, spanIDKey string) func(ctx context.Context) []slog.Attr

Types

This section is empty.

Jump to

Keyboard shortcuts

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