libdatadog 23.0.0.1.0-x86_64-linux → 24.0.0.1.0-x86_64-linux
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.
- checksums.yaml +4 -4
- data/lib/libdatadog/version.rb +1 -1
- data/vendor/{libdatadog-23.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl → libdatadog-24.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu}/LICENSE-3rdparty.yml +11 -4
- data/vendor/{libdatadog-23.0.0 → libdatadog-24.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/common.h +49 -7
- data/vendor/{libdatadog-23.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl → libdatadog-24.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu}/include/datadog/crashtracker.h +78 -16
- data/vendor/{libdatadog-23.0.0 → libdatadog-24.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/lib/libdatadog_profiling.so +0 -0
- data/vendor/{libdatadog-23.0.0 → libdatadog-24.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/lib/pkgconfig/datadog_profiling_with_rpath.pc +1 -1
- data/vendor/{libdatadog-23.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu → libdatadog-24.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl}/LICENSE-3rdparty.yml +11 -4
- data/vendor/{libdatadog-23.0.0 → libdatadog-24.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/common.h +49 -7
- data/vendor/{libdatadog-23.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu → libdatadog-24.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl}/include/datadog/crashtracker.h +78 -16
- data/vendor/{libdatadog-23.0.0 → libdatadog-24.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/lib/libdatadog_profiling.so +0 -0
- data/vendor/{libdatadog-23.0.0 → libdatadog-24.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/lib/pkgconfig/datadog_profiling_with_rpath.pc +1 -1
- metadata +31 -31
- /data/vendor/{libdatadog-23.0.0 → libdatadog-24.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/LICENSE +0 -0
- /data/vendor/{libdatadog-23.0.0 → libdatadog-24.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/NOTICE +0 -0
- /data/vendor/{libdatadog-23.0.0 → libdatadog-24.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/bin/libdatadog-crashtracking-receiver +0 -0
- /data/vendor/{libdatadog-23.0.0 → libdatadog-24.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/blazesym.h +0 -0
- /data/vendor/{libdatadog-23.0.0 → libdatadog-24.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/data-pipeline.h +0 -0
- /data/vendor/{libdatadog-23.0.0 → libdatadog-24.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/ddsketch.h +0 -0
- /data/vendor/{libdatadog-23.0.0 → libdatadog-24.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/library-config.h +0 -0
- /data/vendor/{libdatadog-23.0.0 → libdatadog-24.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/log.h +0 -0
- /data/vendor/{libdatadog-23.0.0 → libdatadog-24.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/profiling.h +0 -0
- /data/vendor/{libdatadog-23.0.0 → libdatadog-24.0.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/telemetry.h +0 -0
- /data/vendor/{libdatadog-23.0.0 → libdatadog-24.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/LICENSE +0 -0
- /data/vendor/{libdatadog-23.0.0 → libdatadog-24.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/NOTICE +0 -0
- /data/vendor/{libdatadog-23.0.0 → libdatadog-24.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/bin/libdatadog-crashtracking-receiver +0 -0
- /data/vendor/{libdatadog-23.0.0 → libdatadog-24.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/blazesym.h +0 -0
- /data/vendor/{libdatadog-23.0.0 → libdatadog-24.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/data-pipeline.h +0 -0
- /data/vendor/{libdatadog-23.0.0 → libdatadog-24.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/ddsketch.h +0 -0
- /data/vendor/{libdatadog-23.0.0 → libdatadog-24.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/library-config.h +0 -0
- /data/vendor/{libdatadog-23.0.0 → libdatadog-24.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/log.h +0 -0
- /data/vendor/{libdatadog-23.0.0 → libdatadog-24.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/profiling.h +0 -0
- /data/vendor/{libdatadog-23.0.0 → libdatadog-24.0.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/telemetry.h +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a780a72e392307d880e290f169f15b328fbe7e13a66db6b4ef05f3abc2d64292
|
|
4
|
+
data.tar.gz: 65208e4a87e4bee4815c7ae2637f062eefbf839cda358a391f1bf2311582a0a0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d26ebc0e3bd194bed5db8f9015ffbad3f5a0e7f757ca02cbcd3298e9002a6a6eec8ef863a9694614063a207c3b92b96102fb9f7d0b13195a6e9afcf1e70fa485
|
|
7
|
+
data.tar.gz: 3958c8d9e30f7e92edbf5df7efbb7ea2947e4b668c80894354a6981a3dba96426283eced6f27ef730252638e9ceb170c6e20b514808559bbb1285de455f7bd0a
|
data/lib/libdatadog/version.rb
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
root_name: builder, build_common, tools,
|
|
1
|
+
root_name: builder, build_common, tools, libdd-alloc, libdd-crashtracker, libdd-common, libdd-telemetry, libdd-ddsketch, libdd-crashtracker-ffi, libdd-common-ffi, datadog-ffe, datadog-ffe-ffi, datadog-ipc, datadog-ipc-macros, libdd-tinybytes, tarpc, tarpc-plugins, spawn_worker, cc_utils, libdd-library-config, libdd-library-config-ffi, datadog-live-debugger, datadog-live-debugger-ffi, libdd-profiling, libdd-profiling-protobuf, libdd-profiling-ffi, libdd-data-pipeline-ffi, libdd-data-pipeline, libdd-dogstatsd-client, libdd-trace-protobuf, libdd-trace-stats, libdd-trace-utils, libdd-trace-normalization, libdd-log, libdd-ddsketch-ffi, libdd-log-ffi, libdd-telemetry-ffi, symbolizer-ffi, datadog-profiling-replayer, datadog-remote-config, datadog-sidecar, datadog-sidecar-macros, datadog-sidecar-ffi, datadog-trace-obfuscation, datadog-tracer-flare, sidecar_mockgen, test_spawn_from_lib
|
|
2
2
|
third_party_libraries:
|
|
3
3
|
- package_name: addr2line
|
|
4
4
|
package_version: 0.24.2
|
|
@@ -14080,7 +14080,7 @@ third_party_libraries:
|
|
|
14080
14080
|
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
14081
14081
|
DEALINGS IN THE SOFTWARE.
|
|
14082
14082
|
- package_name: indexmap
|
|
14083
|
-
package_version: 2.
|
|
14083
|
+
package_version: 2.11.4
|
|
14084
14084
|
repository: https://github.com/indexmap-rs/indexmap
|
|
14085
14085
|
license: Apache-2.0 OR MIT
|
|
14086
14086
|
licenses:
|
|
@@ -15881,6 +15881,13 @@ third_party_libraries:
|
|
|
15881
15881
|
DEALINGS IN THE SOFTWARE.
|
|
15882
15882
|
- license: Apache-2.0
|
|
15883
15883
|
text: " Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"
|
|
15884
|
+
- package_name: lz4_flex
|
|
15885
|
+
package_version: 0.9.5
|
|
15886
|
+
repository: https://github.com/pseitz/lz4_flex
|
|
15887
|
+
license: MIT
|
|
15888
|
+
licenses:
|
|
15889
|
+
- license: MIT
|
|
15890
|
+
text: NOT FOUND
|
|
15884
15891
|
- package_name: manual_future
|
|
15885
15892
|
package_version: 0.1.1
|
|
15886
15893
|
repository: https://github.com/dmarcuse/manual_future.git
|
|
@@ -27686,9 +27693,9 @@ third_party_libraries:
|
|
|
27686
27693
|
- package_name: stringmetrics
|
|
27687
27694
|
package_version: 2.2.2
|
|
27688
27695
|
repository: https://github.com/pluots/stringmetrics
|
|
27689
|
-
license: License specified in file ($CARGO_HOME/registry/src/
|
|
27696
|
+
license: License specified in file ($CARGO_HOME/registry/src/index.crates.io-6f17d22bba15001f/stringmetrics-2.2.2/LICENSE)
|
|
27690
27697
|
licenses:
|
|
27691
|
-
- license: License specified in file ($CARGO_HOME/registry/src/
|
|
27698
|
+
- license: License specified in file ($CARGO_HOME/registry/src/index.crates.io-6f17d22bba15001f/stringmetrics-2.2.2/LICENSE)
|
|
27692
27699
|
text: |
|
|
27693
27700
|
Copyright 2022 Trevor Gross
|
|
27694
27701
|
|
|
@@ -263,12 +263,6 @@ typedef struct ddog_prof_Exporter ddog_prof_Exporter;
|
|
|
263
263
|
|
|
264
264
|
typedef struct ddog_prof_Exporter_Request ddog_prof_Exporter_Request;
|
|
265
265
|
|
|
266
|
-
/**
|
|
267
|
-
* A tag is a combination of a wire_type, stored in the least significant
|
|
268
|
-
* three bits, and the field number that is defined in the .proto file.
|
|
269
|
-
*/
|
|
270
|
-
typedef struct ddog_Tag ddog_Tag;
|
|
271
|
-
|
|
272
266
|
typedef struct ddog_Slice_U8 {
|
|
273
267
|
/**
|
|
274
268
|
* Should be non-null and suitably aligned for the underlying type. It is
|
|
@@ -1571,6 +1565,14 @@ typedef enum ddog_crasht_BuildIdType {
|
|
|
1571
1565
|
DDOG_CRASHT_BUILD_ID_TYPE_SHA1,
|
|
1572
1566
|
} ddog_crasht_BuildIdType;
|
|
1573
1567
|
|
|
1568
|
+
/**
|
|
1569
|
+
* Result type for runtime callback registration
|
|
1570
|
+
*/
|
|
1571
|
+
typedef enum ddog_crasht_CallbackResult {
|
|
1572
|
+
DDOG_CRASHT_CALLBACK_RESULT_OK,
|
|
1573
|
+
DDOG_CRASHT_CALLBACK_RESULT_ERROR,
|
|
1574
|
+
} ddog_crasht_CallbackResult;
|
|
1575
|
+
|
|
1574
1576
|
typedef enum ddog_crasht_DemangleOptions {
|
|
1575
1577
|
DDOG_CRASHT_DEMANGLE_OPTIONS_COMPLETE,
|
|
1576
1578
|
DDOG_CRASHT_DEMANGLE_OPTIONS_NAME_ONLY,
|
|
@@ -1764,7 +1766,7 @@ typedef struct ddog_crasht_Config {
|
|
|
1764
1766
|
/**
|
|
1765
1767
|
* Timeout in milliseconds before the signal handler starts tearing things down to return.
|
|
1766
1768
|
* If 0, uses the default timeout as specified in
|
|
1767
|
-
* `
|
|
1769
|
+
* `libdd_crashtracker::shared::constants::DD_CRASHTRACK_DEFAULT_TIMEOUT`. Otherwise, uses
|
|
1768
1770
|
* the specified timeout value.
|
|
1769
1771
|
* This is given as a uint32_t, but the actual timeout needs to fit inside of an i32 (max
|
|
1770
1772
|
* 2^31-1). This is a limitation of the various interfaces used to guarantee the timeout.
|
|
@@ -1982,6 +1984,46 @@ typedef struct ddog_crasht_StackTrace_NewResult {
|
|
|
1982
1984
|
};
|
|
1983
1985
|
} ddog_crasht_StackTrace_NewResult;
|
|
1984
1986
|
|
|
1987
|
+
typedef struct ddog_crasht_RuntimeStackFrame {
|
|
1988
|
+
/**
|
|
1989
|
+
* Line number in source file (0 if unknown)
|
|
1990
|
+
*/
|
|
1991
|
+
uint32_t line;
|
|
1992
|
+
/**
|
|
1993
|
+
* Column number in source file (0 if unknown)
|
|
1994
|
+
*/
|
|
1995
|
+
uint32_t column;
|
|
1996
|
+
/**
|
|
1997
|
+
* Function name (fully qualified if possible)
|
|
1998
|
+
*/
|
|
1999
|
+
ddog_CharSlice function;
|
|
2000
|
+
/**
|
|
2001
|
+
* Source file name
|
|
2002
|
+
*/
|
|
2003
|
+
ddog_CharSlice file;
|
|
2004
|
+
/**
|
|
2005
|
+
* Type name (class/module/namespace/etc.)
|
|
2006
|
+
*/
|
|
2007
|
+
ddog_CharSlice type_name;
|
|
2008
|
+
} ddog_crasht_RuntimeStackFrame;
|
|
2009
|
+
|
|
2010
|
+
typedef void (*ddog_crasht_RuntimeStackFrameCallback)(void (*emit_frame)(const struct ddog_crasht_RuntimeStackFrame*));
|
|
2011
|
+
|
|
2012
|
+
/**
|
|
2013
|
+
* Function signature for runtime stacktrace string collection callbacks
|
|
2014
|
+
*
|
|
2015
|
+
* This callback is invoked during crash handling in a signal context, so it must be signal-safe:
|
|
2016
|
+
*
|
|
2017
|
+
* # Parameters
|
|
2018
|
+
* - `emit_stacktrace_string`: Function to call for complete stacktrace string (takes C string)
|
|
2019
|
+
*
|
|
2020
|
+
* # Safety
|
|
2021
|
+
* The callback function is marked unsafe because:
|
|
2022
|
+
* - It receives function pointers that take raw pointers as parameters
|
|
2023
|
+
* - All C strings passed must be null-terminated and remain valid for the call duration
|
|
2024
|
+
*/
|
|
2025
|
+
typedef void (*ddog_crasht_RuntimeStacktraceStringCallback)(void (*emit_stacktrace_string)(const char*));
|
|
2026
|
+
|
|
1985
2027
|
#ifdef __cplusplus
|
|
1986
2028
|
extern "C" {
|
|
1987
2029
|
#endif // __cplusplus
|
|
@@ -643,27 +643,19 @@ struct ddog_VoidResult ddog_crasht_CrashInfoBuilder_with_trace_id(struct ddog_cr
|
|
|
643
643
|
* The CharSlice must be valid.
|
|
644
644
|
*/
|
|
645
645
|
DDOG_CHECK_RETURN
|
|
646
|
-
struct ddog_VoidResult
|
|
647
|
-
|
|
646
|
+
struct ddog_VoidResult ddog_crasht_CrashInfoBuilder_with_message(struct ddog_crasht_Handle_CrashInfoBuilder *builder,
|
|
647
|
+
ddog_CharSlice message);
|
|
648
648
|
|
|
649
649
|
/**
|
|
650
650
|
* # Safety
|
|
651
651
|
* The `builder` can be null, but if non-null it must point to a Builder made by this module,
|
|
652
652
|
* which has not previously been dropped.
|
|
653
|
-
*
|
|
654
|
-
|
|
655
|
-
DDOG_CHECK_RETURN
|
|
656
|
-
struct ddog_VoidResult ddog_crasht_CrashInfoBuilder_with_uuid_random(struct ddog_crasht_Handle_CrashInfoBuilder *builder);
|
|
657
|
-
|
|
658
|
-
/**
|
|
659
|
-
* # Safety
|
|
660
|
-
* The `crash_info` can be null, but if non-null it must point to a Builder made by this module,
|
|
661
|
-
* which has not previously been dropped.
|
|
662
|
-
* The CharSlice must be valid.
|
|
653
|
+
* All arguments must be valid.
|
|
654
|
+
* This method requires that the builder has a UUID, siginfo, and metadata set
|
|
663
655
|
*/
|
|
664
656
|
DDOG_CHECK_RETURN
|
|
665
|
-
struct ddog_VoidResult
|
|
666
|
-
|
|
657
|
+
struct ddog_VoidResult ddog_crasht_CrashInfoBuilder_upload_ping_to_endpoint(struct ddog_crasht_Handle_CrashInfoBuilder *builder,
|
|
658
|
+
const struct ddog_Endpoint *endpoint);
|
|
667
659
|
|
|
668
660
|
/**
|
|
669
661
|
* Create a new StackFrame, and returns an opaque reference to it.
|
|
@@ -862,7 +854,7 @@ struct ddog_StringWrapperResult ddog_crasht_demangle(ddog_CharSlice name,
|
|
|
862
854
|
* signal handler is dangerous, so we fork a sidecar to do the stuff we aren't
|
|
863
855
|
* allowed to do in the handler.
|
|
864
856
|
*
|
|
865
|
-
* See comments in [
|
|
857
|
+
* See comments in [libdd-crashtracker/lib.rs] for a full architecture description.
|
|
866
858
|
* # Safety
|
|
867
859
|
* No safety concerns
|
|
868
860
|
*/
|
|
@@ -876,7 +868,7 @@ DDOG_CHECK_RETURN struct ddog_VoidResult ddog_crasht_receiver_entry_point_stdin(
|
|
|
876
868
|
* signal handler is dangerous, so we fork a sidecar to do the stuff we aren't
|
|
877
869
|
* allowed to do in the handler.
|
|
878
870
|
*
|
|
879
|
-
* See comments in [
|
|
871
|
+
* See comments in [libdd-crashtracker/lib.rs] for a full architecture
|
|
880
872
|
* description.
|
|
881
873
|
* # Safety
|
|
882
874
|
* No safety concerns
|
|
@@ -884,6 +876,76 @@ DDOG_CHECK_RETURN struct ddog_VoidResult ddog_crasht_receiver_entry_point_stdin(
|
|
|
884
876
|
DDOG_CHECK_RETURN
|
|
885
877
|
struct ddog_VoidResult ddog_crasht_receiver_entry_point_unix_socket(ddog_CharSlice socket_path);
|
|
886
878
|
|
|
879
|
+
/**
|
|
880
|
+
* Register a runtime stack collection callback
|
|
881
|
+
*
|
|
882
|
+
* # Arguments
|
|
883
|
+
* - `callback`: The callback function to invoke during crashes
|
|
884
|
+
*
|
|
885
|
+
* # Returns
|
|
886
|
+
* - `CallbackResult::Ok` if registration succeeds
|
|
887
|
+
* - `CallbackResult::Error` if registration fails
|
|
888
|
+
*
|
|
889
|
+
* # Safety
|
|
890
|
+
* - The callback must be signal-safe
|
|
891
|
+
* - Only one callback can be registered at a time
|
|
892
|
+
* - The callback must be registered once on CrashTracker initialization, before any crash occurs
|
|
893
|
+
*
|
|
894
|
+
* # Example Usage from C
|
|
895
|
+
* ```c
|
|
896
|
+
* static void my_runtime_callback(
|
|
897
|
+
* void (*emit_frame)(const ddog_RuntimeStackFrameFFI*),
|
|
898
|
+
* ) {
|
|
899
|
+
* // Collect runtime frames and call emit_frame for each one
|
|
900
|
+
* const char* function_name = "my_function";
|
|
901
|
+
* const char* file_name = "script.rb";
|
|
902
|
+
* ddog_CharSlice type_name = DDOG_CHARSLICE_FROM_CSTR("MyModule.MyClass");
|
|
903
|
+
* ddog_crasht_RuntimeStackFrameFFI frame = {
|
|
904
|
+
* .type_name = type_name,
|
|
905
|
+
* .function = DDOG_CHARSLICE_FROM_CSTR(function_name),
|
|
906
|
+
* .file = DDOG_CHARSLICE_FROM_CSTR(file_name),
|
|
907
|
+
* .line = 42,
|
|
908
|
+
* .column = 10
|
|
909
|
+
* };
|
|
910
|
+
* emit_frame(&frame);
|
|
911
|
+
* }
|
|
912
|
+
*/
|
|
913
|
+
enum ddog_crasht_CallbackResult ddog_crasht_register_runtime_frame_callback(ddog_crasht_RuntimeStackFrameCallback callback);
|
|
914
|
+
|
|
915
|
+
/**
|
|
916
|
+
* Register a runtime stacktrace string collection callback
|
|
917
|
+
*
|
|
918
|
+
* # Arguments
|
|
919
|
+
* - `callback`: The callback function to invoke during crashes
|
|
920
|
+
*
|
|
921
|
+
* # Returns
|
|
922
|
+
* - `CallbackResult::Ok` if registration succeeds (replaces any existing callback)
|
|
923
|
+
* - `CallbackResult::Error` if registration fails
|
|
924
|
+
*
|
|
925
|
+
* # Safety
|
|
926
|
+
* - The callback must be signal-safe
|
|
927
|
+
* - Only one callback can be registered at a time (this replaces any existing one)
|
|
928
|
+
*/
|
|
929
|
+
enum ddog_crasht_CallbackResult ddog_crasht_register_runtime_stacktrace_string_callback(ddog_crasht_RuntimeStacktraceStringCallback callback);
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
* Returns true if a callback is registered, false otherwise
|
|
933
|
+
*
|
|
934
|
+
* # Safety
|
|
935
|
+
* This function is safe to call at any time
|
|
936
|
+
*/
|
|
937
|
+
bool ddog_crasht_is_runtime_callback_registered(void);
|
|
938
|
+
|
|
939
|
+
/**
|
|
940
|
+
* Get the callback type from the currently registered callback context
|
|
941
|
+
*
|
|
942
|
+
* # Safety
|
|
943
|
+
* - The returned pointer is valid only while the callback remains registered
|
|
944
|
+
* - The caller should not free the returned pointer
|
|
945
|
+
* - The returned string should be copied if it needs to persist beyond callback lifetime
|
|
946
|
+
*/
|
|
947
|
+
const char *ddog_crasht_get_registered_callback_type(void);
|
|
948
|
+
|
|
887
949
|
#ifdef __cplusplus
|
|
888
950
|
} // extern "C"
|
|
889
951
|
#endif // __cplusplus
|
|
Binary file
|
|
@@ -8,7 +8,7 @@ includedir=${prefix}/include
|
|
|
8
8
|
|
|
9
9
|
Name: datadog_profiling
|
|
10
10
|
Description: Contains common code used to implement Datadog's Continuous Profilers. (Dynamic linking variant, sets rpath)
|
|
11
|
-
Version:
|
|
11
|
+
Version: 24.0.0
|
|
12
12
|
Requires:
|
|
13
13
|
Libs: -L${libdir} -ldatadog_profiling -Wl,-rpath,${libdir}
|
|
14
14
|
Libs.private:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
root_name: builder, build_common, tools,
|
|
1
|
+
root_name: builder, build_common, tools, libdd-alloc, libdd-crashtracker, libdd-common, libdd-telemetry, libdd-ddsketch, libdd-crashtracker-ffi, libdd-common-ffi, datadog-ffe, datadog-ffe-ffi, datadog-ipc, datadog-ipc-macros, libdd-tinybytes, tarpc, tarpc-plugins, spawn_worker, cc_utils, libdd-library-config, libdd-library-config-ffi, datadog-live-debugger, datadog-live-debugger-ffi, libdd-profiling, libdd-profiling-protobuf, libdd-profiling-ffi, libdd-data-pipeline-ffi, libdd-data-pipeline, libdd-dogstatsd-client, libdd-trace-protobuf, libdd-trace-stats, libdd-trace-utils, libdd-trace-normalization, libdd-log, libdd-ddsketch-ffi, libdd-log-ffi, libdd-telemetry-ffi, symbolizer-ffi, datadog-profiling-replayer, datadog-remote-config, datadog-sidecar, datadog-sidecar-macros, datadog-sidecar-ffi, datadog-trace-obfuscation, datadog-tracer-flare, sidecar_mockgen, test_spawn_from_lib
|
|
2
2
|
third_party_libraries:
|
|
3
3
|
- package_name: addr2line
|
|
4
4
|
package_version: 0.24.2
|
|
@@ -14080,7 +14080,7 @@ third_party_libraries:
|
|
|
14080
14080
|
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
14081
14081
|
DEALINGS IN THE SOFTWARE.
|
|
14082
14082
|
- package_name: indexmap
|
|
14083
|
-
package_version: 2.
|
|
14083
|
+
package_version: 2.11.4
|
|
14084
14084
|
repository: https://github.com/indexmap-rs/indexmap
|
|
14085
14085
|
license: Apache-2.0 OR MIT
|
|
14086
14086
|
licenses:
|
|
@@ -15881,6 +15881,13 @@ third_party_libraries:
|
|
|
15881
15881
|
DEALINGS IN THE SOFTWARE.
|
|
15882
15882
|
- license: Apache-2.0
|
|
15883
15883
|
text: " Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"
|
|
15884
|
+
- package_name: lz4_flex
|
|
15885
|
+
package_version: 0.9.5
|
|
15886
|
+
repository: https://github.com/pseitz/lz4_flex
|
|
15887
|
+
license: MIT
|
|
15888
|
+
licenses:
|
|
15889
|
+
- license: MIT
|
|
15890
|
+
text: NOT FOUND
|
|
15884
15891
|
- package_name: manual_future
|
|
15885
15892
|
package_version: 0.1.1
|
|
15886
15893
|
repository: https://github.com/dmarcuse/manual_future.git
|
|
@@ -27686,9 +27693,9 @@ third_party_libraries:
|
|
|
27686
27693
|
- package_name: stringmetrics
|
|
27687
27694
|
package_version: 2.2.2
|
|
27688
27695
|
repository: https://github.com/pluots/stringmetrics
|
|
27689
|
-
license: License specified in file ($CARGO_HOME/registry/src/
|
|
27696
|
+
license: License specified in file ($CARGO_HOME/registry/src/index.crates.io-6f17d22bba15001f/stringmetrics-2.2.2/LICENSE)
|
|
27690
27697
|
licenses:
|
|
27691
|
-
- license: License specified in file ($CARGO_HOME/registry/src/
|
|
27698
|
+
- license: License specified in file ($CARGO_HOME/registry/src/index.crates.io-6f17d22bba15001f/stringmetrics-2.2.2/LICENSE)
|
|
27692
27699
|
text: |
|
|
27693
27700
|
Copyright 2022 Trevor Gross
|
|
27694
27701
|
|
|
@@ -263,12 +263,6 @@ typedef struct ddog_prof_Exporter ddog_prof_Exporter;
|
|
|
263
263
|
|
|
264
264
|
typedef struct ddog_prof_Exporter_Request ddog_prof_Exporter_Request;
|
|
265
265
|
|
|
266
|
-
/**
|
|
267
|
-
* A tag is a combination of a wire_type, stored in the least significant
|
|
268
|
-
* three bits, and the field number that is defined in the .proto file.
|
|
269
|
-
*/
|
|
270
|
-
typedef struct ddog_Tag ddog_Tag;
|
|
271
|
-
|
|
272
266
|
typedef struct ddog_Slice_U8 {
|
|
273
267
|
/**
|
|
274
268
|
* Should be non-null and suitably aligned for the underlying type. It is
|
|
@@ -1571,6 +1565,14 @@ typedef enum ddog_crasht_BuildIdType {
|
|
|
1571
1565
|
DDOG_CRASHT_BUILD_ID_TYPE_SHA1,
|
|
1572
1566
|
} ddog_crasht_BuildIdType;
|
|
1573
1567
|
|
|
1568
|
+
/**
|
|
1569
|
+
* Result type for runtime callback registration
|
|
1570
|
+
*/
|
|
1571
|
+
typedef enum ddog_crasht_CallbackResult {
|
|
1572
|
+
DDOG_CRASHT_CALLBACK_RESULT_OK,
|
|
1573
|
+
DDOG_CRASHT_CALLBACK_RESULT_ERROR,
|
|
1574
|
+
} ddog_crasht_CallbackResult;
|
|
1575
|
+
|
|
1574
1576
|
typedef enum ddog_crasht_DemangleOptions {
|
|
1575
1577
|
DDOG_CRASHT_DEMANGLE_OPTIONS_COMPLETE,
|
|
1576
1578
|
DDOG_CRASHT_DEMANGLE_OPTIONS_NAME_ONLY,
|
|
@@ -1764,7 +1766,7 @@ typedef struct ddog_crasht_Config {
|
|
|
1764
1766
|
/**
|
|
1765
1767
|
* Timeout in milliseconds before the signal handler starts tearing things down to return.
|
|
1766
1768
|
* If 0, uses the default timeout as specified in
|
|
1767
|
-
* `
|
|
1769
|
+
* `libdd_crashtracker::shared::constants::DD_CRASHTRACK_DEFAULT_TIMEOUT`. Otherwise, uses
|
|
1768
1770
|
* the specified timeout value.
|
|
1769
1771
|
* This is given as a uint32_t, but the actual timeout needs to fit inside of an i32 (max
|
|
1770
1772
|
* 2^31-1). This is a limitation of the various interfaces used to guarantee the timeout.
|
|
@@ -1982,6 +1984,46 @@ typedef struct ddog_crasht_StackTrace_NewResult {
|
|
|
1982
1984
|
};
|
|
1983
1985
|
} ddog_crasht_StackTrace_NewResult;
|
|
1984
1986
|
|
|
1987
|
+
typedef struct ddog_crasht_RuntimeStackFrame {
|
|
1988
|
+
/**
|
|
1989
|
+
* Line number in source file (0 if unknown)
|
|
1990
|
+
*/
|
|
1991
|
+
uint32_t line;
|
|
1992
|
+
/**
|
|
1993
|
+
* Column number in source file (0 if unknown)
|
|
1994
|
+
*/
|
|
1995
|
+
uint32_t column;
|
|
1996
|
+
/**
|
|
1997
|
+
* Function name (fully qualified if possible)
|
|
1998
|
+
*/
|
|
1999
|
+
ddog_CharSlice function;
|
|
2000
|
+
/**
|
|
2001
|
+
* Source file name
|
|
2002
|
+
*/
|
|
2003
|
+
ddog_CharSlice file;
|
|
2004
|
+
/**
|
|
2005
|
+
* Type name (class/module/namespace/etc.)
|
|
2006
|
+
*/
|
|
2007
|
+
ddog_CharSlice type_name;
|
|
2008
|
+
} ddog_crasht_RuntimeStackFrame;
|
|
2009
|
+
|
|
2010
|
+
typedef void (*ddog_crasht_RuntimeStackFrameCallback)(void (*emit_frame)(const struct ddog_crasht_RuntimeStackFrame*));
|
|
2011
|
+
|
|
2012
|
+
/**
|
|
2013
|
+
* Function signature for runtime stacktrace string collection callbacks
|
|
2014
|
+
*
|
|
2015
|
+
* This callback is invoked during crash handling in a signal context, so it must be signal-safe:
|
|
2016
|
+
*
|
|
2017
|
+
* # Parameters
|
|
2018
|
+
* - `emit_stacktrace_string`: Function to call for complete stacktrace string (takes C string)
|
|
2019
|
+
*
|
|
2020
|
+
* # Safety
|
|
2021
|
+
* The callback function is marked unsafe because:
|
|
2022
|
+
* - It receives function pointers that take raw pointers as parameters
|
|
2023
|
+
* - All C strings passed must be null-terminated and remain valid for the call duration
|
|
2024
|
+
*/
|
|
2025
|
+
typedef void (*ddog_crasht_RuntimeStacktraceStringCallback)(void (*emit_stacktrace_string)(const char*));
|
|
2026
|
+
|
|
1985
2027
|
#ifdef __cplusplus
|
|
1986
2028
|
extern "C" {
|
|
1987
2029
|
#endif // __cplusplus
|
|
@@ -643,27 +643,19 @@ struct ddog_VoidResult ddog_crasht_CrashInfoBuilder_with_trace_id(struct ddog_cr
|
|
|
643
643
|
* The CharSlice must be valid.
|
|
644
644
|
*/
|
|
645
645
|
DDOG_CHECK_RETURN
|
|
646
|
-
struct ddog_VoidResult
|
|
647
|
-
|
|
646
|
+
struct ddog_VoidResult ddog_crasht_CrashInfoBuilder_with_message(struct ddog_crasht_Handle_CrashInfoBuilder *builder,
|
|
647
|
+
ddog_CharSlice message);
|
|
648
648
|
|
|
649
649
|
/**
|
|
650
650
|
* # Safety
|
|
651
651
|
* The `builder` can be null, but if non-null it must point to a Builder made by this module,
|
|
652
652
|
* which has not previously been dropped.
|
|
653
|
-
*
|
|
654
|
-
|
|
655
|
-
DDOG_CHECK_RETURN
|
|
656
|
-
struct ddog_VoidResult ddog_crasht_CrashInfoBuilder_with_uuid_random(struct ddog_crasht_Handle_CrashInfoBuilder *builder);
|
|
657
|
-
|
|
658
|
-
/**
|
|
659
|
-
* # Safety
|
|
660
|
-
* The `crash_info` can be null, but if non-null it must point to a Builder made by this module,
|
|
661
|
-
* which has not previously been dropped.
|
|
662
|
-
* The CharSlice must be valid.
|
|
653
|
+
* All arguments must be valid.
|
|
654
|
+
* This method requires that the builder has a UUID, siginfo, and metadata set
|
|
663
655
|
*/
|
|
664
656
|
DDOG_CHECK_RETURN
|
|
665
|
-
struct ddog_VoidResult
|
|
666
|
-
|
|
657
|
+
struct ddog_VoidResult ddog_crasht_CrashInfoBuilder_upload_ping_to_endpoint(struct ddog_crasht_Handle_CrashInfoBuilder *builder,
|
|
658
|
+
const struct ddog_Endpoint *endpoint);
|
|
667
659
|
|
|
668
660
|
/**
|
|
669
661
|
* Create a new StackFrame, and returns an opaque reference to it.
|
|
@@ -862,7 +854,7 @@ struct ddog_StringWrapperResult ddog_crasht_demangle(ddog_CharSlice name,
|
|
|
862
854
|
* signal handler is dangerous, so we fork a sidecar to do the stuff we aren't
|
|
863
855
|
* allowed to do in the handler.
|
|
864
856
|
*
|
|
865
|
-
* See comments in [
|
|
857
|
+
* See comments in [libdd-crashtracker/lib.rs] for a full architecture description.
|
|
866
858
|
* # Safety
|
|
867
859
|
* No safety concerns
|
|
868
860
|
*/
|
|
@@ -876,7 +868,7 @@ DDOG_CHECK_RETURN struct ddog_VoidResult ddog_crasht_receiver_entry_point_stdin(
|
|
|
876
868
|
* signal handler is dangerous, so we fork a sidecar to do the stuff we aren't
|
|
877
869
|
* allowed to do in the handler.
|
|
878
870
|
*
|
|
879
|
-
* See comments in [
|
|
871
|
+
* See comments in [libdd-crashtracker/lib.rs] for a full architecture
|
|
880
872
|
* description.
|
|
881
873
|
* # Safety
|
|
882
874
|
* No safety concerns
|
|
@@ -884,6 +876,76 @@ DDOG_CHECK_RETURN struct ddog_VoidResult ddog_crasht_receiver_entry_point_stdin(
|
|
|
884
876
|
DDOG_CHECK_RETURN
|
|
885
877
|
struct ddog_VoidResult ddog_crasht_receiver_entry_point_unix_socket(ddog_CharSlice socket_path);
|
|
886
878
|
|
|
879
|
+
/**
|
|
880
|
+
* Register a runtime stack collection callback
|
|
881
|
+
*
|
|
882
|
+
* # Arguments
|
|
883
|
+
* - `callback`: The callback function to invoke during crashes
|
|
884
|
+
*
|
|
885
|
+
* # Returns
|
|
886
|
+
* - `CallbackResult::Ok` if registration succeeds
|
|
887
|
+
* - `CallbackResult::Error` if registration fails
|
|
888
|
+
*
|
|
889
|
+
* # Safety
|
|
890
|
+
* - The callback must be signal-safe
|
|
891
|
+
* - Only one callback can be registered at a time
|
|
892
|
+
* - The callback must be registered once on CrashTracker initialization, before any crash occurs
|
|
893
|
+
*
|
|
894
|
+
* # Example Usage from C
|
|
895
|
+
* ```c
|
|
896
|
+
* static void my_runtime_callback(
|
|
897
|
+
* void (*emit_frame)(const ddog_RuntimeStackFrameFFI*),
|
|
898
|
+
* ) {
|
|
899
|
+
* // Collect runtime frames and call emit_frame for each one
|
|
900
|
+
* const char* function_name = "my_function";
|
|
901
|
+
* const char* file_name = "script.rb";
|
|
902
|
+
* ddog_CharSlice type_name = DDOG_CHARSLICE_FROM_CSTR("MyModule.MyClass");
|
|
903
|
+
* ddog_crasht_RuntimeStackFrameFFI frame = {
|
|
904
|
+
* .type_name = type_name,
|
|
905
|
+
* .function = DDOG_CHARSLICE_FROM_CSTR(function_name),
|
|
906
|
+
* .file = DDOG_CHARSLICE_FROM_CSTR(file_name),
|
|
907
|
+
* .line = 42,
|
|
908
|
+
* .column = 10
|
|
909
|
+
* };
|
|
910
|
+
* emit_frame(&frame);
|
|
911
|
+
* }
|
|
912
|
+
*/
|
|
913
|
+
enum ddog_crasht_CallbackResult ddog_crasht_register_runtime_frame_callback(ddog_crasht_RuntimeStackFrameCallback callback);
|
|
914
|
+
|
|
915
|
+
/**
|
|
916
|
+
* Register a runtime stacktrace string collection callback
|
|
917
|
+
*
|
|
918
|
+
* # Arguments
|
|
919
|
+
* - `callback`: The callback function to invoke during crashes
|
|
920
|
+
*
|
|
921
|
+
* # Returns
|
|
922
|
+
* - `CallbackResult::Ok` if registration succeeds (replaces any existing callback)
|
|
923
|
+
* - `CallbackResult::Error` if registration fails
|
|
924
|
+
*
|
|
925
|
+
* # Safety
|
|
926
|
+
* - The callback must be signal-safe
|
|
927
|
+
* - Only one callback can be registered at a time (this replaces any existing one)
|
|
928
|
+
*/
|
|
929
|
+
enum ddog_crasht_CallbackResult ddog_crasht_register_runtime_stacktrace_string_callback(ddog_crasht_RuntimeStacktraceStringCallback callback);
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
* Returns true if a callback is registered, false otherwise
|
|
933
|
+
*
|
|
934
|
+
* # Safety
|
|
935
|
+
* This function is safe to call at any time
|
|
936
|
+
*/
|
|
937
|
+
bool ddog_crasht_is_runtime_callback_registered(void);
|
|
938
|
+
|
|
939
|
+
/**
|
|
940
|
+
* Get the callback type from the currently registered callback context
|
|
941
|
+
*
|
|
942
|
+
* # Safety
|
|
943
|
+
* - The returned pointer is valid only while the callback remains registered
|
|
944
|
+
* - The caller should not free the returned pointer
|
|
945
|
+
* - The returned string should be copied if it needs to persist beyond callback lifetime
|
|
946
|
+
*/
|
|
947
|
+
const char *ddog_crasht_get_registered_callback_type(void);
|
|
948
|
+
|
|
887
949
|
#ifdef __cplusplus
|
|
888
950
|
} // extern "C"
|
|
889
951
|
#endif // __cplusplus
|
|
Binary file
|
|
@@ -8,7 +8,7 @@ includedir=${prefix}/include
|
|
|
8
8
|
|
|
9
9
|
Name: datadog_profiling
|
|
10
10
|
Description: Contains common code used to implement Datadog's Continuous Profilers. (Dynamic linking variant, sets rpath)
|
|
11
|
-
Version:
|
|
11
|
+
Version: 24.0.0
|
|
12
12
|
Requires:
|
|
13
13
|
Libs: -L${libdir} -ldatadog_profiling -Wl,-rpath,${libdir}
|
|
14
14
|
Libs.private:
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: libdatadog
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 24.0.0.1.0
|
|
5
5
|
platform: x86_64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- Datadog, Inc.
|
|
@@ -18,36 +18,36 @@ extra_rdoc_files: []
|
|
|
18
18
|
files:
|
|
19
19
|
- lib/libdatadog.rb
|
|
20
20
|
- lib/libdatadog/version.rb
|
|
21
|
-
- vendor/libdatadog-
|
|
22
|
-
- vendor/libdatadog-
|
|
23
|
-
- vendor/libdatadog-
|
|
24
|
-
- vendor/libdatadog-
|
|
25
|
-
- vendor/libdatadog-
|
|
26
|
-
- vendor/libdatadog-
|
|
27
|
-
- vendor/libdatadog-
|
|
28
|
-
- vendor/libdatadog-
|
|
29
|
-
- vendor/libdatadog-
|
|
30
|
-
- vendor/libdatadog-
|
|
31
|
-
- vendor/libdatadog-
|
|
32
|
-
- vendor/libdatadog-
|
|
33
|
-
- vendor/libdatadog-
|
|
34
|
-
- vendor/libdatadog-
|
|
35
|
-
- vendor/libdatadog-
|
|
36
|
-
- vendor/libdatadog-
|
|
37
|
-
- vendor/libdatadog-
|
|
38
|
-
- vendor/libdatadog-
|
|
39
|
-
- vendor/libdatadog-
|
|
40
|
-
- vendor/libdatadog-
|
|
41
|
-
- vendor/libdatadog-
|
|
42
|
-
- vendor/libdatadog-
|
|
43
|
-
- vendor/libdatadog-
|
|
44
|
-
- vendor/libdatadog-
|
|
45
|
-
- vendor/libdatadog-
|
|
46
|
-
- vendor/libdatadog-
|
|
47
|
-
- vendor/libdatadog-
|
|
48
|
-
- vendor/libdatadog-
|
|
49
|
-
- vendor/libdatadog-
|
|
50
|
-
- vendor/libdatadog-
|
|
21
|
+
- vendor/libdatadog-24.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/LICENSE
|
|
22
|
+
- vendor/libdatadog-24.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/LICENSE-3rdparty.yml
|
|
23
|
+
- vendor/libdatadog-24.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/NOTICE
|
|
24
|
+
- vendor/libdatadog-24.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/bin/libdatadog-crashtracking-receiver
|
|
25
|
+
- vendor/libdatadog-24.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/blazesym.h
|
|
26
|
+
- vendor/libdatadog-24.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/common.h
|
|
27
|
+
- vendor/libdatadog-24.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/crashtracker.h
|
|
28
|
+
- vendor/libdatadog-24.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/data-pipeline.h
|
|
29
|
+
- vendor/libdatadog-24.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/ddsketch.h
|
|
30
|
+
- vendor/libdatadog-24.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/library-config.h
|
|
31
|
+
- vendor/libdatadog-24.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/log.h
|
|
32
|
+
- vendor/libdatadog-24.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/profiling.h
|
|
33
|
+
- vendor/libdatadog-24.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/telemetry.h
|
|
34
|
+
- vendor/libdatadog-24.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/lib/libdatadog_profiling.so
|
|
35
|
+
- vendor/libdatadog-24.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/lib/pkgconfig/datadog_profiling_with_rpath.pc
|
|
36
|
+
- vendor/libdatadog-24.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/LICENSE
|
|
37
|
+
- vendor/libdatadog-24.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/LICENSE-3rdparty.yml
|
|
38
|
+
- vendor/libdatadog-24.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/NOTICE
|
|
39
|
+
- vendor/libdatadog-24.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/bin/libdatadog-crashtracking-receiver
|
|
40
|
+
- vendor/libdatadog-24.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/blazesym.h
|
|
41
|
+
- vendor/libdatadog-24.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/common.h
|
|
42
|
+
- vendor/libdatadog-24.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/crashtracker.h
|
|
43
|
+
- vendor/libdatadog-24.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/data-pipeline.h
|
|
44
|
+
- vendor/libdatadog-24.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/ddsketch.h
|
|
45
|
+
- vendor/libdatadog-24.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/library-config.h
|
|
46
|
+
- vendor/libdatadog-24.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/log.h
|
|
47
|
+
- vendor/libdatadog-24.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/profiling.h
|
|
48
|
+
- vendor/libdatadog-24.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/telemetry.h
|
|
49
|
+
- vendor/libdatadog-24.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/lib/libdatadog_profiling.so
|
|
50
|
+
- vendor/libdatadog-24.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/lib/pkgconfig/datadog_profiling_with_rpath.pc
|
|
51
51
|
homepage: https://docs.datadoghq.com/tracing/
|
|
52
52
|
licenses:
|
|
53
53
|
- Apache-2.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|