Skip to content

Commit

Permalink
feat(core)!: implement an interceptor for the logging layer (#4961)
Browse files Browse the repository at this point in the history
* feat: init

* feat: accessor log

* feat: more logs

* feat: compile

* feat: use interceptor

* feat: use ctx to log

* feat: avoid formatting err first

* style: fix clippy

* chore: update comments

* refactor: pass operation

* feat: add context

* feat: remove some apis from DefaultLoggingLayer

* refactor: remove path

* docs: fix example

* test: fix haskell test
  • Loading branch information
evenyag authored Aug 9, 2024
1 parent c2ad8c5 commit c5cc990
Show file tree
Hide file tree
Showing 4 changed files with 526 additions and 761 deletions.
2 changes: 1 addition & 1 deletion bindings/haskell/test/BasicTest.hs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ testLogger = do
let logFn = LogAction $ logger state
Right _ <- newOperator "memory" {ocLogAction = Just logFn}
logStr <- readIORef state
T.take 77 logStr @?= "service=memory operation=metadata -> startedservice=memory operation=metadata"
T.take 78 logStr @?= "service=memory operation=metadata -> startedservice=memory operation=metadata"

-- helper function

Expand Down
Loading

0 comments on commit c5cc990

Please sign in to comment.