Skip to content

Commit

Permalink
Merge branch 'master' into gai
Browse files Browse the repository at this point in the history
  • Loading branch information
vickenty committed Sep 25, 2024
2 parents 70b3d02 + ab20e29 commit b81e8a7
Show file tree
Hide file tree
Showing 13 changed files with 137 additions and 116 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
name: "Ensure labels"

permissions:
pull-requests: read

on: # yamllint disable-line rule:truthy
pull_request:
types:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: "CodeQL"

permissions:
contents: read
checks: write

on:
push:
branches: [ master ]
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
name: "Pull Request Labeler"

permissions:
contents: read
pull-requests: write

on:
- pull_request

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Build

permissions:
contents: write
pull-requests: write

on:
pull_request:
release:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Configuration for https://github.com/actions/stale

name: "Stale issues and pull requests"

permissions:
contents: write
issues: write
pull-requests: write

on:
schedule:
- cron: "0 5 * * *"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: test

permissions:
contents: read

on:
push:
branches:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test_integration.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Run Integration Tests

permissions:
contents: read

on: # yamllint disable-line rule:truthy
pull_request:
types:
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## 0.50.1 / 2024-09-18

* [Added] Add the ability for buffering and aggregation to work at the same time. See [#851](https://github.com/DataDog/datadogpy/pull/851).

## v0.50.0 / 2024-08-20

* [Added] Add client side aggregation. See [#844](https://github.com/DataDog/datadogpy/pull/844).
* [Added] Add metric object type. See [#837](https://github.com/DataDog/datadogpy/pull/837).
* [Added] Support passing Unix timestamps to dogstatsd. See [#831](https://github.com/DataDog/datadogpy/pull/831).
* [Fixed] Fix a potential deadlock on fork. See [#836](https://github.com/DataDog/datadogpy/pull/836).
* [Changed] feat(origin detection): send both container ID and Entity ID. See [#828](https://github.com/DataDog/datadogpy/pull/828).

## 0.49.1 / 2024-03-18

* [Fixed] Fix potential metric loss when open_buffer is combined with disable_buffering=False. See [#820](https://github.com/DataDog/datadogpy/pull/820).
Expand Down
2 changes: 1 addition & 1 deletion RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This project does not have a strict release schedule. However, we would make a r
Our team will trigger the release pipeline.

### Prerequisite
- Install [datadog_checks_dev](https://datadog-checks-base.readthedocs.io/en/latest/datadog_checks_dev.cli.html#installation) using Python 3.
- Install [datadog_checks_dev](https://datadoghq.dev/integrations-core/setup/#ddev) using Python 3.
- Setup PyPI, see the internal documentation for more details

### Update Changelog and version
Expand Down
15 changes: 8 additions & 7 deletions datadog/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ def initialize(
api_host=None, # type: Optional[str]
statsd_host=None, # type: Optional[str]
statsd_port=None, # type: Optional[int]
statsd_disable_aggregator=True, # type: bool
statsd_disable_aggregation=True, # type: bool
statsd_disable_buffering=True, # type: bool
statsd_aggregation_flush_interval=2, # type: float
statsd_aggregation_flush_interval=0.3, # type: float
statsd_use_default_route=False, # type: bool
statsd_socket_path=None, # type: Optional[str]
statsd_namespace=None, # type: Optional[str]
Expand Down Expand Up @@ -78,12 +78,13 @@ def initialize(
(default: True).
:type statsd_disable_buffering: boolean
:param statsd_disable_aggregator: Enable/disable statsd client aggregation support
:param statsd_disable_aggregation: Enable/disable statsd client aggregation support
(default: True).
:type statsd_disable_aggregator: boolean
:type statsd_disable_aggregation: boolean
:param statsd_aggregation_flush_interval: Sets the flush interval for aggregation
(default: 2 seconds)
:param statsd_aggregation_flush_interval: If aggregation is enabled, set the flush interval for
aggregation/buffering
(default: 0.3 seconds)
:type statsd_aggregation_flush_interval: float
:param statsd_use_default_route: Dynamically set the statsd host to the default route
Expand Down Expand Up @@ -138,7 +139,7 @@ def initialize(
if statsd_constant_tags:
statsd.constant_tags += statsd_constant_tags

if statsd_disable_aggregator:
if statsd_disable_aggregation:
statsd.disable_aggregation()
else:
statsd.enable_aggregation(statsd_aggregation_flush_interval)
Expand Down
Loading

0 comments on commit b81e8a7

Please sign in to comment.