Commit Graph

5 Commits

Author SHA1 Message Date
Jeff Schroeder 382cb9a0aa node: remove google logs from pkg/telemetry 2023-10-27 21:28:53 -04:00
bruce-riley 8120772e95
Node: Loki logging (#3183)
* Node: Loki logging

* Node: clean up loki stuff

* fix go.mod

* Code review rework

* Add reference to metrics used by loki

* Minor tweak

---------

Co-authored-by: tbjump <unknown>
2023-07-12 14:51:01 -05:00
tbjump 32524700ad node/telemetry: fix test 2023-07-10 07:09:16 -07:00
tbjump f311517dcf node/telemetry: Fix message encoding for Google Cloud Logging 2023-03-09 15:07:10 -05:00
tbjump 6def9b306c
node/telemetry: fix nullpointer, _privateLogEntry, tests (#2482)
1. Fix a nullpointer dereference bug caused by not cloning everything in (enc *guardianTelemetryEncoder) Clone()
2. Fix a bug that caused logs marked with _privateLogEntry to still be sent to telemetry because when a child logger is created (logger.With(zap.Bool("_privateLogEntry", true))) the extra fields will go into the encoder's buffer and will not be passed to EncodeEntry(entry zapcore.Entry, fields []zapcore.Field). This bug had no production impact because the telemetry logger was broken (see (1))
3. make the telemetry module testable and add unit tests

Co-authored-by: tbjump <>
2023-03-08 11:58:51 -08:00