libdatadog 33.0.0.1.0 → 40.0.0.2.0

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.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/lib/libdatadog/version.rb +2 -2
  3. data/libdatadog.gemspec +43 -0
  4. data/rust-toolchain.toml +6 -0
  5. data/tasks/build.rake +36 -2
  6. data/tasks/gem.rake +245 -0
  7. data/tasks/release.rake +28 -0
  8. data/tasks/spec.rake +11 -0
  9. data/vendor/{libdatadog-33.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-40.0.0/aarch64-linux}/LICENSE-3rdparty.csv +7 -1
  10. data/vendor/libdatadog-40.0.0/aarch64-linux/NOTICE +12 -0
  11. data/vendor/{libdatadog-33.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu → libdatadog-40.0.0/aarch64-linux}/bin/libdatadog-crashtracking-receiver +0 -0
  12. data/vendor/{libdatadog-33.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl → libdatadog-40.0.0/aarch64-linux}/include/datadog/common.h +321 -81
  13. data/vendor/{libdatadog-33.0.0/arm64-darwin/libdatadog-aarch64-apple-darwin → libdatadog-40.0.0/aarch64-linux}/include/datadog/crashtracker.h +19 -0
  14. data/vendor/libdatadog-40.0.0/aarch64-linux/include/datadog/data-pipeline.h +612 -0
  15. data/vendor/libdatadog-40.0.0/aarch64-linux/include/datadog/otel-thread-ctx.h +86 -0
  16. data/vendor/{libdatadog-33.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-40.0.0/aarch64-linux}/include/datadog/profiling.h +37 -0
  17. data/vendor/libdatadog-40.0.0/aarch64-linux/include/datadog/shared-runtime.h +91 -0
  18. data/vendor/{libdatadog-33.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl → libdatadog-40.0.0/aarch64-linux}/include/datadog/telemetry.h +37 -19
  19. data/vendor/{libdatadog-33.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu → libdatadog-40.0.0/aarch64-linux}/lib/libdatadog_profiling.so +0 -0
  20. data/vendor/{libdatadog-33.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu → libdatadog-40.0.0/aarch64-linux}/lib/pkgconfig/datadog_profiling_with_rpath.pc +1 -1
  21. data/vendor/{libdatadog-33.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu → libdatadog-40.0.0/aarch64-linux-musl}/LICENSE-3rdparty.csv +7 -1
  22. data/vendor/libdatadog-40.0.0/aarch64-linux-musl/NOTICE +12 -0
  23. data/vendor/{libdatadog-33.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-40.0.0/aarch64-linux-musl}/bin/libdatadog-crashtracking-receiver +0 -0
  24. data/vendor/{libdatadog-33.0.0/arm64-darwin/libdatadog-aarch64-apple-darwin → libdatadog-40.0.0/aarch64-linux-musl}/include/datadog/common.h +321 -81
  25. data/vendor/{libdatadog-33.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu → libdatadog-40.0.0/aarch64-linux-musl}/include/datadog/crashtracker.h +19 -0
  26. data/vendor/libdatadog-40.0.0/aarch64-linux-musl/include/datadog/data-pipeline.h +612 -0
  27. data/vendor/libdatadog-40.0.0/aarch64-linux-musl/include/datadog/otel-thread-ctx.h +86 -0
  28. data/vendor/{libdatadog-33.0.0/arm64-darwin/libdatadog-aarch64-apple-darwin → libdatadog-40.0.0/aarch64-linux-musl}/include/datadog/profiling.h +37 -0
  29. data/vendor/libdatadog-40.0.0/aarch64-linux-musl/include/datadog/shared-runtime.h +91 -0
  30. data/vendor/{libdatadog-33.0.0/arm64-darwin/libdatadog-aarch64-apple-darwin → libdatadog-40.0.0/aarch64-linux-musl}/include/datadog/telemetry.h +37 -19
  31. data/vendor/{libdatadog-33.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-40.0.0/aarch64-linux-musl}/lib/libdatadog_profiling.so +0 -0
  32. data/vendor/{libdatadog-33.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-40.0.0/aarch64-linux-musl}/lib/pkgconfig/datadog_profiling_with_rpath.pc +1 -1
  33. data/vendor/{libdatadog-33.0.0/arm64-darwin/libdatadog-aarch64-apple-darwin → libdatadog-40.0.0/arm64-darwin}/LICENSE-3rdparty.csv +7 -1
  34. data/vendor/libdatadog-40.0.0/arm64-darwin/NOTICE +12 -0
  35. data/vendor/{libdatadog-33.0.0/arm64-darwin/libdatadog-aarch64-apple-darwin → libdatadog-40.0.0/arm64-darwin}/bin/libdatadog-crashtracking-receiver +0 -0
  36. data/vendor/{libdatadog-33.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-40.0.0/arm64-darwin}/include/datadog/common.h +321 -81
  37. data/vendor/{libdatadog-33.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-40.0.0/arm64-darwin}/include/datadog/crashtracker.h +19 -0
  38. data/vendor/libdatadog-40.0.0/arm64-darwin/include/datadog/data-pipeline.h +612 -0
  39. data/vendor/libdatadog-40.0.0/arm64-darwin/include/datadog/otel-thread-ctx.h +86 -0
  40. data/vendor/{libdatadog-33.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu → libdatadog-40.0.0/arm64-darwin}/include/datadog/profiling.h +37 -0
  41. data/vendor/libdatadog-40.0.0/arm64-darwin/include/datadog/shared-runtime.h +91 -0
  42. data/vendor/{libdatadog-33.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-40.0.0/arm64-darwin}/include/datadog/telemetry.h +37 -19
  43. data/vendor/{libdatadog-33.0.0/arm64-darwin/libdatadog-aarch64-apple-darwin → libdatadog-40.0.0/arm64-darwin}/lib/libdatadog_profiling.dylib +0 -0
  44. data/vendor/{libdatadog-33.0.0/arm64-darwin/libdatadog-aarch64-apple-darwin → libdatadog-40.0.0/arm64-darwin}/lib/pkgconfig/datadog_profiling_with_rpath.pc +1 -1
  45. data/vendor/libdatadog-40.0.0/x86_64-linux/LICENSE-3rdparty.csv +554 -0
  46. data/vendor/libdatadog-40.0.0/x86_64-linux/NOTICE +12 -0
  47. data/vendor/{libdatadog-33.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu → libdatadog-40.0.0/x86_64-linux}/bin/libdatadog-crashtracking-receiver +0 -0
  48. data/vendor/libdatadog-40.0.0/x86_64-linux/include/datadog/common.h +3115 -0
  49. data/vendor/libdatadog-40.0.0/x86_64-linux/include/datadog/crashtracker.h +1026 -0
  50. data/vendor/libdatadog-40.0.0/x86_64-linux/include/datadog/data-pipeline.h +612 -0
  51. data/vendor/libdatadog-40.0.0/x86_64-linux/include/datadog/otel-thread-ctx.h +86 -0
  52. data/vendor/libdatadog-40.0.0/x86_64-linux/include/datadog/profiling.h +1167 -0
  53. data/vendor/libdatadog-40.0.0/x86_64-linux/include/datadog/shared-runtime.h +91 -0
  54. data/vendor/libdatadog-40.0.0/x86_64-linux/include/datadog/telemetry.h +325 -0
  55. data/vendor/{libdatadog-33.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu → libdatadog-40.0.0/x86_64-linux}/lib/libdatadog_profiling.so +0 -0
  56. data/vendor/libdatadog-40.0.0/x86_64-linux/lib/pkgconfig/datadog_profiling_with_rpath.pc +15 -0
  57. data/vendor/{libdatadog-33.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl → libdatadog-40.0.0/x86_64-linux-musl}/LICENSE-3rdparty.csv +7 -1
  58. data/vendor/libdatadog-40.0.0/x86_64-linux-musl/NOTICE +12 -0
  59. data/vendor/{libdatadog-33.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl → libdatadog-40.0.0/x86_64-linux-musl}/bin/libdatadog-crashtracking-receiver +0 -0
  60. data/vendor/{libdatadog-33.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu → libdatadog-40.0.0/x86_64-linux-musl}/include/datadog/common.h +321 -81
  61. data/vendor/{libdatadog-33.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl → libdatadog-40.0.0/x86_64-linux-musl}/include/datadog/crashtracker.h +19 -0
  62. data/vendor/libdatadog-40.0.0/x86_64-linux-musl/include/datadog/data-pipeline.h +612 -0
  63. data/vendor/libdatadog-40.0.0/x86_64-linux-musl/include/datadog/otel-thread-ctx.h +86 -0
  64. data/vendor/{libdatadog-33.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl → libdatadog-40.0.0/x86_64-linux-musl}/include/datadog/profiling.h +37 -0
  65. data/vendor/libdatadog-40.0.0/x86_64-linux-musl/include/datadog/shared-runtime.h +91 -0
  66. data/vendor/{libdatadog-33.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu → libdatadog-40.0.0/x86_64-linux-musl}/include/datadog/telemetry.h +37 -19
  67. data/vendor/{libdatadog-33.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl → libdatadog-40.0.0/x86_64-linux-musl}/lib/libdatadog_profiling.so +0 -0
  68. data/vendor/{libdatadog-33.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl → libdatadog-40.0.0/x86_64-linux-musl}/lib/pkgconfig/datadog_profiling_with_rpath.pc +1 -1
  69. metadata +97 -82
  70. data/vendor/libdatadog-33.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/NOTICE +0 -4
  71. data/vendor/libdatadog-33.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu/include/datadog/data-pipeline.h +0 -216
  72. data/vendor/libdatadog-33.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/NOTICE +0 -4
  73. data/vendor/libdatadog-33.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl/include/datadog/data-pipeline.h +0 -216
  74. data/vendor/libdatadog-33.0.0/arm64-darwin/libdatadog-aarch64-apple-darwin/NOTICE +0 -4
  75. data/vendor/libdatadog-33.0.0/arm64-darwin/libdatadog-aarch64-apple-darwin/include/datadog/data-pipeline.h +0 -216
  76. data/vendor/libdatadog-33.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/LICENSE-3rdparty.csv +0 -548
  77. data/vendor/libdatadog-33.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/NOTICE +0 -4
  78. data/vendor/libdatadog-33.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/common.h +0 -2875
  79. data/vendor/libdatadog-33.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/crashtracker.h +0 -1007
  80. data/vendor/libdatadog-33.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/data-pipeline.h +0 -216
  81. data/vendor/libdatadog-33.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/profiling.h +0 -1130
  82. data/vendor/libdatadog-33.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/include/datadog/telemetry.h +0 -307
  83. data/vendor/libdatadog-33.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu/lib/pkgconfig/datadog_profiling_with_rpath.pc +0 -15
  84. data/vendor/libdatadog-33.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/NOTICE +0 -4
  85. data/vendor/libdatadog-33.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl/include/datadog/data-pipeline.h +0 -216
  86. /data/vendor/{libdatadog-33.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu → libdatadog-40.0.0/aarch64-linux}/LICENSE +0 -0
  87. /data/vendor/{libdatadog-33.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu → libdatadog-40.0.0/aarch64-linux}/include/datadog/blazesym.h +0 -0
  88. /data/vendor/{libdatadog-33.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu → libdatadog-40.0.0/aarch64-linux}/include/datadog/ddsketch.h +0 -0
  89. /data/vendor/{libdatadog-33.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu → libdatadog-40.0.0/aarch64-linux}/include/datadog/ffe.h +0 -0
  90. /data/vendor/{libdatadog-33.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu → libdatadog-40.0.0/aarch64-linux}/include/datadog/library-config.h +0 -0
  91. /data/vendor/{libdatadog-33.0.0/aarch64-linux/libdatadog-aarch64-unknown-linux-gnu → libdatadog-40.0.0/aarch64-linux}/include/datadog/log.h +0 -0
  92. /data/vendor/{libdatadog-33.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-40.0.0/aarch64-linux-musl}/LICENSE +0 -0
  93. /data/vendor/{libdatadog-33.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-40.0.0/aarch64-linux-musl}/include/datadog/blazesym.h +0 -0
  94. /data/vendor/{libdatadog-33.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-40.0.0/aarch64-linux-musl}/include/datadog/ddsketch.h +0 -0
  95. /data/vendor/{libdatadog-33.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-40.0.0/aarch64-linux-musl}/include/datadog/ffe.h +0 -0
  96. /data/vendor/{libdatadog-33.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-40.0.0/aarch64-linux-musl}/include/datadog/library-config.h +0 -0
  97. /data/vendor/{libdatadog-33.0.0/aarch64-linux-musl/libdatadog-aarch64-alpine-linux-musl → libdatadog-40.0.0/aarch64-linux-musl}/include/datadog/log.h +0 -0
  98. /data/vendor/{libdatadog-33.0.0/arm64-darwin/libdatadog-aarch64-apple-darwin → libdatadog-40.0.0/arm64-darwin}/LICENSE +0 -0
  99. /data/vendor/{libdatadog-33.0.0/arm64-darwin/libdatadog-aarch64-apple-darwin → libdatadog-40.0.0/arm64-darwin}/include/datadog/blazesym.h +0 -0
  100. /data/vendor/{libdatadog-33.0.0/arm64-darwin/libdatadog-aarch64-apple-darwin → libdatadog-40.0.0/arm64-darwin}/include/datadog/ddsketch.h +0 -0
  101. /data/vendor/{libdatadog-33.0.0/arm64-darwin/libdatadog-aarch64-apple-darwin → libdatadog-40.0.0/arm64-darwin}/include/datadog/ffe.h +0 -0
  102. /data/vendor/{libdatadog-33.0.0/arm64-darwin/libdatadog-aarch64-apple-darwin → libdatadog-40.0.0/arm64-darwin}/include/datadog/library-config.h +0 -0
  103. /data/vendor/{libdatadog-33.0.0/arm64-darwin/libdatadog-aarch64-apple-darwin → libdatadog-40.0.0/arm64-darwin}/include/datadog/log.h +0 -0
  104. /data/vendor/{libdatadog-33.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu → libdatadog-40.0.0/x86_64-linux}/LICENSE +0 -0
  105. /data/vendor/{libdatadog-33.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu → libdatadog-40.0.0/x86_64-linux}/include/datadog/blazesym.h +0 -0
  106. /data/vendor/{libdatadog-33.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu → libdatadog-40.0.0/x86_64-linux}/include/datadog/ddsketch.h +0 -0
  107. /data/vendor/{libdatadog-33.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu → libdatadog-40.0.0/x86_64-linux}/include/datadog/ffe.h +0 -0
  108. /data/vendor/{libdatadog-33.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu → libdatadog-40.0.0/x86_64-linux}/include/datadog/library-config.h +0 -0
  109. /data/vendor/{libdatadog-33.0.0/x86_64-linux/libdatadog-x86_64-unknown-linux-gnu → libdatadog-40.0.0/x86_64-linux}/include/datadog/log.h +0 -0
  110. /data/vendor/{libdatadog-33.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl → libdatadog-40.0.0/x86_64-linux-musl}/LICENSE +0 -0
  111. /data/vendor/{libdatadog-33.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl → libdatadog-40.0.0/x86_64-linux-musl}/include/datadog/blazesym.h +0 -0
  112. /data/vendor/{libdatadog-33.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl → libdatadog-40.0.0/x86_64-linux-musl}/include/datadog/ddsketch.h +0 -0
  113. /data/vendor/{libdatadog-33.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl → libdatadog-40.0.0/x86_64-linux-musl}/include/datadog/ffe.h +0 -0
  114. /data/vendor/{libdatadog-33.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl → libdatadog-40.0.0/x86_64-linux-musl}/include/datadog/library-config.h +0 -0
  115. /data/vendor/{libdatadog-33.0.0/x86_64-linux-musl/libdatadog-x86_64-alpine-linux-musl → libdatadog-40.0.0/x86_64-linux-musl}/include/datadog/log.h +0 -0
@@ -1,307 +0,0 @@
1
- // Copyright 2021-Present Datadog, Inc. https://www.datadoghq.com/
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
-
5
- #ifndef DDOG_TELEMETRY_H
6
- #define DDOG_TELEMETRY_H
7
-
8
- #include <stdbool.h>
9
- #include <stddef.h>
10
- #include <stdint.h>
11
- #include <stdio.h>
12
- #include "common.h"
13
-
14
- /**
15
- * # Safety
16
- * * builder should be a non null pointer to a null pointer to a builder
17
- */
18
- ddog_MaybeError ddog_telemetry_builder_instantiate(struct ddog_TelemetryWorkerBuilder **out_builder,
19
- ddog_CharSlice service_name,
20
- ddog_CharSlice language_name,
21
- ddog_CharSlice language_version,
22
- ddog_CharSlice tracer_version);
23
-
24
- /**
25
- * # Safety
26
- * * builder should be a non null pointer to a null pointer to a builder
27
- */
28
- ddog_MaybeError ddog_telemetry_builder_instantiate_with_hostname(struct ddog_TelemetryWorkerBuilder **out_builder,
29
- ddog_CharSlice hostname,
30
- ddog_CharSlice service_name,
31
- ddog_CharSlice language_name,
32
- ddog_CharSlice language_version,
33
- ddog_CharSlice tracer_version);
34
-
35
- ddog_MaybeError ddog_telemetry_builder_with_native_deps(struct ddog_TelemetryWorkerBuilder *builder,
36
- bool include_native_deps);
37
-
38
- ddog_MaybeError ddog_telemetry_builder_with_rust_shared_lib_deps(struct ddog_TelemetryWorkerBuilder *builder,
39
- bool include_rust_shared_lib_deps);
40
-
41
- ddog_MaybeError ddog_telemetry_builder_with_config(struct ddog_TelemetryWorkerBuilder *builder,
42
- ddog_CharSlice name,
43
- ddog_CharSlice value,
44
- enum ddog_ConfigurationOrigin origin,
45
- ddog_CharSlice config_id,
46
- struct ddog_Option_U64 seq_id);
47
-
48
- /**
49
- * Builds the telemetry worker and return a handle to it
50
- *
51
- * # Safety
52
- * * handle should be a non null pointer to a null pointer
53
- */
54
- ddog_MaybeError ddog_telemetry_builder_run(struct ddog_TelemetryWorkerBuilder *builder,
55
- struct ddog_TelemetryWorkerHandle **out_handle);
56
-
57
- /**
58
- * Builds the telemetry worker and return a handle to it. The worker will only process and send
59
- * telemetry metrics and telemetry logs. Any lifecyle/dependency/configuration event will be
60
- * ignored
61
- *
62
- * # Safety
63
- * * handle should be a non null pointer to a null pointer
64
- */
65
- ddog_MaybeError ddog_telemetry_builder_run_metric_logs(struct ddog_TelemetryWorkerBuilder *builder,
66
- struct ddog_TelemetryWorkerHandle **out_handle);
67
-
68
- ddog_MaybeError ddog_telemetry_builder_with_endpoint_config_endpoint(struct ddog_TelemetryWorkerBuilder *telemetry_builder,
69
- const struct ddog_Endpoint *endpoint);
70
-
71
- /**
72
- * Sets a property from it's string value.
73
- *
74
- * Available properties:
75
- *
76
- * * config.endpoint
77
- */
78
- ddog_MaybeError ddog_telemetry_builder_with_property_endpoint(struct ddog_TelemetryWorkerBuilder *telemetry_builder,
79
- enum ddog_TelemetryWorkerBuilderEndpointProperty _property,
80
- const struct ddog_Endpoint *endpoint);
81
-
82
- /**
83
- * Sets a property from it's string value.
84
- *
85
- * Available properties:
86
- *
87
- * * config.endpoint
88
- */
89
- ddog_MaybeError ddog_telemetry_builder_with_endpoint_named_property(struct ddog_TelemetryWorkerBuilder *telemetry_builder,
90
- ddog_CharSlice property,
91
- const struct ddog_Endpoint *endpoint);
92
-
93
- ddog_MaybeError ddog_telemetry_builder_with_str_application_service_version(struct ddog_TelemetryWorkerBuilder *telemetry_builder,
94
- ddog_CharSlice param);
95
-
96
- ddog_MaybeError ddog_telemetry_builder_with_str_application_env(struct ddog_TelemetryWorkerBuilder *telemetry_builder,
97
- ddog_CharSlice param);
98
-
99
- ddog_MaybeError ddog_telemetry_builder_with_str_application_runtime_name(struct ddog_TelemetryWorkerBuilder *telemetry_builder,
100
- ddog_CharSlice param);
101
-
102
- ddog_MaybeError ddog_telemetry_builder_with_str_application_runtime_version(struct ddog_TelemetryWorkerBuilder *telemetry_builder,
103
- ddog_CharSlice param);
104
-
105
- ddog_MaybeError ddog_telemetry_builder_with_str_application_runtime_patches(struct ddog_TelemetryWorkerBuilder *telemetry_builder,
106
- ddog_CharSlice param);
107
-
108
- ddog_MaybeError ddog_telemetry_builder_with_str_host_container_id(struct ddog_TelemetryWorkerBuilder *telemetry_builder,
109
- ddog_CharSlice param);
110
-
111
- ddog_MaybeError ddog_telemetry_builder_with_str_host_os(struct ddog_TelemetryWorkerBuilder *telemetry_builder,
112
- ddog_CharSlice param);
113
-
114
- ddog_MaybeError ddog_telemetry_builder_with_str_host_kernel_name(struct ddog_TelemetryWorkerBuilder *telemetry_builder,
115
- ddog_CharSlice param);
116
-
117
- ddog_MaybeError ddog_telemetry_builder_with_str_host_kernel_release(struct ddog_TelemetryWorkerBuilder *telemetry_builder,
118
- ddog_CharSlice param);
119
-
120
- ddog_MaybeError ddog_telemetry_builder_with_str_host_kernel_version(struct ddog_TelemetryWorkerBuilder *telemetry_builder,
121
- ddog_CharSlice param);
122
-
123
- ddog_MaybeError ddog_telemetry_builder_with_str_runtime_id(struct ddog_TelemetryWorkerBuilder *telemetry_builder,
124
- ddog_CharSlice param);
125
-
126
- ddog_MaybeError ddog_telemetry_builder_with_str_session_id(struct ddog_TelemetryWorkerBuilder *telemetry_builder,
127
- ddog_CharSlice param);
128
-
129
- ddog_MaybeError ddog_telemetry_builder_with_str_parent_session_id(struct ddog_TelemetryWorkerBuilder *telemetry_builder,
130
- ddog_CharSlice param);
131
-
132
- ddog_MaybeError ddog_telemetry_builder_with_str_root_session_id(struct ddog_TelemetryWorkerBuilder *telemetry_builder,
133
- ddog_CharSlice param);
134
-
135
- /**
136
- * Sets a property from it's string value.
137
- *
138
- * Available properties:
139
- *
140
- * * application.service_version
141
- *
142
- * * application.env
143
- *
144
- * * application.runtime_name
145
- *
146
- * * application.runtime_version
147
- *
148
- * * application.runtime_patches
149
- *
150
- * * host.container_id
151
- *
152
- * * host.os
153
- *
154
- * * host.kernel_name
155
- *
156
- * * host.kernel_release
157
- *
158
- * * host.kernel_version
159
- *
160
- * * runtime_id
161
- *
162
- * * session_id
163
- *
164
- * * parent_session_id
165
- *
166
- * * root_session_id
167
- *
168
- *
169
- */
170
- ddog_MaybeError ddog_telemetry_builder_with_property_str(struct ddog_TelemetryWorkerBuilder *telemetry_builder,
171
- enum ddog_TelemetryWorkerBuilderStrProperty property,
172
- ddog_CharSlice param);
173
-
174
- /**
175
- * Sets a property from it's string value.
176
- *
177
- * Available properties:
178
- *
179
- * * application.service_version
180
- *
181
- * * application.env
182
- *
183
- * * application.runtime_name
184
- *
185
- * * application.runtime_version
186
- *
187
- * * application.runtime_patches
188
- *
189
- * * host.container_id
190
- *
191
- * * host.os
192
- *
193
- * * host.kernel_name
194
- *
195
- * * host.kernel_release
196
- *
197
- * * host.kernel_version
198
- *
199
- * * runtime_id
200
- *
201
- * * session_id
202
- *
203
- * * parent_session_id
204
- *
205
- * * root_session_id
206
- *
207
- *
208
- */
209
- ddog_MaybeError ddog_telemetry_builder_with_str_named_property(struct ddog_TelemetryWorkerBuilder *telemetry_builder,
210
- ddog_CharSlice property,
211
- ddog_CharSlice param);
212
-
213
- ddog_MaybeError ddog_telemetry_builder_with_bool_config_telemetry_debug_logging_enabled(struct ddog_TelemetryWorkerBuilder *telemetry_builder,
214
- bool param);
215
-
216
- /**
217
- * Sets a property from it's string value.
218
- *
219
- * Available properties:
220
- *
221
- * * config.telemetry_debug_logging_enabled
222
- *
223
- *
224
- */
225
- ddog_MaybeError ddog_telemetry_builder_with_property_bool(struct ddog_TelemetryWorkerBuilder *telemetry_builder,
226
- enum ddog_TelemetryWorkerBuilderBoolProperty property,
227
- bool param);
228
-
229
- /**
230
- * Sets a property from it's string value.
231
- *
232
- * Available properties:
233
- *
234
- * * config.telemetry_debug_logging_enabled
235
- *
236
- *
237
- */
238
- ddog_MaybeError ddog_telemetry_builder_with_bool_named_property(struct ddog_TelemetryWorkerBuilder *telemetry_builder,
239
- ddog_CharSlice property,
240
- bool param);
241
-
242
- ddog_MaybeError ddog_telemetry_handle_add_dependency(const struct ddog_TelemetryWorkerHandle *handle,
243
- ddog_CharSlice dependency_name,
244
- ddog_CharSlice dependency_version);
245
-
246
- ddog_MaybeError ddog_telemetry_handle_add_integration(const struct ddog_TelemetryWorkerHandle *handle,
247
- ddog_CharSlice dependency_name,
248
- ddog_CharSlice dependency_version,
249
- bool enabled,
250
- struct ddog_Option_Bool compatible,
251
- struct ddog_Option_Bool auto_enabled);
252
-
253
- /**
254
- * * indentifier: identifies a logging location uniquely. This can for instance be the template
255
- * using for the log message or the concatenated file + line of the origin of the log
256
- * * stack_trace: stack trace associated with the log. If no stack trace is available, an empty
257
- * string should be passed
258
- */
259
- ddog_MaybeError ddog_telemetry_handle_add_log(const struct ddog_TelemetryWorkerHandle *handle,
260
- ddog_CharSlice indentifier,
261
- ddog_CharSlice message,
262
- enum ddog_LogLevel level,
263
- ddog_CharSlice stack_trace);
264
-
265
- ddog_MaybeError ddog_telemetry_handle_start(const struct ddog_TelemetryWorkerHandle *handle);
266
-
267
- struct ddog_TelemetryWorkerHandle *ddog_telemetry_handle_clone(const struct ddog_TelemetryWorkerHandle *handle);
268
-
269
- ddog_MaybeError ddog_telemetry_handle_stop(const struct ddog_TelemetryWorkerHandle *handle);
270
-
271
- /**
272
- * * compatible: should be false if the metric is language specific, true otherwise
273
- */
274
- struct ddog_ContextKey ddog_telemetry_handle_register_metric_context(const struct ddog_TelemetryWorkerHandle *handle,
275
- ddog_CharSlice name,
276
- enum ddog_MetricType metric_type,
277
- struct ddog_Vec_Tag tags,
278
- bool common,
279
- enum ddog_MetricNamespace namespace_);
280
-
281
- ddog_MaybeError ddog_telemetry_handle_add_point(const struct ddog_TelemetryWorkerHandle *handle,
282
- const struct ddog_ContextKey *context_key,
283
- double value);
284
-
285
- ddog_MaybeError ddog_telemetry_handle_add_point_with_tags(const struct ddog_TelemetryWorkerHandle *handle,
286
- const struct ddog_ContextKey *context_key,
287
- double value,
288
- struct ddog_Vec_Tag extra_tags);
289
-
290
- /**
291
- * This function takes ownership of the handle. It should not be used after calling it
292
- */
293
- void ddog_telemetry_handle_wait_for_shutdown(struct ddog_TelemetryWorkerHandle *handle);
294
-
295
- /**
296
- * This function takes ownership of the handle. It should not be used after calling it
297
- */
298
- void ddog_telemetry_handle_wait_for_shutdown_ms(struct ddog_TelemetryWorkerHandle *handle,
299
- uint64_t wait_for_ms);
300
-
301
- /**
302
- * Drops the handle without waiting for shutdown. The worker will continue running in the
303
- * background until it exits by itself
304
- */
305
- void ddog_telemetry_handle_drop(struct ddog_TelemetryWorkerHandle *handle);
306
-
307
- #endif /* DDOG_TELEMETRY_H */
@@ -1,15 +0,0 @@
1
- # Copyright 2021-Present Datadog, Inc. https://www.datadoghq.com/
2
- # SPDX-License-Identifier: Apache-2.0
3
-
4
- prefix=${pcfiledir}/../..
5
- exec_prefix=${prefix}
6
- libdir=${exec_prefix}/lib
7
- includedir=${prefix}/include
8
-
9
- Name: datadog_profiling
10
- Description: Contains common code used to implement Datadog's Continuous Profilers. (Dynamic linking variant, sets rpath)
11
- Version: 33.0.0
12
- Requires:
13
- Libs: -L${libdir} -ldatadog_profiling -Wl,-rpath,${libdir}
14
- Libs.private:
15
- Cflags: -I${includedir}
@@ -1,4 +0,0 @@
1
- Datadog libdatadog
2
- Copyright 2021-2022 Datadog, Inc.
3
-
4
- This product includes software developed at Datadog (<https://www.datadoghq.com/>).
@@ -1,216 +0,0 @@
1
- // Copyright 2021-Present Datadog, Inc. https://www.datadoghq.com/
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
-
5
- #ifndef DDOG_DATA_PIPELINE_H
6
- #define DDOG_DATA_PIPELINE_H
7
-
8
- #include <stdarg.h>
9
- #include <stdbool.h>
10
- #include <stdint.h>
11
- #include <stdlib.h>
12
- #include "common.h"
13
- #ifdef __cplusplus
14
- extern "C" {
15
- #endif // __cplusplus
16
-
17
- /**
18
- * Frees `error` and all its contents. After being called error will not point to a valid memory
19
- * address so any further actions on it could lead to undefined behavior.
20
- */
21
- void ddog_trace_exporter_error_free(struct ddog_TraceExporterError *error);
22
-
23
- /**
24
- * Return a read-only pointer to the response body. This pointer is only valid as long as
25
- * `response` is valid.
26
- */
27
- const uint8_t *ddog_trace_exporter_response_get_body(const struct ddog_TraceExporterResponse *response,
28
- uintptr_t *out_len);
29
-
30
- /**
31
- * Free `response` and all its contents. After being called response will not point to a valid
32
- * memory address so any further actions on it could lead to undefined behavior.
33
- */
34
- void ddog_trace_exporter_response_free(struct ddog_TraceExporterResponse *response);
35
-
36
- void ddog_trace_exporter_config_new(struct ddog_TraceExporterConfig **out_handle);
37
-
38
- /**
39
- * Frees TraceExporterConfig handle internal resources.
40
- */
41
- void ddog_trace_exporter_config_free(struct ddog_TraceExporterConfig *handle);
42
-
43
- /**
44
- * Sets traces destination.
45
- */
46
- struct ddog_TraceExporterError *ddog_trace_exporter_config_set_url(struct ddog_TraceExporterConfig *config,
47
- ddog_CharSlice url);
48
-
49
- /**
50
- * Sets tracer's version to be included in the headers request.
51
- */
52
- struct ddog_TraceExporterError *ddog_trace_exporter_config_set_tracer_version(struct ddog_TraceExporterConfig *config,
53
- ddog_CharSlice version);
54
-
55
- /**
56
- * Sets tracer's language to be included in the headers request.
57
- */
58
- struct ddog_TraceExporterError *ddog_trace_exporter_config_set_language(struct ddog_TraceExporterConfig *config,
59
- ddog_CharSlice lang);
60
-
61
- /**
62
- * Sets tracer's language version to be included in the headers request.
63
- */
64
- struct ddog_TraceExporterError *ddog_trace_exporter_config_set_lang_version(struct ddog_TraceExporterConfig *config,
65
- ddog_CharSlice version);
66
-
67
- /**
68
- * Sets tracer's language interpreter to be included in the headers request.
69
- */
70
- struct ddog_TraceExporterError *ddog_trace_exporter_config_set_lang_interpreter(struct ddog_TraceExporterConfig *config,
71
- ddog_CharSlice interpreter);
72
-
73
- /**
74
- * Sets hostname information to be included in the headers request.
75
- */
76
- struct ddog_TraceExporterError *ddog_trace_exporter_config_set_hostname(struct ddog_TraceExporterConfig *config,
77
- ddog_CharSlice hostname);
78
-
79
- /**
80
- * Sets environment information to be included in the headers request.
81
- */
82
- struct ddog_TraceExporterError *ddog_trace_exporter_config_set_env(struct ddog_TraceExporterConfig *config,
83
- ddog_CharSlice env);
84
-
85
- struct ddog_TraceExporterError *ddog_trace_exporter_config_set_version(struct ddog_TraceExporterConfig *config,
86
- ddog_CharSlice version);
87
-
88
- /**
89
- * Sets service name to be included in the headers request.
90
- */
91
- struct ddog_TraceExporterError *ddog_trace_exporter_config_set_service(struct ddog_TraceExporterConfig *config,
92
- ddog_CharSlice service);
93
-
94
- /**
95
- * Enables health metrics emission.
96
- */
97
- struct ddog_TraceExporterError *ddog_trace_exporter_config_enable_health_metrics(struct ddog_TraceExporterConfig *config,
98
- bool is_enabled);
99
-
100
- /**
101
- * Enables telemetry metrics.
102
- */
103
- struct ddog_TraceExporterError *ddog_trace_exporter_config_enable_telemetry(struct ddog_TraceExporterConfig *config,
104
- const struct ddog_TelemetryClientConfig *telemetry_cfg);
105
-
106
- /**
107
- * Set client-side stats computation status.
108
- */
109
- struct ddog_TraceExporterError *ddog_trace_exporter_config_set_compute_stats(struct ddog_TraceExporterConfig *config,
110
- bool is_enabled);
111
-
112
- /**
113
- * Sets `Datadog-Client-Computed-Stats` header to `true`.
114
- * This indicates that the upstream system has already computed the stats,
115
- * and no further stats computation should be performed.
116
- *
117
- * <div class="warning">
118
- * This method must not be used when `compute_stats` is enabled, as it could
119
- * result in duplicate stats computation.
120
- * </div>
121
- *
122
- * A common use case is in Application Security Monitoring (ASM) scenarios:
123
- * when APM is disabled but ASM is enabled, setting this header to `true`
124
- * ensures that no stats are computed at any level (exporter or agent).
125
- */
126
- struct ddog_TraceExporterError *ddog_trace_exporter_config_set_client_computed_stats(struct ddog_TraceExporterConfig *config,
127
- bool client_computed_stats);
128
-
129
- /**
130
- * Sets the process tags to be included in the stats payload.
131
- */
132
- struct ddog_TraceExporterError *ddog_trace_exporter_config_set_process_tags(struct ddog_TraceExporterConfig *config,
133
- ddog_CharSlice process_tags);
134
-
135
- /**
136
- * Sets the `X-Datadog-Test-Session-Token` header. Only used for testing with the test agent.
137
- */
138
- struct ddog_TraceExporterError *ddog_trace_exporter_config_set_test_session_token(struct ddog_TraceExporterConfig *config,
139
- ddog_CharSlice token);
140
-
141
- /**
142
- * Sets the timeout in ms for all agent's connections.
143
- */
144
- struct ddog_TraceExporterError *ddog_trace_exporter_config_set_connection_timeout(struct ddog_TraceExporterConfig *config,
145
- uint64_t timeout_ms);
146
-
147
- /**
148
- * Sets a shared runtime for the TraceExporter to use for background workers.
149
- *
150
- * `handle` must have been initialized with [`ddog_shared_runtime_new`].
151
- *
152
- * When set, the exporter will use the provided runtime instead of creating its own.
153
- * This allows multiple exporters (or other components) to share a single runtime.
154
- * The config holds a clone of the `Arc` (increments the strong count), so the
155
- * original handle remains valid and must still be freed with
156
- * [`ddog_shared_runtime_free`].
157
- */
158
- struct ddog_TraceExporterError *ddog_trace_exporter_config_set_shared_runtime(struct ddog_TraceExporterConfig *config,
159
- struct ddog_SharedRuntime *handle);
160
-
161
- /**
162
- * Enables OTLP HTTP/JSON export and sets the endpoint URL.
163
- *
164
- * When set, traces are sent to this URL in OTLP HTTP/JSON format instead of the Datadog
165
- * agent. The host language is responsible for resolving the endpoint from its configuration
166
- * (e.g. `OTEL_EXPORTER_OTLP_TRACES_ENDPOINT`) before calling this function.
167
- */
168
- struct ddog_TraceExporterError *ddog_trace_exporter_config_set_otlp_endpoint(struct ddog_TraceExporterConfig *config,
169
- ddog_CharSlice url);
170
-
171
- /**
172
- * Create a new TraceExporter instance.
173
- *
174
- * When an OTLP endpoint is configured via `TraceExporterConfig`, the exporter sends traces in
175
- * OTLP HTTP/JSON to that endpoint instead of the Datadog agent. The same payload (e.g.
176
- * MessagePack) is passed to `ddog_trace_exporter_send`; the library decodes and converts to
177
- * OTLP when OTLP is enabled.
178
- *
179
- * # Arguments
180
- *
181
- * * `out_handle` - The handle to write the TraceExporter instance in.
182
- * * `config` - The configuration used to set up the TraceExporter handle.
183
- */
184
- struct ddog_TraceExporterError *ddog_trace_exporter_new(ddog_TraceExporter **out_handle,
185
- const struct ddog_TraceExporterConfig *config);
186
-
187
- /**
188
- * Free the TraceExporter instance.
189
- *
190
- * # Arguments
191
- *
192
- * * handle - The handle to the TraceExporter instance.
193
- */
194
- void ddog_trace_exporter_free(ddog_TraceExporter *handle);
195
-
196
- /**
197
- * Send traces to the Datadog Agent.
198
- *
199
- * # Arguments
200
- *
201
- * * `handle` - The handle to the TraceExporter instance.
202
- * * `trace` - The traces to send to the Datadog Agent in the input format used to create the
203
- * TraceExporter. The memory for the trace must be valid for the life of the call to this
204
- * function.
205
- * * `trace_count` - The number of traces to send to the Datadog Agent.
206
- * * `response_out` - Optional handle to store a pointer to the agent response information.
207
- */
208
- struct ddog_TraceExporterError *ddog_trace_exporter_send(const ddog_TraceExporter *handle,
209
- ddog_ByteSlice trace,
210
- struct ddog_TraceExporterResponse **response_out);
211
-
212
- #ifdef __cplusplus
213
- } // extern "C"
214
- #endif // __cplusplus
215
-
216
- #endif /* DDOG_DATA_PIPELINE_H */