Skip to content

Commit b81e8a7

Browse files
committed
Merge branch 'master' into gai
2 parents 70b3d02 + ab20e29 commit b81e8a7

13 files changed

Lines changed: 137 additions & 116 deletions

File tree

.github/workflows/changelog.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: "Ensure labels"
2+
3+
permissions:
4+
pull-requests: read
5+
26
on: # yamllint disable-line rule:truthy
37
pull_request:
48
types:

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: "CodeQL"
22

3+
permissions:
4+
contents: read
5+
checks: write
6+
37
on:
48
push:
59
branches: [ master ]

.github/workflows/labeler.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
name: "Pull Request Labeler"
2+
3+
permissions:
4+
contents: read
5+
pull-requests: write
6+
27
on:
38
- pull_request
49

.github/workflows/release.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Build
22

3+
permissions:
4+
contents: write
5+
pull-requests: write
6+
37
on:
48
pull_request:
59
release:

.github/workflows/stale.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Configuration for https://github.com/actions/stale
22

33
name: "Stale issues and pull requests"
4+
5+
permissions:
6+
contents: write
7+
issues: write
8+
pull-requests: write
9+
410
on:
511
schedule:
612
- cron: "0 5 * * *"

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: test
22

3+
permissions:
4+
contents: read
5+
36
on:
47
push:
58
branches:

.github/workflows/test_integration.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Run Integration Tests
22

3+
permissions:
4+
contents: read
5+
36
on: # yamllint disable-line rule:truthy
47
pull_request:
58
types:

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## 0.50.1 / 2024-09-18
4+
5+
* [Added] Add the ability for buffering and aggregation to work at the same time. See [#851](https://github.com/DataDog/datadogpy/pull/851).
6+
7+
## v0.50.0 / 2024-08-20
8+
9+
* [Added] Add client side aggregation. See [#844](https://github.com/DataDog/datadogpy/pull/844).
10+
* [Added] Add metric object type. See [#837](https://github.com/DataDog/datadogpy/pull/837).
11+
* [Added] Support passing Unix timestamps to dogstatsd. See [#831](https://github.com/DataDog/datadogpy/pull/831).
12+
* [Fixed] Fix a potential deadlock on fork. See [#836](https://github.com/DataDog/datadogpy/pull/836).
13+
* [Changed] feat(origin detection): send both container ID and Entity ID. See [#828](https://github.com/DataDog/datadogpy/pull/828).
14+
315
## 0.49.1 / 2024-03-18
416

517
* [Fixed] Fix potential metric loss when open_buffer is combined with disable_buffering=False. See [#820](https://github.com/DataDog/datadogpy/pull/820).

RELEASING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This project does not have a strict release schedule. However, we would make a r
2121
Our team will trigger the release pipeline.
2222

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

2727
### Update Changelog and version

datadog/__init__.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ def initialize(
3737
api_host=None, # type: Optional[str]
3838
statsd_host=None, # type: Optional[str]
3939
statsd_port=None, # type: Optional[int]
40-
statsd_disable_aggregator=True, # type: bool
40+
statsd_disable_aggregation=True, # type: bool
4141
statsd_disable_buffering=True, # type: bool
42-
statsd_aggregation_flush_interval=2, # type: float
42+
statsd_aggregation_flush_interval=0.3, # type: float
4343
statsd_use_default_route=False, # type: bool
4444
statsd_socket_path=None, # type: Optional[str]
4545
statsd_namespace=None, # type: Optional[str]
@@ -78,12 +78,13 @@ def initialize(
7878
(default: True).
7979
:type statsd_disable_buffering: boolean
8080
81-
:param statsd_disable_aggregator: Enable/disable statsd client aggregation support
81+
:param statsd_disable_aggregation: Enable/disable statsd client aggregation support
8282
(default: True).
83-
:type statsd_disable_aggregator: boolean
83+
:type statsd_disable_aggregation: boolean
8484
85-
:param statsd_aggregation_flush_interval: Sets the flush interval for aggregation
86-
(default: 2 seconds)
85+
:param statsd_aggregation_flush_interval: If aggregation is enabled, set the flush interval for
86+
aggregation/buffering
87+
(default: 0.3 seconds)
8788
:type statsd_aggregation_flush_interval: float
8889
8990
:param statsd_use_default_route: Dynamically set the statsd host to the default route
@@ -138,7 +139,7 @@ def initialize(
138139
if statsd_constant_tags:
139140
statsd.constant_tags += statsd_constant_tags
140141

141-
if statsd_disable_aggregator:
142+
if statsd_disable_aggregation:
142143
statsd.disable_aggregation()
143144
else:
144145
statsd.enable_aggregation(statsd_aggregation_flush_interval)

0 commit comments

Comments
 (0)