Commit 93ab35e
Migrate datadog-serverless-trace-mini-agent from libdatadog to serverless-components as datadog-serverless-compat (#9)
* Serverless Trace Mini Agent (#124)
* Mini Agent: add trace normalization, root span calculation, logging (#130)
* Mini Agent: Modify flushing logic, Serverless root span tags (#133)
* Mini Agent: Trace stats (#139)
* Mini Agent: Verify GCP Env (#142)
* Reformat License and add SPDX headers
* Make verify timeout test in datadog-trace-mini-agent trigger timeout
* Only setting the timeout to 0 ms is not enough, and there was a race
in the test between the dns lookup and the timeout that intermittently
failed the test (most likely on Windows).
* Enable all benchmarks
* bump versions of datadog-serverless-trace-mini-agent and datadog-trace-mini-agent to 0.5.0 (#528)
* [Serverless Mini Agent] Add _dd.mini_agent_version tag to all spans for Azure Functions, Google Cloud Functions, and Azure Spring Apps (#548)
* add _dd.mini_agent_version to spans in all environments
* apply formatting
* bump datadog-serverless-trace-mini-agent version to 0.6.0 (#555)
* [Serverless Mini Agent] bump version to 0.6.1 (#575)
* [Serverless Mini Agent] Use DogStatsD in Serverless (#616)
* use dogstatsd in serverless
* convert env var value to lowercase and nest dogstatsd logic
* refactor to move loop outside of conditional dogstatsd block
* add environment variables for hardcoded values and refactor start_dogstatsd
* fix unit test
* add env var for default dogstatsd port
* bump datadog-serverless-trace-mini-agent version to 0.7.0 (#623)
* feat: Support DD_HTTP_PROXY and DD_HTTPS_PROXY (#631)
* feat: Support DD_HTTP_PROXY and DD_HTTPS_PROXY
* fix: fmt
* feat: honor dd_proxy
* bump datadog-serverless-trace-mini-agent version to 0.7.1 (#633)
* bump datadog-serverless-trace-mini-agent version to 0.7.2 (#635)
* Upstream dogstatsd refactors (#617)
* feat: upstream dogstatsd from datadog lambda extension
* add: stand alone dogstatsd binary as example
* fix: imports
* fix: make test utils public
* fix: more test utils public
* fix: make entry public
* fix: clippy
* fix: make test config public
* Revert "fix: make test config public"
This reverts commit 7dc979979d85c665767906030f91253725850f30.
* fix: make fields public for tests and assertions
* refactor: remove unused error
* refactor: do one step parsing
* fix: duplicate dependencies from conflicts
* refactor: use type for sorted tags and ustr
* fix: statsd parsing and tests
* format: format and clippy
test: fix test format with # for tags. It also changed the byte wise
test expected result
* fix: use only minimum regexp
* fix: increase to 10k context size, lost in refactors/moving
* refactor: update license
* fix: remove custom toolchain
* style: fix comment too long not picked up by rustfmt
* fix: restore previous cargo.lock
* fix: missing error dep
* fix: use empty tags
* fix: update license
* fix: nightly rustc 1.83 format
* fix: clippy
* fix: do not use a map, support duplicate tag values
---------
Co-authored-by: Taegyun Kim <taegyun.kim@datadoghq.com>
* Support http-proxy for trace agent, remove proxy from dsd (#658)
* feat: support HTTPS_PROXY for traces
* fix: https_proxy only.
* fix: maybe native-tls works in lambda?
* feat: try rust-tls
* fix: rusttls oops
* fix: reee it's rustls why
* fix: default-features must be false
* WIP: debug log, will revert
* fix: reqwest honors system proxies, hyper doesn't seem to. Only proxy https traffic
* fix: revert hyper-proxy, just use system proxy
* fix: revert proxy, use system
* fix: revert hyper-proxy, use system proxy
* fix: revert senddata proxy change from tests
* Revert "fix: revert senddata proxy change from tests"
This reverts commit 105000853f86dd46c39914434907452d9ca05b60.
* Revert "fix: revert hyper-proxy, use system proxy"
This reverts commit d9ebdc7e3cd68f046a4e8d981ac0564b34458983.
* Revert "fix: revert proxy, use system"
This reverts commit e4a8e18c14b56f8b889aec23b40cf3ccaf511639.
* Revert "fix: revert hyper-proxy, just use system proxy"
This reverts commit f8ed3005f75bdb3a4a4fb35dc52f499206b8d2b9.
* fix: re-commit tests
* fix: fmt
* feat: license
* feat: Wrap proxy in feature flag
* fix: fmt
* fix: not sure why the arg is needed in create_send_data
* fix: no api changes for public interfaces
* fix: None
* fix: allow unused
* fix: None for update_send_results_example
* fix: remove unused error import
* bump datadog-serverless-trace-mini-agent version to 0.8.0 (#677)
* feat: Prefer DD_PROXY_HTTPS over HTTPS_PROXY (#673)
* feat: Prefer DD_PROXY_HTTPS over HTTPS_PROXY
* fix: no proxy on ints
* fix: clippy thx
* Increase DogStatsD Buffer Size and Pattern Match Container Ids (#698)
* show dogstatsd logs in serverless mini agent
* increase buffer size to 8192 bytes
* update metric pattern to exclude service checks and to account for container ids
* exclude events from being parsed
* add comment for 8KB max buffer size matching default value in Go Agent
* lazily initialize static regex for dogstatsd metrics
* minor refactors
* add unit tests
* remove explicit drops
* bump datadog-serverless-trace-mini-agent version to 0.9.0 (#723)
* Svls 6036 set timeouts (#800)
* add fixed timeout to verify behavior
* add number of series and distro to flush
* tmp: add info on trace retries
* add more tmp debug log
* fix debug log
* Revert "fix debug log"
This reverts commit 4b44bb37ec4cc658d37fbeea820d399a4e924788.
* Revert "add more tmp debug log"
This reverts commit 536917b8c2f990365058c90a580937ee5e5f1894.
* Revert "tmp: add info on trace retries"
This reverts commit 5e4790794decea0f3f7e1ab523a9ab36e39820db.
* add timeout for client
* add todo
* fmt
* add constant for timeout duration
---------
Co-authored-by: jordan gonzález <30836115+duncanista@users.noreply.github.com>
* bump datadog-serverless-trace-mini-agent version to 0.10.0 (#824)
* chore: [SVLS-5992] clearer dogstatsd Flusher API (#822)
Co-authored-by: jordan gonzález <30836115+duncanista@users.noreply.github.com>
* Rename Mini Agent Version tag to Serverless Compat Version (#830)
* add _dd.serverless_compat_version span tag
* remove _dd.mini_agent_version tag from spans
* bump datadog-serverless-trace-mini-agent to 0.11.0 (#845)
* don't set serverless compat version from binary (#872)
* bump datadog-serverless-trace-mini-agent to 0.12.0 (#873)
* [trace-mini-agent] add trace aggregator (#907)
* add `aggregator.rs`
adds an aggregator which gives batches limited by intake payload size
* update `TraceFlusher` to use the `TraceAggregator`
* make `MiniAgent` use `TraceAggregator` on `TraceFlusher`
* fmt + clippy
* add license
* ekump/APMSP-1827 add warnings for panics (#915)
Add clippy warnings and allows for panic macros to most crates
Add an extension crate for mutex in ddcommon to isolate the unwrap to one location in code to avoid the allow annotations. We aren't going to stop unwrapping mutexes anytime soon.
Replace use of lazy_static with OnceLock for ddcommon, ddtelemetry, live-debugger, tools, sidecar
* Push retry strategy into client (#940)
(serverless) feature: Push retry strategy to libdatadog to avoid re-compressing
* Remove Serverless Specific DogStatsD Server Implementation (#973)
* remove serverless specific dogstatsd server implementation
* remove dogstatsd version from dependency
* Add origin tag to metrics emitted from mini agent (#982)
* add origin tag to metrics emitted from mini agent
* add dd.origin tag to metrics emitted from mini agent
* chore(serverless): update components to drop hashbrown v0.14 (#1013)
* rename to serverless-compat, pin dependencies with libdatadog commit hash or serverless-components path
* use trace_agent instead of datadog_trace_mini_agent
* remove version for datadog-serverless-compat
* add release profile
* add description to datadog-serverless-compat crate
---------
Co-authored-by: David Lee <thedavl2001@gmail.com>
Co-authored-by: Björn Antonsson <bjorn.antonsson@datadoghq.com>
Co-authored-by: Aleksandr Pasechnik <aleksandr.pasechnik@datadoghq.com>
Co-authored-by: AJ Stuyvenberg <astuyve@gmail.com>
Co-authored-by: alexgallotta <5581237+alexgallotta@users.noreply.github.com>
Co-authored-by: Taegyun Kim <taegyun.kim@datadoghq.com>
Co-authored-by: jordan gonzález <30836115+duncanista@users.noreply.github.com>
Co-authored-by: Edmund Kump <edmund.kump@datadoghq.com>
Co-authored-by: Levi Morrison <levi.morrison@datadoghq.com>1 parent 7867680 commit 93ab35e
File tree
4 files changed
+317
-1
lines changed- crates/serverless-compat
- src
4 files changed
+317
-1
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
0 commit comments