grow-datadog-logs 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- grow_datadog_logs-0.1.0/.gitignore +17 -0
- grow_datadog_logs-0.1.0/LICENSE +202 -0
- grow_datadog_logs-0.1.0/NOTICE +75 -0
- grow_datadog_logs-0.1.0/PKG-INFO +97 -0
- grow_datadog_logs-0.1.0/README.md +47 -0
- grow_datadog_logs-0.1.0/pyproject.toml +134 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/__init__.py +58 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/_core/__init__.py +115 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/_core/cancel.py +62 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/_core/config.py +157 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/_core/env.py +146 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/_core/errors.py +204 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/_core/health.py +99 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/_core/hooks.py +147 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/_core/http.py +929 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/_core/redaction.py +216 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/_core/resources.py +53 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/_core/retry.py +91 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/_core/useragent.py +16 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/_datadog_http.py +132 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/_logging/__init__.py +99 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/_logging/_adapters.py +171 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/_logging/_batch.py +611 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/_logging/_client.py +313 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/_logging/_exporter.py +38 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/_logging/_model.py +238 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/_logging/_query.py +370 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/_logging/_redaction.py +88 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/_version.py +3 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/client.py +518 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/config.py +230 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/exporter.py +264 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/mapping.py +415 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/py.typed +0 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/query.py +941 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/sites.py +79 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/testing/__init__.py +18 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/testing/logging_conformance.py +126 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/testing/memory_logs.py +213 -0
- grow_datadog_logs-0.1.0/src/grow_datadog_logs/testing/runner.py +703 -0
- grow_datadog_logs-0.1.0/tests/_support.py +197 -0
- grow_datadog_logs-0.1.0/tests/conftest.py +16 -0
- grow_datadog_logs-0.1.0/tests/fixtures/aggregateLogs.401_missing_keys.json +27 -0
- grow_datadog_logs-0.1.0/tests/fixtures/aggregateLogs.count_by_service.json +67 -0
- grow_datadog_logs-0.1.0/tests/fixtures/aggregateLogs.paged.json +65 -0
- grow_datadog_logs-0.1.0/tests/fixtures/aggregateLogs.timeseries.json +69 -0
- grow_datadog_logs-0.1.0/tests/fixtures/fakeintake.payloads.400_missing_endpoint.json +21 -0
- grow_datadog_logs-0.1.0/tests/fixtures/fakeintake.payloads.raw.json +25 -0
- grow_datadog_logs-0.1.0/tests/fixtures/fakeintake.payloads.typed.json +41 -0
- grow_datadog_logs-0.1.0/tests/fixtures/fakeintake.payloads.typed_400_after_object_body.json +26 -0
- grow_datadog_logs-0.1.0/tests/fixtures/fakeintake.payloads.unhandled_route_json.json +25 -0
- grow_datadog_logs-0.1.0/tests/fixtures/fakeintake.routestats.ok.json +28 -0
- grow_datadog_logs-0.1.0/tests/fixtures/fakeintake.unknownGet.default.json +23 -0
- grow_datadog_logs-0.1.0/tests/fixtures/health.fakeintake.ok.json +21 -0
- grow_datadog_logs-0.1.0/tests/fixtures/listStreams.indexes.json +37 -0
- grow_datadog_logs-0.1.0/tests/fixtures/searchLogs.400_invalid_query.json +34 -0
- grow_datadog_logs-0.1.0/tests/fixtures/searchLogs.401_missing_keys.json +27 -0
- grow_datadog_logs-0.1.0/tests/fixtures/searchLogs.403_invalid_keys.json +29 -0
- grow_datadog_logs-0.1.0/tests/fixtures/searchLogs.429_rate_limited.json +42 -0
- grow_datadog_logs-0.1.0/tests/fixtures/searchLogs.empty.json +43 -0
- grow_datadog_logs-0.1.0/tests/fixtures/searchLogs.fakeintake_default.json +41 -0
- grow_datadog_logs-0.1.0/tests/fixtures/searchLogs.page1.json +110 -0
- grow_datadog_logs-0.1.0/tests/fixtures/searchLogs.page2_last.json +78 -0
- grow_datadog_logs-0.1.0/tests/fixtures/searchLogs.timeout_status.json +43 -0
- grow_datadog_logs-0.1.0/tests/fixtures/searchLogs.warnings_partial.json +79 -0
- grow_datadog_logs-0.1.0/tests/fixtures/send.400_injected.json +33 -0
- grow_datadog_logs-0.1.0/tests/fixtures/send.401_injected.json +33 -0
- grow_datadog_logs-0.1.0/tests/fixtures/send.403_get_method.json +28 -0
- grow_datadog_logs-0.1.0/tests/fixtures/send.403_injected.json +34 -0
- grow_datadog_logs-0.1.0/tests/fixtures/send.403_invalid_key.json +33 -0
- grow_datadog_logs-0.1.0/tests/fixtures/send.403_missing_key.json +28 -0
- grow_datadog_logs-0.1.0/tests/fixtures/send.408_injected.json +33 -0
- grow_datadog_logs-0.1.0/tests/fixtures/send.413_injected.json +33 -0
- grow_datadog_logs-0.1.0/tests/fixtures/send.429_injected.json +33 -0
- grow_datadog_logs-0.1.0/tests/fixtures/send.500_injected.json +33 -0
- grow_datadog_logs-0.1.0/tests/fixtures/send.503_injected.json +33 -0
- grow_datadog_logs-0.1.0/tests/fixtures/send.datadog_202.json +33 -0
- grow_datadog_logs-0.1.0/tests/fixtures/send.datadog_413.json +29 -0
- grow_datadog_logs-0.1.0/tests/fixtures/send.single.accepted.json +50 -0
- grow_datadog_logs-0.1.0/tests/fixtures/sendBatch.gzip.accepted.json +29 -0
- grow_datadog_logs-0.1.0/tests/fixtures/validateApiKey.403_injected.json +28 -0
- grow_datadog_logs-0.1.0/tests/fixtures/validateApiKey.403_invalid_key.json +27 -0
- grow_datadog_logs-0.1.0/tests/fixtures/validateApiKey.403_missing_key.json +25 -0
- grow_datadog_logs-0.1.0/tests/fixtures/validateApiKey.datadog_ok.json +24 -0
- grow_datadog_logs-0.1.0/tests/fixtures/validateApiKey.ok.json +26 -0
- grow_datadog_logs-0.1.0/tests/test_client.py +427 -0
- grow_datadog_logs-0.1.0/tests/test_conformance_core.py +393 -0
- grow_datadog_logs-0.1.0/tests/test_core_async.py +243 -0
- grow_datadog_logs-0.1.0/tests/test_core_basics.py +415 -0
- grow_datadog_logs-0.1.0/tests/test_core_misc.py +97 -0
- grow_datadog_logs-0.1.0/tests/test_core_options.py +484 -0
- grow_datadog_logs-0.1.0/tests/test_core_transport.py +595 -0
- grow_datadog_logs-0.1.0/tests/test_exporter.py +211 -0
- grow_datadog_logs-0.1.0/tests/test_logging_adapters.py +183 -0
- grow_datadog_logs-0.1.0/tests/test_logging_async_batch.py +348 -0
- grow_datadog_logs-0.1.0/tests/test_logging_batch.py +536 -0
- grow_datadog_logs-0.1.0/tests/test_logging_client.py +237 -0
- grow_datadog_logs-0.1.0/tests/test_logging_conformance.py +109 -0
- grow_datadog_logs-0.1.0/tests/test_logging_model.py +185 -0
- grow_datadog_logs-0.1.0/tests/test_logging_query.py +283 -0
- grow_datadog_logs-0.1.0/tests/test_mapping.py +211 -0
- grow_datadog_logs-0.1.0/tests/test_query.py +484 -0
- grow_datadog_logs-0.1.0/tests/test_tools.py +74 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.venv/
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*.egg-info/
|
|
5
|
+
build/
|
|
6
|
+
dist/
|
|
7
|
+
site/
|
|
8
|
+
coverage/
|
|
9
|
+
.coverage
|
|
10
|
+
.coverage.*
|
|
11
|
+
.pytest_cache/
|
|
12
|
+
.mypy_cache/
|
|
13
|
+
.ruff_cache/
|
|
14
|
+
# copied from the repo root by `make pack`
|
|
15
|
+
/LICENSE
|
|
16
|
+
/NOTICE
|
|
17
|
+
integration/.venv/
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2026 Grow Codes
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
Grow Codes SDK for Datadog Log Management (datadog-logs)
|
|
2
|
+
Copyright 2026 Grow Codes <opensource@grow.codes>
|
|
3
|
+
|
|
4
|
+
This product is licensed under the Apache License, Version 2.0 (see LICENSE).
|
|
5
|
+
Source: https://github.com/grow-codes-packages/datadog-logs
|
|
6
|
+
Documentation: https://grow-codes-packages.github.io/datadog-logs/
|
|
7
|
+
|
|
8
|
+
-------------------------------------------------------------------------------
|
|
9
|
+
No responsibility / disclaimer
|
|
10
|
+
-------------------------------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
This software is provided "AS IS", WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
|
13
|
+
either express or implied, including, without limitation, any warranties or
|
|
14
|
+
conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
15
|
+
PARTICULAR PURPOSE. You are solely responsible for determining whether it is
|
|
16
|
+
appropriate to use this software and you assume all risks of doing so.
|
|
17
|
+
|
|
18
|
+
To the maximum extent permitted by applicable law, Grow Codes is not
|
|
19
|
+
responsible for any damage, data loss, security incident, outage or cost
|
|
20
|
+
(including service, cloud, licence or usage charges) that results from using,
|
|
21
|
+
misusing or being unable to use this software, the services it connects to, or
|
|
22
|
+
any configuration, credential or data handled through it, whether in contract,
|
|
23
|
+
tort or otherwise, even if Grow Codes has been advised of the possibility of
|
|
24
|
+
such damage. See sections 7 and 8 of the Apache License, Version 2.0.
|
|
25
|
+
|
|
26
|
+
-------------------------------------------------------------------------------
|
|
27
|
+
Trademarks
|
|
28
|
+
-------------------------------------------------------------------------------
|
|
29
|
+
|
|
30
|
+
This project is an independent, community-maintained client library. It is not
|
|
31
|
+
affiliated with, endorsed or sponsored by Datadog, Inc.
|
|
32
|
+
Datadog and Datadog Log Management are trademarks of Datadog, Inc. All other product names, logos and
|
|
33
|
+
brands are the property of their respective owners and are used for
|
|
34
|
+
identification purposes only.
|
|
35
|
+
|
|
36
|
+
The Datadog Log Management server itself is licensed separately by its owner:
|
|
37
|
+
Proprietary SaaS; Datadog client libraries Apache-2.0.
|
|
38
|
+
This SDK contains no Datadog Log Management server code; it talks to the service over its
|
|
39
|
+
public network API.
|
|
40
|
+
|
|
41
|
+
-------------------------------------------------------------------------------
|
|
42
|
+
Third-party attributions
|
|
43
|
+
-------------------------------------------------------------------------------
|
|
44
|
+
|
|
45
|
+
The packages in this repository depend on third-party open-source libraries,
|
|
46
|
+
each under its own licence (all on the allowlist in AGENTS.md: Apache-2.0, MIT,
|
|
47
|
+
BSD-2-Clause, BSD-3-Clause, ISC, Zlib, Unicode-3.0, Unicode-DFS-2016, 0BSD,
|
|
48
|
+
CC0-1.0, MPL-2.0). The full dependency lists and their licences are produced by
|
|
49
|
+
"make license" in each language folder:
|
|
50
|
+
|
|
51
|
+
typescript/ npm dependencies (license-checker-rseidelsohn)
|
|
52
|
+
rust/ crates.io dependencies (cargo-deny, rust/deny.toml)
|
|
53
|
+
go/ Go modules (go-licenses)
|
|
54
|
+
python/ PyPI dependencies (pip-licenses)
|
|
55
|
+
java/ Maven dependencies (license-maven-plugin)
|
|
56
|
+
|
|
57
|
+
Code copied or adapted from other projects is listed below with its source,
|
|
58
|
+
copyright and licence.
|
|
59
|
+
|
|
60
|
+
CODE_OF_CONDUCT.md is adapted from the Contributor Covenant, version 2.1,
|
|
61
|
+
https://www.contributor-covenant.org, licensed under CC BY 4.0.
|
|
62
|
+
|
|
63
|
+
Datadog API names. The packages use the field names, endpoint paths, header
|
|
64
|
+
names, site host names and enum values of Datadog's public HTTP API (Logs
|
|
65
|
+
intake API v2, Logs Search and Aggregate API v2, /api/v1/validate and the log
|
|
66
|
+
index configuration) as documented by Datadog, Inc. in its public API
|
|
67
|
+
reference and its OpenAPI specification (datadog-api-spec, Apache-2.0,
|
|
68
|
+
Copyright Datadog, Inc.). No Datadog source code is included. Recorded
|
|
69
|
+
response fixtures in the test folders follow those documented shapes.
|
|
70
|
+
|
|
71
|
+
Test-only tooling (not distributed in any package):
|
|
72
|
+
|
|
73
|
+
datadog/fakeintake (Docker image, used by docker/compose.service.yml for the
|
|
74
|
+
integration suite), part of github.com/DataDog/datadog-agent,
|
|
75
|
+
Copyright Datadog, Inc., licensed under the Apache License, Version 2.0.
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: grow-datadog-logs
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Grow Codes SDK for Datadog Log Management (unofficial, community maintained)
|
|
5
|
+
Project-URL: Homepage, https://grow-codes-packages.github.io/datadog-logs/
|
|
6
|
+
Project-URL: Documentation, https://grow-codes-packages.github.io/datadog-logs/
|
|
7
|
+
Project-URL: Repository, https://github.com/grow-codes-packages/datadog-logs
|
|
8
|
+
Project-URL: Issues, https://github.com/grow-codes-packages/datadog-logs/issues
|
|
9
|
+
Author-email: Grow Codes <opensource@grow.codes>
|
|
10
|
+
Maintainer-email: Grow Codes <opensource@grow.codes>
|
|
11
|
+
License-Expression: Apache-2.0
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
License-File: NOTICE
|
|
14
|
+
Keywords: datadog-logs,grow-codes,logging,sdk
|
|
15
|
+
Classifier: Development Status :: 3 - Alpha
|
|
16
|
+
Classifier: Intended Audience :: Developers
|
|
17
|
+
Classifier: Operating System :: OS Independent
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
25
|
+
Classifier: Typing :: Typed
|
|
26
|
+
Requires-Python: >=3.10
|
|
27
|
+
Requires-Dist: httpx<1,>=0.27
|
|
28
|
+
Requires-Dist: opentelemetry-api<2,>=1.27
|
|
29
|
+
Requires-Dist: opentelemetry-exporter-otlp-proto-http<2,>=1.27
|
|
30
|
+
Requires-Dist: opentelemetry-sdk<2,>=1.27
|
|
31
|
+
Provides-Extra: all
|
|
32
|
+
Requires-Dist: structlog>=24.1; extra == 'all'
|
|
33
|
+
Provides-Extra: dev
|
|
34
|
+
Requires-Dist: build>=1.2; extra == 'dev'
|
|
35
|
+
Requires-Dist: hatchling>=1.25; extra == 'dev'
|
|
36
|
+
Requires-Dist: mkdocs>=1.6; extra == 'dev'
|
|
37
|
+
Requires-Dist: mkdocstrings[python]>=0.27; extra == 'dev'
|
|
38
|
+
Requires-Dist: mypy>=1.13; extra == 'dev'
|
|
39
|
+
Requires-Dist: pip-licenses>=5.0; extra == 'dev'
|
|
40
|
+
Requires-Dist: pytest-asyncio>=0.24; extra == 'dev'
|
|
41
|
+
Requires-Dist: pytest-cov>=5.0; extra == 'dev'
|
|
42
|
+
Requires-Dist: pytest>=8.3; extra == 'dev'
|
|
43
|
+
Requires-Dist: respx>=0.22; extra == 'dev'
|
|
44
|
+
Requires-Dist: ruff>=0.8; extra == 'dev'
|
|
45
|
+
Requires-Dist: structlog>=24.1; extra == 'dev'
|
|
46
|
+
Requires-Dist: twine>=6.1; extra == 'dev'
|
|
47
|
+
Provides-Extra: structlog
|
|
48
|
+
Requires-Dist: structlog>=24.1; extra == 'structlog'
|
|
49
|
+
Description-Content-Type: text/markdown
|
|
50
|
+
|
|
51
|
+
# grow-datadog-logs (Python)
|
|
52
|
+
|
|
53
|
+
Python SDK for [Datadog Log Management](https://grow-codes-packages.github.io/datadog-logs/) by Grow Codes.
|
|
54
|
+
Unofficial and community maintained; "Datadog Log Management" is a trademark of Datadog, Inc. Not affiliated with or endorsed by Datadog.
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
pip install grow-datadog-logs
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
```python
|
|
61
|
+
import grow_datadog_logs as sdk
|
|
62
|
+
|
|
63
|
+
# Reads DD_API_KEY, DD_APP_KEY, DD_SITE, DD_SERVICE, DD_ENV, DD_TAGS, GROW_DATADOG_LOGS_* ...
|
|
64
|
+
with sdk.DatadogLogsClient.from_env() as client:
|
|
65
|
+
assert client.validate_api_key()
|
|
66
|
+
logs = client.log_client(resource={"service.name": "checkout"}) # batching, gzip
|
|
67
|
+
logs.logger().info("user signed in", {"user": {"id": 42}})
|
|
68
|
+
logs.flush(10)
|
|
69
|
+
|
|
70
|
+
query = client.query() # needs the application key
|
|
71
|
+
page = query.search_logs('service:checkout "signed in"', from_="now-1h", limit=50)
|
|
72
|
+
counts = query.aggregate_logs(sdk.DatadogCompute("count"), [sdk.DatadogGroupBy("status")])
|
|
73
|
+
# close() flushed every log client
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
The async client has the same methods:
|
|
77
|
+
|
|
78
|
+
```python
|
|
79
|
+
import asyncio
|
|
80
|
+
from grow_datadog_logs import AsyncDatadogLogsClient
|
|
81
|
+
|
|
82
|
+
async def main() -> None:
|
|
83
|
+
async with AsyncDatadogLogsClient.from_env() as client:
|
|
84
|
+
print(await client.health())
|
|
85
|
+
|
|
86
|
+
asyncio.run(main())
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
- Python 3.10 or newer, typed (`py.typed`), `httpx` based, environment proxies ignored unless
|
|
90
|
+
configured.
|
|
91
|
+
- Retries with full-jitter backoff and `Retry-After`, connect/request/total timeouts,
|
|
92
|
+
cancellation, hooks and a silent-by-default `logging` logger named `grow_datadog_logs`.
|
|
93
|
+
- Credentials are wrapped in `Secret` and never appear in `repr()`, logs or error messages.
|
|
94
|
+
- `grow_datadog_logs.testing` ships in-memory fakes and the conformance runner.
|
|
95
|
+
|
|
96
|
+
Documentation: https://grow-codes-packages.github.io/datadog-logs/ ·
|
|
97
|
+
Source: https://github.com/grow-codes-packages/datadog-logs · Licence: Apache-2.0
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# grow-datadog-logs (Python)
|
|
2
|
+
|
|
3
|
+
Python SDK for [Datadog Log Management](https://grow-codes-packages.github.io/datadog-logs/) by Grow Codes.
|
|
4
|
+
Unofficial and community maintained; "Datadog Log Management" is a trademark of Datadog, Inc. Not affiliated with or endorsed by Datadog.
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
pip install grow-datadog-logs
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
```python
|
|
11
|
+
import grow_datadog_logs as sdk
|
|
12
|
+
|
|
13
|
+
# Reads DD_API_KEY, DD_APP_KEY, DD_SITE, DD_SERVICE, DD_ENV, DD_TAGS, GROW_DATADOG_LOGS_* ...
|
|
14
|
+
with sdk.DatadogLogsClient.from_env() as client:
|
|
15
|
+
assert client.validate_api_key()
|
|
16
|
+
logs = client.log_client(resource={"service.name": "checkout"}) # batching, gzip
|
|
17
|
+
logs.logger().info("user signed in", {"user": {"id": 42}})
|
|
18
|
+
logs.flush(10)
|
|
19
|
+
|
|
20
|
+
query = client.query() # needs the application key
|
|
21
|
+
page = query.search_logs('service:checkout "signed in"', from_="now-1h", limit=50)
|
|
22
|
+
counts = query.aggregate_logs(sdk.DatadogCompute("count"), [sdk.DatadogGroupBy("status")])
|
|
23
|
+
# close() flushed every log client
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
The async client has the same methods:
|
|
27
|
+
|
|
28
|
+
```python
|
|
29
|
+
import asyncio
|
|
30
|
+
from grow_datadog_logs import AsyncDatadogLogsClient
|
|
31
|
+
|
|
32
|
+
async def main() -> None:
|
|
33
|
+
async with AsyncDatadogLogsClient.from_env() as client:
|
|
34
|
+
print(await client.health())
|
|
35
|
+
|
|
36
|
+
asyncio.run(main())
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
- Python 3.10 or newer, typed (`py.typed`), `httpx` based, environment proxies ignored unless
|
|
40
|
+
configured.
|
|
41
|
+
- Retries with full-jitter backoff and `Retry-After`, connect/request/total timeouts,
|
|
42
|
+
cancellation, hooks and a silent-by-default `logging` logger named `grow_datadog_logs`.
|
|
43
|
+
- Credentials are wrapped in `Secret` and never appear in `repr()`, logs or error messages.
|
|
44
|
+
- `grow_datadog_logs.testing` ships in-memory fakes and the conformance runner.
|
|
45
|
+
|
|
46
|
+
Documentation: https://grow-codes-packages.github.io/datadog-logs/ ·
|
|
47
|
+
Source: https://github.com/grow-codes-packages/datadog-logs · Licence: Apache-2.0
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling>=1.25"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "grow-datadog-logs"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = "Grow Codes SDK for Datadog Log Management (unofficial, community maintained)"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = "Apache-2.0"
|
|
12
|
+
authors = [{ name = "Grow Codes", email = "opensource@grow.codes" }]
|
|
13
|
+
maintainers = [{ name = "Grow Codes", email = "opensource@grow.codes" }]
|
|
14
|
+
keywords = ["grow-codes", "sdk", "datadog-logs", "logging"]
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Development Status :: 3 - Alpha",
|
|
17
|
+
"Intended Audience :: Developers",
|
|
18
|
+
"Operating System :: OS Independent",
|
|
19
|
+
"Programming Language :: Python :: 3",
|
|
20
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
21
|
+
"Programming Language :: Python :: 3.10",
|
|
22
|
+
"Programming Language :: Python :: 3.11",
|
|
23
|
+
"Programming Language :: Python :: 3.12",
|
|
24
|
+
"Programming Language :: Python :: 3.13",
|
|
25
|
+
"Programming Language :: Python :: 3.14",
|
|
26
|
+
"Typing :: Typed",
|
|
27
|
+
]
|
|
28
|
+
dependencies = [
|
|
29
|
+
"httpx>=0.27,<1",
|
|
30
|
+
"opentelemetry-api>=1.27,<2",
|
|
31
|
+
"opentelemetry-sdk>=1.27,<2",
|
|
32
|
+
"opentelemetry-exporter-otlp-proto-http>=1.27,<2",
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
[project.optional-dependencies]
|
|
36
|
+
structlog = ["structlog>=24.1"]
|
|
37
|
+
# Every optional runtime extra (used by `make license`).
|
|
38
|
+
all = [
|
|
39
|
+
"grow-datadog-logs[structlog]",
|
|
40
|
+
]
|
|
41
|
+
dev = [
|
|
42
|
+
"twine>=6.1",
|
|
43
|
+
"build>=1.2",
|
|
44
|
+
"hatchling>=1.25",
|
|
45
|
+
"pytest>=8.3",
|
|
46
|
+
"pytest-asyncio>=0.24",
|
|
47
|
+
"pytest-cov>=5.0",
|
|
48
|
+
"respx>=0.22",
|
|
49
|
+
"ruff>=0.8",
|
|
50
|
+
"mypy>=1.13",
|
|
51
|
+
"pip-licenses>=5.0",
|
|
52
|
+
"mkdocs>=1.6",
|
|
53
|
+
"mkdocstrings[python]>=0.27",
|
|
54
|
+
"structlog>=24.1",
|
|
55
|
+
]
|
|
56
|
+
|
|
57
|
+
[project.urls]
|
|
58
|
+
Homepage = "https://grow-codes-packages.github.io/datadog-logs/"
|
|
59
|
+
Documentation = "https://grow-codes-packages.github.io/datadog-logs/"
|
|
60
|
+
Repository = "https://github.com/grow-codes-packages/datadog-logs"
|
|
61
|
+
Issues = "https://github.com/grow-codes-packages/datadog-logs/issues"
|
|
62
|
+
|
|
63
|
+
[tool.hatch.version]
|
|
64
|
+
path = "src/grow_datadog_logs/_version.py"
|
|
65
|
+
|
|
66
|
+
[tool.hatch.build.targets.wheel]
|
|
67
|
+
packages = ["src/grow_datadog_logs"]
|
|
68
|
+
|
|
69
|
+
[tool.hatch.build.targets.sdist]
|
|
70
|
+
include = ["src/", "tests/", "README.md", "LICENSE", "NOTICE", "pyproject.toml"]
|
|
71
|
+
|
|
72
|
+
# --------------------------------------------------------------------------- ruff
|
|
73
|
+
[tool.ruff]
|
|
74
|
+
target-version = "py310"
|
|
75
|
+
line-length = 100
|
|
76
|
+
src = ["src", "tests", "tools"]
|
|
77
|
+
extend-exclude = ["integration/.venv", "build", "dist", "site"]
|
|
78
|
+
|
|
79
|
+
[tool.ruff.lint]
|
|
80
|
+
select = ["E", "W", "F", "I", "B", "BLE", "UP", "S", "A", "C4", "SIM", "RET", "PT", "RUF", "N", "PL"]
|
|
81
|
+
ignore = [
|
|
82
|
+
"PLR0911", "PLR0912", "PLR0913", "PLR0915", "PLR2004", "PLW0603",
|
|
83
|
+
"S101", # assert is fine in tests and type narrowing
|
|
84
|
+
"S311", # random is used for jitter, not crypto
|
|
85
|
+
"RUF022", # __all__ grouped by topic, not sorted
|
|
86
|
+
"A004", # the SDK's TimeoutError intentionally shadows the builtin (SPEC 2.1)
|
|
87
|
+
"PLE1205", # SdkLogger.debug(msg, fields) is not a stdlib logging call
|
|
88
|
+
"PLR0917",
|
|
89
|
+
]
|
|
90
|
+
|
|
91
|
+
[tool.ruff.lint.per-file-ignores]
|
|
92
|
+
"tests/**" = ["S", "PLC0415", "N802", "B017", "PT011", "PT018", "N815", "RUF001", "RUF012", "SIM117"]
|
|
93
|
+
"integration/**" = ["S", "PLC0415", "PT011", "PT018", "RUF001", "RUF012", "SIM117"]
|
|
94
|
+
"tools/**" = ["S"]
|
|
95
|
+
|
|
96
|
+
[tool.ruff.format]
|
|
97
|
+
quote-style = "double"
|
|
98
|
+
|
|
99
|
+
# --------------------------------------------------------------------------- mypy
|
|
100
|
+
[tool.mypy]
|
|
101
|
+
python_version = "3.10"
|
|
102
|
+
strict = true
|
|
103
|
+
warn_unreachable = true
|
|
104
|
+
mypy_path = "src"
|
|
105
|
+
files = ["src/grow_datadog_logs", "tools"]
|
|
106
|
+
|
|
107
|
+
[[tool.mypy.overrides]]
|
|
108
|
+
module = ["respx.*"]
|
|
109
|
+
ignore_missing_imports = true
|
|
110
|
+
|
|
111
|
+
# --------------------------------------------------------------------------- pytest
|
|
112
|
+
[tool.pytest.ini_options]
|
|
113
|
+
minversion = "8.0"
|
|
114
|
+
testpaths = ["tests"]
|
|
115
|
+
asyncio_mode = "auto"
|
|
116
|
+
asyncio_default_fixture_loop_scope = "function"
|
|
117
|
+
addopts = "-ra --strict-markers"
|
|
118
|
+
filterwarnings = ["error::pytest.PytestUnraisableExceptionWarning"]
|
|
119
|
+
|
|
120
|
+
# --------------------------------------------------------------------------- coverage
|
|
121
|
+
[tool.coverage.run]
|
|
122
|
+
source = ["grow_datadog_logs"]
|
|
123
|
+
branch = true
|
|
124
|
+
parallel = false
|
|
125
|
+
|
|
126
|
+
[tool.coverage.report]
|
|
127
|
+
show_missing = true
|
|
128
|
+
skip_covered = true
|
|
129
|
+
exclude_also = [
|
|
130
|
+
"if TYPE_CHECKING:",
|
|
131
|
+
"@overload",
|
|
132
|
+
"raise NotImplementedError",
|
|
133
|
+
"\\.\\.\\.$",
|
|
134
|
+
]
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""Grow Codes SDK for Datadog Log Management.
|
|
2
|
+
|
|
3
|
+
>>> from grow_datadog_logs import DatadogLogsClient, DatadogLogsConfig
|
|
4
|
+
>>> client = DatadogLogsClient.from_env() # doctest: +SKIP
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from . import _core
|
|
8
|
+
from ._core import * # noqa: F403
|
|
9
|
+
from ._version import __version__
|
|
10
|
+
from .client import (
|
|
11
|
+
VALIDATE_PATH,
|
|
12
|
+
AsyncDatadogLogClient,
|
|
13
|
+
AsyncDatadogLogsClient,
|
|
14
|
+
DatadogLogClient,
|
|
15
|
+
DatadogLogsClient,
|
|
16
|
+
)
|
|
17
|
+
from .config import (
|
|
18
|
+
DEFAULT_INTAKE_URL,
|
|
19
|
+
DEFAULT_SOURCE,
|
|
20
|
+
DEFAULT_URL,
|
|
21
|
+
DatadogLogsConfig,
|
|
22
|
+
parse_tags,
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
__all__ = [
|
|
26
|
+
"__version__",
|
|
27
|
+
"DatadogLogsClient",
|
|
28
|
+
"AsyncDatadogLogsClient",
|
|
29
|
+
"DatadogLogClient",
|
|
30
|
+
"AsyncDatadogLogClient",
|
|
31
|
+
"DatadogLogsConfig",
|
|
32
|
+
"DEFAULT_URL",
|
|
33
|
+
"DEFAULT_INTAKE_URL",
|
|
34
|
+
"DEFAULT_SOURCE",
|
|
35
|
+
"VALIDATE_PATH",
|
|
36
|
+
"parse_tags",
|
|
37
|
+
]
|
|
38
|
+
__all__ += _core.__all__
|
|
39
|
+
|
|
40
|
+
from . import _logging # noqa: E402
|
|
41
|
+
from ._logging import * # noqa: E402, F403
|
|
42
|
+
|
|
43
|
+
__all__ += _logging.__all__
|
|
44
|
+
|
|
45
|
+
from . import exporter, mapping, query, sites # noqa: E402
|
|
46
|
+
from ._datadog_http import ( # noqa: E402
|
|
47
|
+
HEADER_API_KEY,
|
|
48
|
+
HEADER_APP_KEY,
|
|
49
|
+
RATE_LIMIT_RESET_HEADER,
|
|
50
|
+
map_datadog_error,
|
|
51
|
+
)
|
|
52
|
+
from .exporter import * # noqa: E402, F403
|
|
53
|
+
from .mapping import * # noqa: E402, F403
|
|
54
|
+
from .query import * # noqa: E402, F403
|
|
55
|
+
from .sites import * # noqa: E402, F403
|
|
56
|
+
|
|
57
|
+
__all__ += ["HEADER_API_KEY", "HEADER_APP_KEY", "RATE_LIMIT_RESET_HEADER", "map_datadog_error"]
|
|
58
|
+
__all__ += exporter.__all__ + mapping.__all__ + query.__all__ + sites.__all__
|