Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add olog package #420

Merged
merged 29 commits into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
f413b25
high level impl of olog with slog backend and per-module log levels
Oct 31, 2023
b72ed24
caveat audit log
jaredallard Nov 1, 2023
33cf928
small docs updates
jaredallard Nov 1, 2023
001ede0
initial work for builtin metadata
Dec 7, 2023
61ec94a
provide initial test helper, restructure for easier testing
Dec 7, 2023
623ccc4
better tests docs
Dec 7, 2023
c433d77
go mod tidy and more information on New()
Dec 7, 2023
276ca74
more comment updates
Dec 7, 2023
29bb796
comment update, unrelated linter issue...
Dec 7, 2023
9352785
forgot copyright and desc for olog.go
Dec 7, 2023
3b37e47
add note about why we panic
Dec 7, 2023
8a2002e
add SetDefaultHandler
Dec 7, 2023
bd72611
dont log the module name when that is the main (parent) module
Dec 7, 2023
775ef2d
chore: add README docs for olog pkg
Jan 11, 2024
c497ace
chore: olog - add change default handler example
Jan 11, 2024
6f8107d
fix: olog - fix tests (invalid json unmarshaling)
Jan 11, 2024
ebe9cca
Update pkg/olog/README.md
amhester Jan 17, 2024
e1ec1c4
fix: replace rand.Seed with rand.NewSource(seed)
Jan 18, 2024
49dd593
chore: olog - add migration example
Jan 22, 2024
0050d03
fix: removed bad example line
Jan 22, 2024
5bf8066
feat: Add hooks log handler wrapper for olog package (#441)
amhester Feb 5, 2024
d97e5cc
chore: update README
Feb 5, 2024
4f3bc5e
chore: resolve merge conflicts
Feb 5, 2024
b79b262
chore: resolve conflicts
Feb 14, 2024
fc34c82
chore: fix linter errors
Feb 14, 2024
ad2e2c2
chore: lintroller
Feb 14, 2024
74415be
chore: fix app info olog test
Feb 14, 2024
670a9ea
chore: add deployment namespace to app info log in olog e2e tests
Feb 14, 2024
42fa030
feat(ometrics): adds the ometrics package (#423)
jaredallard Feb 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ golang 1.21.3
# while leaving the 'default' version intact for the infra.
# The most common case is nodejs.
## <<Stencil::Block(toolver)>>
golangci-lint 1.55.1
## <</Stencil::Block>>
12 changes: 8 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
module github.com/getoutreach/gobox

go 1.19
go 1.21

require (
github.com/AlecAivazis/survey/v2 v2.3.7
github.com/Masterminds/semver/v3 v3.2.1
github.com/briandowns/spinner v1.23.0
github.com/charmbracelet/glamour v0.6.0
github.com/charmbracelet/log v0.3.1
github.com/creack/pty v1.1.21
github.com/davecgh/go-spew v1.1.1
github.com/fatih/color v1.16.0
Expand Down Expand Up @@ -49,9 +50,11 @@ require (

require (
dario.cat/mergo v1.0.0 // indirect
github.com/aymanbagabas/go-osc52 v1.0.3 // indirect
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/charmbracelet/lipgloss v0.9.1 // indirect
github.com/cloudflare/circl v1.3.3 // indirect
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
github.com/go-logfmt/logfmt v0.6.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/hashicorp/go-hclog v1.0.0 // indirect
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect
Expand All @@ -60,6 +63,7 @@ require (
github.com/skeema/knownhosts v1.2.1 // indirect
github.com/tdewolff/parse/v2 v2.7.11 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240102182953-50ed04b92917 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240102182953-50ed04b92917 // indirect
)
Expand Down Expand Up @@ -93,14 +97,14 @@ require (
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-runewidth v0.0.14 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
github.com/microcosm-cc/bluemonday v1.0.21 // indirect
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/muesli/reflow v0.3.0 // indirect
github.com/muesli/termenv v0.13.0 // indirect
github.com/muesli/termenv v0.15.2 // indirect
github.com/olekukonko/tablewriter v0.0.5 // indirect
github.com/prometheus/client_model v0.5.0
github.com/prometheus/common v0.45.0 // indirect
Expand Down
31 changes: 28 additions & 3 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions go.work
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
go 1.21

use .

use ./pkg/ometrics
Loading