70 Commits

Author SHA1 Message Date
s.solodyagin 9dc96d87c6 rename module 2024-10-25 16:37:33 +03:00
Samuel Berthe bd3c7a827b fix: convert time to utc 2024-09-22 00:18:37 +02:00
Samuel Berthe d50c81de7d Update README.md 2024-09-09 20:30:24 +02:00
Samuel Berthe 2df22bb01f fix go mod 2024-08-17 20:58:02 +02:00
Samuel Berthe ad1624e37e fix: replace trace-id by trace_id
spec: https://opentelemetry.io/docs/specs/otel/compatibility/logging_trace_context
2024-08-17 20:52:29 +02:00
Fleezesd 1126498f09 fix: add otel trace & span example for slog-gin (#23) 2024-07-04 13:29:53 +02:00
Samuel Berthe 51759a0829 Thanks @quickwit-oss for the support ✌️ 2024-07-01 14:08:35 +02:00
Samuel Berthe 5d1165c23c Update lint.yml 2024-06-27 21:32:47 +02:00
Samuel Berthe da9ced03ea Update test.yml 2024-06-27 13:16:47 +02:00
Samuel Berthe 3f56650b1e chore: upgrade deps 2024-06-04 18:53:25 +02:00
Samuel Berthe 992484b9e9 chore: upgrade slog-multi 2024-06-04 18:47:38 +02:00
Samuel Berthe ae04a990b0 feat: customizable request id field key 2024-05-09 20:07:24 +02:00
Samuel Berthe 03c1ea4433 Update README.md 2024-05-01 20:40:57 +02:00
Samuel Berthe 812b3ffb5d feat: include tracing only for the recording spans 2024-04-21 23:13:31 +02:00
Samuel Berthe 0a948b00ea feat: include tracing only for the recording spans 2024-04-21 23:05:58 +02:00
Hossein Zolfi 87620aa801 Enhance Logging: Include TraceID and SpanID only for Recording Spans (#20)
Logging non-recording spans is uninformative for troubleshooting and absent in tracing platforms like Jaeger.

Co-authored-by: Samuel Berthe <dev@samuel-berthe.fr>
2024-04-21 23:01:49 +02:00
Samuel Berthe 8e1506be69 feat: custom tracing keys 2024-04-21 21:18:50 +02:00
dependabot[bot] 8efbe1cd85 chore(deps): bump golang.org/x/net from 0.17.0 to 0.23.0 (#19)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.17.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.17.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-19 14:19:59 +02:00
Samuel Berthe c588e9156e Update README.md 2024-04-14 04:03:24 +02:00
Samuel Berthe dbdb412ef8 feat: fix bodyWriter 2024-04-13 22:08:59 +02:00
Samuel Berthe 1d64e8b44a Update README.md 2024-03-23 06:34:04 +01:00
Samuel Berthe 203f2e6ac8 feat expose RequestIDHeaderKey globally 2024-03-19 00:45:06 +01:00
Samuel Berthe fc932ebefd feat expose RequestIDHeaderKey globally 2024-03-19 00:42:45 +01:00
Thomas Anderson 41264887e5 fix: use existing x-header-id header if set (#16) 2024-03-19 00:42:06 +01:00
dependabot[bot] 74cddec200 chore(deps): bump google.golang.org/protobuf from 1.30.0 to 1.33.0 (#17)
Bumps google.golang.org/protobuf from 1.30.0 to 1.33.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-13 23:45:49 +01:00
Samuel Berthe 1113f53ea2 fix: dedup "headers" attribute 2024-02-12 12:04:50 +01:00
Samuel Berthe 08a791bf8d Update README.md 2024-01-21 02:01:47 +01:00
Samuel Berthe 6ce25f034a fix body buffer dump 2024-01-20 23:17:13 +01:00
Samuel Berthe d0c63b933e 💄 2024-01-20 19:22:20 +01:00
Samuel Berthe 083d462db9 bodyWriter now implements http.Flusher and http.Hijacker 2024-01-20 19:13:39 +01:00
Samuel Berthe 96c9813d0e feat: adding params 2024-01-03 20:26:15 +01:00
张均隆 8d42afb00b feat: adding request query (#13)
* feat: adding request query

* Update README.md

---------

Co-authored-by: Samuel Berthe <dev@samuel-berthe.fr>
2024-01-03 20:23:26 +01:00
Samuel Berthe 8a9a65d8fb move attributes tot nested group - first commit of the year 2024-01-01 15:40:26 +01:00
Samuel Berthe 45cb9e04df doc: improve readme 2023-12-26 00:54:44 +01:00
dependabot[bot] 93a053ee73 chore(deps): bump golang.org/x/crypto from 0.14.0 to 0.17.0 (#12)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.14.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.14.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-19 12:22:59 +01:00
Lucas JAHIER 2abc5bcd2e feat: make user-agent optional in the NewWithConfig (#9)
* feat: make user-agent optional in the NewWithConfig

* feat: set default value to false
2023-12-01 18:47:20 +01:00
Samuel Berthe 6069f83668 Update README.md 2023-11-27 11:24:30 +01:00
Samuel Berthe b9e5d08876 Update Makefile 2023-11-01 04:32:21 +01:00
Samuel Berthe a587ecd872 Merge branch 'main' of https://github.com/samber/slog-gin 2023-10-30 10:40:09 +01:00
Samuel Berthe 6d4694e021 feat: adding otel 2023-10-30 10:40:02 +01:00
Ben B 6b1ec40410 feat: support adding traceID and spanID (#7)
Signed-off-by: Benedikt Bongartz <bongartz@klimlive.de>
2023-10-30 10:12:15 +01:00
Samuel Berthe 26cd833d20 doc 2023-10-24 11:33:08 +02:00
Samuel Berthe 7b2004ad1f feat: send request context into record context 2023-10-23 14:11:16 +02:00
Samuel Berthe 9b048ad34b Merge branch 'main' of https://github.com/samber/slog-gin 2023-10-21 19:56:15 +02:00
Samuel Berthe d623f43b4c style: cleanup code 2023-10-21 19:56:11 +02:00
Samuel Berthe 3136afbcb0 feat: max size (#6)
for http body dump
2023-10-18 02:49:27 +02:00
Samuel Berthe 2fa3d7e62c feat: verbose mode + custom attributes 2023-10-16 01:00:56 +02:00
Samuel Berthe 1546b4083a feat: split path into 2 variables (path+route) 2023-10-15 22:29:34 +02:00
Samuel Berthe 239c66b1eb Update README.md 2023-10-15 21:02:01 +02:00
dependabot[bot] d3933ee97e chore(deps): bump golang.org/x/net from 0.10.0 to 0.17.0 (#4)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.10.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.10.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-13 17:22:03 +02:00