Commit Graph

10 Commits

Author SHA1 Message Date
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 6a231e8149 node: add options --telemetryServiceAccountFile and --telemetryProject 2023-05-24 09:52:58 -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
tbjump 73841556ba
node: add request logging with --publicRpcLogDetail and --logPublicRpcToTelemetry (#2390)
Release Notes
New guardiand cli options:
--publicRpcLogDetail [string]
none -- no logging of gRPC requests at all
minimal -- only log gRPC methods
full (default) -- additionally log user-agent and gRPC request payload
--logPublicRpcToTelemetry [bool]
false do not send publicrpc logs to Google Cloud Logging
true (default) -- (current behavior)

Co-authored-by: tbjump <>
2023-03-01 07:10:04 -08:00
jumpsiegel 091ee0877d
WH-1934: upgrade golang to 1.19 (#1941)
* upgrade to golang 1.19.3

Co-authored-by: tbjump <>
Co-authored-by: tbjump <unknown>
2022-11-28 07:48:27 -06:00
tbjump 4575fe05d9
Better lint and formatting (#1263)
Enforce goimports, add tooling and documentation, and run it on the repo.
2022-06-21 12:18:16 -07:00
Leo 07c599ab68 node/pkg/telemetry: reduce log level to INFO
It appears that GCP Cloud Logging cannot handle the volume of logs
we're throwing at it... full text search slows to a crawl (LOL)

Reduce log level until we can move to something else.

commit-id:b71c3467
2022-01-25 22:36:24 +01:00
Leo af2bd5be36 node/cmd: add public telemetry for logs
commit-id:582fc943
2022-01-11 15:10:12 +01:00