Commit Graph

57 Commits

Author SHA1 Message Date
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
Samuel Berthe ed108d3e9c Update README.md 2023-09-18 20:10:54 +02:00
Samuel Berthe 45a13954be Update README.md 2023-09-18 20:07:16 +02:00
Samuel Berthe 8fc05e396a feat: adding filters 2023-09-15 04:55:51 +02:00
Samuel Berthe 6e969abe5d Update README.md 2023-08-21 21:32:42 +02:00
Samuel Berthe ec2aed69bf Update README.md 2023-08-21 21:31:19 +02:00
Samuel Berthe baf0008993 Update README.md 2023-08-19 02:48:00 +02:00
Samuel Berthe 68aed0c018 bump v1 2023-08-09 18:27:13 +02:00
Samuel Berthe 1874447dc7 chore: upgrading x/exp 2023-06-20 18:20:55 +02:00
Samuel Berthe 6445d8ae4f chore: upgrading x/exp 2023-06-20 18:19:40 +02:00
dependabot[bot] 2a97bc7862 chore(deps): bump github.com/gin-gonic/gin from 1.9.0 to 1.9.1 (#1)
Bumps [github.com/gin-gonic/gin](https://github.com/gin-gonic/gin) from 1.9.0 to 1.9.1.
- [Release notes](https://github.com/gin-gonic/gin/releases)
- [Changelog](https://github.com/gin-gonic/gin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/gin-gonic/gin/compare/v1.9.0...v1.9.1)

---
updated-dependencies:
- dependency-name: github.com/gin-gonic/gin
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-02 13:19:52 +02:00
Samuel Berthe c4089c57af Merge branch 'master' of https://github.com/samber/slog-gin 2023-05-23 20:47:13 +02:00
Samuel Berthe 44d277f66b chore: adding goleak 2023-05-23 20:47:12 +02:00
Samuel Berthe 2363709a90 Update README.md 2023-05-19 20:28:22 +02:00