Skip to content

Commit

Permalink
Fix LoggingBackend -> LoggingMetrics in HISTORY
Browse files Browse the repository at this point in the history
  • Loading branch information
willkg committed Oct 30, 2024
1 parent 8822b6f commit 1a3fbfd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,30 @@ History

* Dropped support for Python 3.8 (#160)

* Changed timestamp field in LoggingBackend. The LoggingBackend now defaults to
not emitting a timestamp at all. If you would like a timestamp, you can
provide the ``"timestamp_mode"`` option with either ``"utc"`` for UTC
* Changed timestamp field in ``LoggingMetrics``. The ``LoggingMetrics`` now
defaults to not emitting a timestamp at all. If you would like a timestamp,
you can provide the ``"timestamp_mode"`` option with either ``"utc"`` for UTC
timestamps or ``"local"`` for local timezone timestamps.

No timestamp example::

LoggingBackend()
LoggingMetrics()

emits lines like::

METRICS|histogram|foo|4321|#key1:val

``"utc"`` timestamp mode example::

LoggingBackend(options={"timestamp_mode": "utc"})
LoggingMetrics(options={"timestamp_mode": "utc"})

emits lines like::

METRICS|2017-03-06T11:30:00+00:00:00|histogram|foo|4321|#key1:val

``"local"`` timestamp mode example::

LoggingBackend(options={"timestamp_mode": "local"})
LoggingMetrics(options={"timestamp_mode": "local"})

emits lines like::

Expand Down

0 comments on commit 1a3fbfd

Please sign in to comment.