libdatadog 12.0.0.1.0 → 13.1.0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/lib/libdatadog/version.rb +1 -1
  3. data/vendor/{libdatadog-12.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-13.1.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu}/LICENSE-3rdparty.yml +4175 -540
  4. data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/bin/libdatadog-crashtracking-receiver +0 -0
  5. data/vendor/libdatadog-13.1.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/include/datadog/blazesym.h +1230 -0
  6. data/vendor/{libdatadog-12.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-13.1.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu}/include/datadog/common.h +40 -12
  7. data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/include/datadog/crashtracker.h +21 -4
  8. data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/lib/libdatadog_profiling.so +0 -0
  9. data/vendor/{libdatadog-12.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu → libdatadog-13.1.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl}/LICENSE-3rdparty.yml +4175 -540
  10. data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/bin/libdatadog-crashtracking-receiver +0 -0
  11. data/vendor/libdatadog-13.1.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/include/datadog/blazesym.h +1230 -0
  12. data/vendor/{libdatadog-12.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu → libdatadog-13.1.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl}/include/datadog/common.h +40 -12
  13. data/vendor/{libdatadog-12.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl → libdatadog-13.1.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl}/include/datadog/crashtracker.h +21 -4
  14. data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/lib/libdatadog_profiling.so +0 -0
  15. data/vendor/{libdatadog-12.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl → libdatadog-13.1.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu}/LICENSE-3rdparty.yml +4175 -540
  16. data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/bin/libdatadog-crashtracking-receiver +0 -0
  17. data/vendor/libdatadog-13.1.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/blazesym.h +1230 -0
  18. data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/common.h +40 -12
  19. data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/crashtracker.h +21 -4
  20. data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/lib/libdatadog_profiling.so +0 -0
  21. data/vendor/{libdatadog-12.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu → libdatadog-13.1.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl}/LICENSE-3rdparty.yml +4175 -540
  22. data/vendor/libdatadog-13.1.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/bin/libdatadog-crashtracking-receiver +0 -0
  23. data/vendor/libdatadog-13.1.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/blazesym.h +1230 -0
  24. data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/common.h +40 -12
  25. data/vendor/{libdatadog-12.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-13.1.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl}/include/datadog/crashtracker.h +21 -4
  26. data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/lib/libdatadog_profiling.so +0 -0
  27. metadata +46 -46
  28. data/vendor/libdatadog-12.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/include/datadog/blazesym.h +0 -1229
  29. data/vendor/libdatadog-12.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/include/datadog/blazesym.h +0 -1229
  30. data/vendor/libdatadog-12.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/blazesym.h +0 -1229
  31. data/vendor/libdatadog-12.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/bin/libdatadog-crashtracking-receiver +0 -0
  32. data/vendor/libdatadog-12.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/blazesym.h +0 -1229
  33. /data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/LICENSE +0 -0
  34. /data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/NOTICE +0 -0
  35. /data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/include/datadog/profiling.h +0 -0
  36. /data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/include/datadog/telemetry.h +0 -0
  37. /data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/lib/pkgconfig/datadog_profiling_with_rpath.pc +0 -0
  38. /data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/LICENSE +0 -0
  39. /data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/NOTICE +0 -0
  40. /data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/include/datadog/profiling.h +0 -0
  41. /data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/include/datadog/telemetry.h +0 -0
  42. /data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/lib/pkgconfig/datadog_profiling_with_rpath.pc +0 -0
  43. /data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/LICENSE +0 -0
  44. /data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/NOTICE +0 -0
  45. /data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/profiling.h +0 -0
  46. /data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/telemetry.h +0 -0
  47. /data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/lib/pkgconfig/datadog_profiling_with_rpath.pc +0 -0
  48. /data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/LICENSE +0 -0
  49. /data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/NOTICE +0 -0
  50. /data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/profiling.h +0 -0
  51. /data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/telemetry.h +0 -0
  52. /data/vendor/{libdatadog-12.0.0 → libdatadog-13.1.0}/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/lib/pkgconfig/datadog_profiling_with_rpath.pc +0 -0
@@ -73,7 +73,9 @@ typedef struct ddog_Error {
73
73
 
74
74
  typedef struct ddog_Slice_CChar {
75
75
  /**
76
- * Must be non-null and suitably aligned for the underlying type.
76
+ * Should be non-null and suitably aligned for the underlying type. It is
77
+ * allowed but not recommended for the pointer to be null when the len is
78
+ * zero.
77
79
  */
78
80
  const char *ptr;
79
81
  /**
@@ -265,7 +267,9 @@ typedef struct ddog_prof_Exporter_Request ddog_prof_Exporter_Request;
265
267
 
266
268
  typedef struct ddog_Slice_U8 {
267
269
  /**
268
- * Must be non-null and suitably aligned for the underlying type.
270
+ * Should be non-null and suitably aligned for the underlying type. It is
271
+ * allowed but not recommended for the pointer to be null when the len is
272
+ * zero.
269
273
  */
270
274
  const uint8_t *ptr;
271
275
  /**
@@ -287,7 +291,9 @@ typedef struct ddog_prof_Exporter_File {
287
291
 
288
292
  typedef struct ddog_prof_Exporter_Slice_File {
289
293
  /**
290
- * Must be non-null and suitably aligned for the underlying type.
294
+ * Should be non-null and suitably aligned for the underlying type. It is
295
+ * allowed but not recommended for the pointer to be null when the len is
296
+ * zero.
291
297
  */
292
298
  const struct ddog_prof_Exporter_File *ptr;
293
299
  /**
@@ -435,7 +441,9 @@ typedef struct ddog_prof_ValueType {
435
441
 
436
442
  typedef struct ddog_prof_Slice_ValueType {
437
443
  /**
438
- * Must be non-null and suitably aligned for the underlying type.
444
+ * Should be non-null and suitably aligned for the underlying type. It is
445
+ * allowed but not recommended for the pointer to be null when the len is
446
+ * zero.
439
447
  */
440
448
  const struct ddog_prof_ValueType *ptr;
441
449
  /**
@@ -541,7 +549,9 @@ typedef struct ddog_prof_Location {
541
549
 
542
550
  typedef struct ddog_prof_Slice_Location {
543
551
  /**
544
- * Must be non-null and suitably aligned for the underlying type.
552
+ * Should be non-null and suitably aligned for the underlying type. It is
553
+ * allowed but not recommended for the pointer to be null when the len is
554
+ * zero.
545
555
  */
546
556
  const struct ddog_prof_Location *ptr;
547
557
  /**
@@ -553,7 +563,9 @@ typedef struct ddog_prof_Slice_Location {
553
563
 
554
564
  typedef struct ddog_Slice_I64 {
555
565
  /**
556
- * Must be non-null and suitably aligned for the underlying type.
566
+ * Should be non-null and suitably aligned for the underlying type. It is
567
+ * allowed but not recommended for the pointer to be null when the len is
568
+ * zero.
557
569
  */
558
570
  const int64_t *ptr;
559
571
  /**
@@ -584,7 +596,9 @@ typedef struct ddog_prof_Label {
584
596
 
585
597
  typedef struct ddog_prof_Slice_Label {
586
598
  /**
587
- * Must be non-null and suitably aligned for the underlying type.
599
+ * Should be non-null and suitably aligned for the underlying type. It is
600
+ * allowed but not recommended for the pointer to be null when the len is
601
+ * zero.
588
602
  */
589
603
  const struct ddog_prof_Label *ptr;
590
604
  /**
@@ -617,7 +631,9 @@ typedef struct ddog_prof_Sample {
617
631
 
618
632
  typedef struct ddog_prof_Slice_Usize {
619
633
  /**
620
- * Must be non-null and suitably aligned for the underlying type.
634
+ * Should be non-null and suitably aligned for the underlying type. It is
635
+ * allowed but not recommended for the pointer to be null when the len is
636
+ * zero.
621
637
  */
622
638
  const uintptr_t *ptr;
623
639
  /**
@@ -747,6 +763,7 @@ typedef enum ddog_crasht_DemangleOptions {
747
763
  typedef enum ddog_crasht_NormalizedAddressTypes {
748
764
  DDOG_CRASHT_NORMALIZED_ADDRESS_TYPES_NONE = 0,
749
765
  DDOG_CRASHT_NORMALIZED_ADDRESS_TYPES_ELF,
766
+ DDOG_CRASHT_NORMALIZED_ADDRESS_TYPES_PDB,
750
767
  } ddog_crasht_NormalizedAddressTypes;
751
768
 
752
769
  /**
@@ -816,7 +833,9 @@ typedef struct ddog_crasht_Result {
816
833
 
817
834
  typedef struct ddog_crasht_Slice_CharSlice {
818
835
  /**
819
- * Must be non-null and suitably aligned for the underlying type.
836
+ * Should be non-null and suitably aligned for the underlying type. It is
837
+ * allowed but not recommended for the pointer to be null when the len is
838
+ * zero.
820
839
  */
821
840
  const ddog_CharSlice *ptr;
822
841
  /**
@@ -846,7 +865,9 @@ typedef struct ddog_crasht_EnvVar {
846
865
 
847
866
  typedef struct ddog_crasht_Slice_EnvVar {
848
867
  /**
849
- * Must be non-null and suitably aligned for the underlying type.
868
+ * Should be non-null and suitably aligned for the underlying type. It is
869
+ * allowed but not recommended for the pointer to be null when the len is
870
+ * zero.
850
871
  */
851
872
  const struct ddog_crasht_EnvVar *ptr;
852
873
  /**
@@ -939,7 +960,9 @@ typedef struct ddog_crasht_StackFrameNames {
939
960
 
940
961
  typedef struct ddog_crasht_Slice_StackFrameNames {
941
962
  /**
942
- * Must be non-null and suitably aligned for the underlying type.
963
+ * Should be non-null and suitably aligned for the underlying type. It is
964
+ * allowed but not recommended for the pointer to be null when the len is
965
+ * zero.
943
966
  */
944
967
  const struct ddog_crasht_StackFrameNames *ptr;
945
968
  /**
@@ -952,6 +975,7 @@ typedef struct ddog_crasht_Slice_StackFrameNames {
952
975
  typedef struct ddog_crasht_NormalizedAddress {
953
976
  uint64_t file_offset;
954
977
  ddog_ByteSlice build_id;
978
+ uint64_t age;
955
979
  ddog_CharSlice path;
956
980
  enum ddog_crasht_NormalizedAddressTypes typ;
957
981
  } ddog_crasht_NormalizedAddress;
@@ -968,7 +992,9 @@ typedef struct ddog_crasht_StackFrame {
968
992
 
969
993
  typedef struct ddog_crasht_Slice_StackFrame {
970
994
  /**
971
- * Must be non-null and suitably aligned for the underlying type.
995
+ * Should be non-null and suitably aligned for the underlying type. It is
996
+ * allowed but not recommended for the pointer to be null when the len is
997
+ * zero.
972
998
  */
973
999
  const struct ddog_crasht_StackFrame *ptr;
974
1000
  /**
@@ -1108,6 +1134,8 @@ struct ddog_Error *ddog_endpoint_from_api_key_and_site(ddog_CharSlice api_key,
1108
1134
 
1109
1135
  void ddog_endpoint_set_timeout(struct ddog_Endpoint *endpoint, uint64_t millis);
1110
1136
 
1137
+ void ddog_endpoint_set_test_token(struct ddog_Endpoint *endpoint, ddog_CharSlice token);
1138
+
1111
1139
  void ddog_endpoint_drop(struct ddog_Endpoint*);
1112
1140
 
1113
1141
  struct ddog_Option_U32 ddog_Option_U32_some(uint32_t v);
@@ -77,6 +77,23 @@ struct ddog_crasht_Result ddog_crasht_init_with_receiver(struct ddog_crasht_Conf
77
77
  struct ddog_crasht_ReceiverConfig receiver_config,
78
78
  struct ddog_crasht_Metadata metadata);
79
79
 
80
+ /**
81
+ * Initialize the crash-tracking infrastructure, writing to an unix socket in case of crash.
82
+ *
83
+ * # Preconditions
84
+ * None.
85
+ * # Safety
86
+ * Crash-tracking functions are not reentrant.
87
+ * No other crash-handler functions should be called concurrently.
88
+ * # Atomicity
89
+ * This function is not atomic. A crash during its execution may lead to
90
+ * unexpected crash-handling behaviour.
91
+ */
92
+ DDOG_CHECK_RETURN
93
+ struct ddog_crasht_Result ddog_crasht_init_with_unix_socket(struct ddog_crasht_Config config,
94
+ ddog_CharSlice socket_path,
95
+ struct ddog_crasht_Metadata metadata);
96
+
80
97
  /**
81
98
  * Resets all counters to 0.
82
99
  * Expected to be used after a fork, to reset the counters on the child
@@ -146,7 +163,7 @@ DDOG_CHECK_RETURN struct ddog_crasht_Result ddog_crasht_clear_trace_ids(void);
146
163
  *
147
164
  * Note: 128 bit ints in FFI were not stabilized until Rust 1.77
148
165
  * https://blog.rust-lang.org/2024/03/30/i128-layout-update.html
149
- * We're currently locked into 1.71, have to do an ugly workaround involving 2 64 bit ints
166
+ * We're currently locked into 1.76.0, have to do an ugly workaround involving 2 64 bit ints
150
167
  * until we can upgrade.
151
168
  *
152
169
  * # Safety
@@ -171,7 +188,7 @@ struct ddog_crasht_UsizeResult ddog_crasht_insert_trace_id(uint64_t id_high,
171
188
  *
172
189
  * Note: 128 bit ints in FFI were not stabilized until Rust 1.77
173
190
  * https://blog.rust-lang.org/2024/03/30/i128-layout-update.html
174
- * We're currently locked into 1.71, have to do an ugly workaround involving 2 64 bit ints
191
+ * We're currently locked into 1.76.0, have to do an ugly workaround involving 2 64 bit ints
175
192
  * until we can upgrade.
176
193
  *
177
194
  * # Safety
@@ -197,7 +214,7 @@ struct ddog_crasht_UsizeResult ddog_crasht_insert_span_id(uint64_t id_high,
197
214
  *
198
215
  * Note: 128 bit ints in FFI were not stabilized until Rust 1.77
199
216
  * https://blog.rust-lang.org/2024/03/30/i128-layout-update.html
200
- * We're currently locked into 1.71, have to do an ugly workaround involving 2 64 bit ints
217
+ * We're currently locked into 1.76.0, have to do an ugly workaround involving 2 64 bit ints
201
218
  * until we can upgrade.
202
219
  *
203
220
  * # Safety
@@ -224,7 +241,7 @@ struct ddog_crasht_Result ddog_crasht_remove_span_id(uint64_t id_high,
224
241
  *
225
242
  * Note: 128 bit ints in FFI were not stabilized until Rust 1.77
226
243
  * https://blog.rust-lang.org/2024/03/30/i128-layout-update.html
227
- * We're currently locked into 1.71, have to do an ugly workaround involving 2 64 bit ints
244
+ * We're currently locked into 1.76.0, have to do an ugly workaround involving 2 64 bit ints
228
245
  * until we can upgrade.
229
246
  *
230
247
  * # Safety