Skip to content

7.0.0

Compare
Choose a tag to compare
@ogaca-dd ogaca-dd released this 13 Oct 13:18
· 58 commits to master since this release
ded592e

7.0.0 / 10-13-2021

Breaking changes

Enable client-side aggregation by default for simple metric types. See #172.

By default, metrics are aggregated before they are sent. For example, instead of sending 3 times my_metric:10|c|#tag1:value, DogStatsD client sends my_metric:30|c|#tag1:value once. You can disable client-side aggregation by setting ClientSideAggregation property to null.
For more details about how client-side aggregation works see #134.

Enabling client-side aggregation has the benefit of reducing the network usage and also reducing the load for the DataDog Agent.

When an application sends a lot of different contexts but each context appear with a very low frequency, then enabling client-side aggregation may take more memory and more CPU. A context identifies a metric name, a tag sets and a metric type. The metric datadog.dogstatsd.client.aggregated_context reported by DogStatsD C# client counts the number of contexts in memory used for client-side aggregation. There is also the metric datadog.dogstatsd.client.metrics_by_type that represents the number of metrics submitted by the client before aggregation.

Set good default values for UDS and UDP buffer sizes. See #170.

This PR changes the default values for unix domain socket and UDP buffer sizes.
In most cases, this change should work out of the box. Unlike Windows and Linux, on some operating systems like MacOS, the maximum unix domain socket buffer size is lower than 8192. For these systems you have to set StatsdMaxUnixDomainSocketPacketSize to the maximum supported value.

Changes

  • [BUGFIX] Update links to https://docs.datadoghq.com. See #171.
  • [IMPROVEMENT] Add end of line separator after each message. See #169.
  • [IMPROVEMENT] Add benchmark for client side aggregation. See #168.
  • [BUGFIX] Fix the implementation of MetricStatsKey.GetHashCode(). See #167.
  • [IMPROVEMENT] Update client side flush interval from 3s to 2s. See #166.
  • [BUGFIX] For event, use the size of the title and the text in UTF8. See #165.
  • [IMPROVEMENT] Performance improvements. See #164.
  • [FEATURE] Add benchmarks. See #163.
  • [IMPROVEMENT] Improve performance. See #162.
  • [FEATURE] Add the telemetry metric aggregated_context_by_type. See #161.
  • [IMPROVEMENT] Minor grammar update in comments. See #160 (Thanks @shreyamsh).
  • [IMPROVEMENT] Use Thread.Sleep instead of Task.Delay when possible. See #159 (Thanks @kevingosse).
  • [IMPROVEMENT] Remove System.Net.NameResolution for netstandard2.0. See #155 (Thanks @fjmorel ).
  • [IMPROVEMENT] Use dedicated threads for background workers. See #151 (Thanks @kevingosse).