libdatadog 40.0.0.2.0 → 45.0.0.1.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.
- checksums.yaml +4 -4
- data/lib/libdatadog/version.rb +2 -2
- data/vendor/{libdatadog-40.0.0/aarch64-linux-musl → libdatadog-45.0.0/aarch64-linux}/LICENSE-3rdparty.csv +15 -12
- data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/aarch64-linux/bin/libdatadog-crashtracking-receiver +0 -0
- data/vendor/{libdatadog-40.0.0/x86_64-linux-musl → libdatadog-45.0.0/aarch64-linux}/include/datadog/common.h +176 -122
- data/vendor/{libdatadog-40.0.0/arm64-darwin → libdatadog-45.0.0/aarch64-linux}/include/datadog/data-pipeline.h +79 -9
- data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/aarch64-linux/include/datadog/ffe.h +12 -0
- data/vendor/{libdatadog-40.0.0/aarch64-linux-musl → libdatadog-45.0.0/aarch64-linux}/include/datadog/library-config.h +47 -24
- data/vendor/{libdatadog-40.0.0/x86_64-linux-musl → libdatadog-45.0.0/aarch64-linux}/include/datadog/otel-thread-ctx.h +35 -5
- data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/aarch64-linux/lib/libdatadog_profiling.so +0 -0
- data/vendor/{libdatadog-40.0.0/arm64-darwin → libdatadog-45.0.0/aarch64-linux}/lib/pkgconfig/datadog_profiling_with_rpath.pc +1 -1
- data/vendor/{libdatadog-40.0.0/arm64-darwin → libdatadog-45.0.0/aarch64-linux-musl}/LICENSE-3rdparty.csv +15 -12
- data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/aarch64-linux-musl/bin/libdatadog-crashtracking-receiver +0 -0
- data/vendor/{libdatadog-40.0.0/arm64-darwin → libdatadog-45.0.0/aarch64-linux-musl}/include/datadog/common.h +176 -122
- data/vendor/{libdatadog-40.0.0/aarch64-linux → libdatadog-45.0.0/aarch64-linux-musl}/include/datadog/data-pipeline.h +79 -9
- data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/aarch64-linux-musl/include/datadog/ffe.h +12 -0
- data/vendor/{libdatadog-40.0.0/arm64-darwin → libdatadog-45.0.0/aarch64-linux-musl}/include/datadog/library-config.h +47 -24
- data/vendor/{libdatadog-40.0.0/arm64-darwin → libdatadog-45.0.0/aarch64-linux-musl}/include/datadog/otel-thread-ctx.h +35 -5
- data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/aarch64-linux-musl/lib/libdatadog_profiling.so +0 -0
- data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/aarch64-linux-musl/lib/pkgconfig/datadog_profiling_with_rpath.pc +1 -1
- data/vendor/{libdatadog-40.0.0/aarch64-linux → libdatadog-45.0.0/arm64-darwin}/LICENSE-3rdparty.csv +15 -12
- data/vendor/{libdatadog-40.0.0/aarch64-linux-musl → libdatadog-45.0.0/arm64-darwin}/include/datadog/common.h +176 -122
- data/vendor/{libdatadog-40.0.0/aarch64-linux-musl → libdatadog-45.0.0/arm64-darwin}/include/datadog/data-pipeline.h +79 -9
- data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/arm64-darwin/include/datadog/ffe.h +12 -0
- data/vendor/{libdatadog-40.0.0/aarch64-linux → libdatadog-45.0.0/arm64-darwin}/include/datadog/library-config.h +47 -24
- data/vendor/{libdatadog-40.0.0/aarch64-linux → libdatadog-45.0.0/arm64-darwin}/include/datadog/otel-thread-ctx.h +35 -5
- data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/arm64-darwin/lib/libdatadog_profiling.dylib +0 -0
- data/vendor/{libdatadog-40.0.0/x86_64-linux-musl → libdatadog-45.0.0/arm64-darwin}/lib/pkgconfig/datadog_profiling_with_rpath.pc +1 -1
- data/vendor/libdatadog-45.0.0/x86_64-linux/LICENSE-3rdparty.csv +557 -0
- data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/x86_64-linux/bin/libdatadog-crashtracking-receiver +0 -0
- data/vendor/libdatadog-45.0.0/x86_64-linux/include/datadog/common.h +3169 -0
- data/vendor/libdatadog-45.0.0/x86_64-linux/include/datadog/data-pipeline.h +682 -0
- data/vendor/libdatadog-45.0.0/x86_64-linux/include/datadog/ffe.h +191 -0
- data/vendor/libdatadog-45.0.0/x86_64-linux/include/datadog/library-config.h +138 -0
- data/vendor/libdatadog-45.0.0/x86_64-linux/include/datadog/otel-thread-ctx.h +116 -0
- data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/x86_64-linux/lib/libdatadog_profiling.so +0 -0
- data/vendor/libdatadog-45.0.0/x86_64-linux/lib/pkgconfig/datadog_profiling_with_rpath.pc +15 -0
- data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/x86_64-linux-musl/LICENSE-3rdparty.csv +15 -12
- data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/x86_64-linux-musl/bin/libdatadog-crashtracking-receiver +0 -0
- data/vendor/{libdatadog-40.0.0/aarch64-linux → libdatadog-45.0.0/x86_64-linux-musl}/include/datadog/common.h +176 -122
- data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/x86_64-linux-musl/include/datadog/data-pipeline.h +79 -9
- data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/x86_64-linux-musl/include/datadog/ffe.h +12 -0
- data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/x86_64-linux-musl/include/datadog/library-config.h +47 -24
- data/vendor/{libdatadog-40.0.0/aarch64-linux-musl → libdatadog-45.0.0/x86_64-linux-musl}/include/datadog/otel-thread-ctx.h +35 -5
- data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/x86_64-linux-musl/lib/libdatadog_profiling.so +0 -0
- data/vendor/{libdatadog-40.0.0/aarch64-linux → libdatadog-45.0.0/x86_64-linux-musl}/lib/pkgconfig/datadog_profiling_with_rpath.pc +1 -1
- metadata +91 -91
- data/vendor/libdatadog-40.0.0/x86_64-linux/LICENSE-3rdparty.csv +0 -554
- data/vendor/libdatadog-40.0.0/x86_64-linux/include/datadog/common.h +0 -3115
- data/vendor/libdatadog-40.0.0/x86_64-linux/include/datadog/data-pipeline.h +0 -612
- data/vendor/libdatadog-40.0.0/x86_64-linux/include/datadog/ffe.h +0 -179
- data/vendor/libdatadog-40.0.0/x86_64-linux/include/datadog/library-config.h +0 -115
- data/vendor/libdatadog-40.0.0/x86_64-linux/include/datadog/otel-thread-ctx.h +0 -86
- data/vendor/libdatadog-40.0.0/x86_64-linux/lib/pkgconfig/datadog_profiling_with_rpath.pc +0 -15
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/aarch64-linux/LICENSE +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/aarch64-linux/NOTICE +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/aarch64-linux/include/datadog/blazesym.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/aarch64-linux/include/datadog/crashtracker.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/aarch64-linux/include/datadog/ddsketch.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/aarch64-linux/include/datadog/log.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/aarch64-linux/include/datadog/profiling.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/aarch64-linux/include/datadog/shared-runtime.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/aarch64-linux/include/datadog/telemetry.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/aarch64-linux-musl/LICENSE +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/aarch64-linux-musl/NOTICE +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/aarch64-linux-musl/include/datadog/blazesym.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/aarch64-linux-musl/include/datadog/crashtracker.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/aarch64-linux-musl/include/datadog/ddsketch.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/aarch64-linux-musl/include/datadog/log.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/aarch64-linux-musl/include/datadog/profiling.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/aarch64-linux-musl/include/datadog/shared-runtime.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/aarch64-linux-musl/include/datadog/telemetry.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/arm64-darwin/LICENSE +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/arm64-darwin/NOTICE +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/arm64-darwin/bin/libdatadog-crashtracking-receiver +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/arm64-darwin/include/datadog/blazesym.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/arm64-darwin/include/datadog/crashtracker.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/arm64-darwin/include/datadog/ddsketch.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/arm64-darwin/include/datadog/log.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/arm64-darwin/include/datadog/profiling.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/arm64-darwin/include/datadog/shared-runtime.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/arm64-darwin/include/datadog/telemetry.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/x86_64-linux/LICENSE +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/x86_64-linux/NOTICE +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/x86_64-linux/include/datadog/blazesym.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/x86_64-linux/include/datadog/crashtracker.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/x86_64-linux/include/datadog/ddsketch.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/x86_64-linux/include/datadog/log.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/x86_64-linux/include/datadog/profiling.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/x86_64-linux/include/datadog/shared-runtime.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/x86_64-linux/include/datadog/telemetry.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/x86_64-linux-musl/LICENSE +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/x86_64-linux-musl/NOTICE +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/x86_64-linux-musl/include/datadog/blazesym.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/x86_64-linux-musl/include/datadog/crashtracker.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/x86_64-linux-musl/include/datadog/ddsketch.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/x86_64-linux-musl/include/datadog/log.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/x86_64-linux-musl/include/datadog/profiling.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/x86_64-linux-musl/include/datadog/shared-runtime.h +0 -0
- /data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/x86_64-linux-musl/include/datadog/telemetry.h +0 -0
|
@@ -147,6 +147,18 @@ struct ddog_ffe_Result_HandleConfiguration ddog_ffe_configuration_new(struct ddo
|
|
|
147
147
|
*/
|
|
148
148
|
void ddog_ffe_configuration_drop(ddog_ffe_Handle_Configuration *config);
|
|
149
149
|
|
|
150
|
+
/**
|
|
151
|
+
* Get the config-level `observeFullEvaluationData` flag.
|
|
152
|
+
*
|
|
153
|
+
* Opt-in boolean for emitting full flag evaluation data from SDKs to Datadog. Flag evaluation data
|
|
154
|
+
* may contain PII; defaults to `false` for privacy.
|
|
155
|
+
*
|
|
156
|
+
* # Safety
|
|
157
|
+
*
|
|
158
|
+
* `config` must be a valid `Configuration` handle created by `ddog_ffe_configuration_new`.
|
|
159
|
+
*/
|
|
160
|
+
bool ddog_ffe_configuration_get_observe_full_evaluation_data(ddog_ffe_Handle_Configuration config);
|
|
161
|
+
|
|
150
162
|
/**
|
|
151
163
|
* Creates a new EvaluationContext with the given targeting key and attributes.
|
|
152
164
|
*
|
|
@@ -24,32 +24,8 @@ void ddog_library_configurator_with_fleet_path(struct ddog_Configurator *c,
|
|
|
24
24
|
void ddog_library_configurator_with_process_info(struct ddog_Configurator *c,
|
|
25
25
|
struct ddog_ProcessInfo p);
|
|
26
26
|
|
|
27
|
-
void ddog_library_configurator_with_detect_process_info(struct ddog_Configurator *c);
|
|
28
|
-
|
|
29
27
|
void ddog_library_configurator_drop(struct ddog_Configurator*);
|
|
30
28
|
|
|
31
|
-
struct ddog_LibraryConfigLoggedResult ddog_library_configurator_get(const struct ddog_Configurator *configurator);
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Returns a static null-terminated string, containing the name of the environment variable
|
|
35
|
-
* associated with the library configuration
|
|
36
|
-
*/
|
|
37
|
-
struct ddog_CStr ddog_library_config_source_to_string(enum ddog_LibraryConfigSource name);
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Returns a static null-terminated string with the path to the managed stable config yaml config
|
|
41
|
-
* file
|
|
42
|
-
*/
|
|
43
|
-
struct ddog_CStr ddog_library_config_fleet_stable_config_path(void);
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Returns a static null-terminated string with the path to the local stable config yaml config
|
|
47
|
-
* file
|
|
48
|
-
*/
|
|
49
|
-
struct ddog_CStr ddog_library_config_local_stable_config_path(void);
|
|
50
|
-
|
|
51
|
-
void ddog_library_config_drop(struct ddog_LibraryConfigLoggedResult config_result);
|
|
52
|
-
|
|
53
29
|
/**
|
|
54
30
|
* Allocates and returns a pointer to a new `TracerMetadata` object on the heap.
|
|
55
31
|
*
|
|
@@ -89,6 +65,29 @@ void ddog_tracer_metadata_set(struct ddog_TracerMetadata *ptr,
|
|
|
89
65
|
enum ddog_MetadataKind kind,
|
|
90
66
|
const char *value);
|
|
91
67
|
|
|
68
|
+
/**
|
|
69
|
+
* Includes thread-context discovery metadata in the `TracerMetadata` object pointed to by `ptr`.
|
|
70
|
+
*
|
|
71
|
+
* If the builder has no thread-context metadata, configures it to publish
|
|
72
|
+
* the `tlsdesc_v1_dev` schema and a key map containing `datadog.local_root_span_id`.
|
|
73
|
+
* If the thread-context metadata is already set, leaves it unchanged.
|
|
74
|
+
*
|
|
75
|
+
* This function only updates the builder. Call `ddog_tracer_metadata_store` to publish it.
|
|
76
|
+
*
|
|
77
|
+
* # Arguments
|
|
78
|
+
* - `ptr`: Pointer to a `TracerMetadata` instance.
|
|
79
|
+
*
|
|
80
|
+
* # Safety
|
|
81
|
+
* - If non-null, `ptr` must point to a valid, properly aligned, live `TracerMetadata`.
|
|
82
|
+
* - The caller must ensure exclusive access to the instance for the duration of the call.
|
|
83
|
+
* - Ownership remains with the caller
|
|
84
|
+
*
|
|
85
|
+
* # Returns
|
|
86
|
+
* - On success: `VoidResult::Ok`, also when thread-context metadata is already present
|
|
87
|
+
* - An error if `ptr` is null.
|
|
88
|
+
*/
|
|
89
|
+
struct ddog_VoidResult ddog_tracer_metadata_include_otel_thread_context(struct ddog_TracerMetadata *ptr);
|
|
90
|
+
|
|
92
91
|
/**
|
|
93
92
|
* Serializes the `TracerMetadata` into a platform-specific memory handle (e.g., memfd on Linux).
|
|
94
93
|
* This function also attempts to publish the tracer metadata as an OTel process context
|
|
@@ -108,6 +107,30 @@ void ddog_tracer_metadata_set(struct ddog_TracerMetadata *ptr,
|
|
|
108
107
|
*/
|
|
109
108
|
struct ddog_Result_TracerMemfdHandle ddog_tracer_metadata_store(struct ddog_TracerMetadata *ptr);
|
|
110
109
|
|
|
110
|
+
void ddog_library_configurator_with_detect_process_info(struct ddog_Configurator *c);
|
|
111
|
+
|
|
112
|
+
struct ddog_LibraryConfigLoggedResult ddog_library_configurator_get(const struct ddog_Configurator *configurator);
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Returns a static null-terminated string, containing the name of the environment variable
|
|
116
|
+
* associated with the library configuration
|
|
117
|
+
*/
|
|
118
|
+
struct ddog_CStr ddog_library_config_source_to_string(enum ddog_LibraryConfigSource name);
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Returns a static null-terminated string with the path to the managed stable config yaml
|
|
122
|
+
* config file
|
|
123
|
+
*/
|
|
124
|
+
struct ddog_CStr ddog_library_config_fleet_stable_config_path(void);
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Returns a static null-terminated string with the path to the local stable config yaml config
|
|
128
|
+
* file
|
|
129
|
+
*/
|
|
130
|
+
struct ddog_CStr ddog_library_config_local_stable_config_path(void);
|
|
131
|
+
|
|
132
|
+
void ddog_library_config_drop(struct ddog_LibraryConfigLoggedResult config_result);
|
|
133
|
+
|
|
111
134
|
#ifdef __cplusplus
|
|
112
135
|
} // extern "C"
|
|
113
136
|
#endif // __cplusplus
|
|
@@ -29,6 +29,15 @@ struct ddog_VoidResult ddog_otel_thread_ctx_sanity_check(void);
|
|
|
29
29
|
/**
|
|
30
30
|
* Allocate and initialise a new thread context, including its W3C trace-flags byte.
|
|
31
31
|
*
|
|
32
|
+
* `trace_id`, `span_id`, and `local_root_span_id` use W3C Trace Context byte order,
|
|
33
|
+
* equivalent to big-endian when interpreted as integers.
|
|
34
|
+
*
|
|
35
|
+
* When representing an active trace, both `trace_id` and `span_id` must be nonzero. Otherwise,
|
|
36
|
+
* `trace_id`, `span_id`, and `trace_flags` must be zero.
|
|
37
|
+
*
|
|
38
|
+
* This function does not validate IDs or reject invalid combinations of `trace_id`, `span_id`,
|
|
39
|
+
* and `trace_flags`.
|
|
40
|
+
*
|
|
32
41
|
* Returns a non-null owned handle that must eventually be released with
|
|
33
42
|
* `ddog_otel_thread_ctx_free`.
|
|
34
43
|
*/
|
|
@@ -42,9 +51,11 @@ struct ddog_ThreadContextHandle *ddog_otel_thread_ctx_new(const uint8_t (*trace_
|
|
|
42
51
|
*
|
|
43
52
|
* # Safety
|
|
44
53
|
*
|
|
54
|
+
* **`ctx` must not be a handle to a currently attached to a thread**. Only free detached
|
|
55
|
+
* contexts.
|
|
56
|
+
*
|
|
45
57
|
* `ctx` must be a valid non-null pointer obtained from `ddog_otel_thread_ctx_new` or
|
|
46
|
-
* `ddog_otel_thread_ctx_detach`, and must not be used after this call.
|
|
47
|
-
* must not be currently attached to a thread.
|
|
58
|
+
* `ddog_otel_thread_ctx_detach`, and must not be used after this call.
|
|
48
59
|
*/
|
|
49
60
|
void ddog_otel_thread_ctx_free(struct ddog_ThreadContextHandle *ctx);
|
|
50
61
|
|
|
@@ -54,9 +65,10 @@ void ddog_otel_thread_ctx_free(struct ddog_ThreadContextHandle *ctx);
|
|
|
54
65
|
*
|
|
55
66
|
* # Safety
|
|
56
67
|
*
|
|
57
|
-
* `ctx`
|
|
58
|
-
*
|
|
59
|
-
*
|
|
68
|
+
* Ownership of `ctx` is transferred to the TLS slot. **The caller must NOT free `ctx` while it
|
|
69
|
+
* is still actively attached**.
|
|
70
|
+
*
|
|
71
|
+
* `ctx` must be a valid non-null pointer obtained from this API.
|
|
60
72
|
*/
|
|
61
73
|
struct ddog_ThreadContextHandle *ddog_otel_thread_ctx_attach(struct ddog_ThreadContextHandle *ctx);
|
|
62
74
|
|
|
@@ -70,6 +82,7 @@ struct ddog_ThreadContextHandle *ddog_otel_thread_ctx_detach(void);
|
|
|
70
82
|
|
|
71
83
|
/**
|
|
72
84
|
* Update the currently attached context in-place, including its W3C trace-flags byte.
|
|
85
|
+
* Uses the same ID byte order and zero-value rules as `ddog_otel_thread_ctx_new`.
|
|
73
86
|
*
|
|
74
87
|
* If no context is currently attached, one is created and attached, equivalent to calling
|
|
75
88
|
* `ddog_otel_thread_ctx_new` followed by `ddog_otel_thread_ctx_attach`.
|
|
@@ -79,6 +92,23 @@ void ddog_otel_thread_ctx_update(const uint8_t (*trace_id)[16],
|
|
|
79
92
|
uint8_t trace_flags,
|
|
80
93
|
const uint8_t (*local_root_span_id)[8]);
|
|
81
94
|
|
|
95
|
+
/**
|
|
96
|
+
* Update `ctx` and attach it to the current thread. Returns the previously attached different
|
|
97
|
+
* context, if any. Uses the same ID byte order and zero-value rules as
|
|
98
|
+
* `ddog_otel_thread_ctx_new`.
|
|
99
|
+
*
|
|
100
|
+
* # Safety
|
|
101
|
+
*
|
|
102
|
+
* `ctx` may be null; otherwise it must be a valid non-null pointer obtained from this API.
|
|
103
|
+
* If attached, it must be attached only to the calling native thread and must not be
|
|
104
|
+
* concurrently updated or freed. A non-null returned context is owned by the caller.
|
|
105
|
+
*/
|
|
106
|
+
struct ddog_ThreadContextHandle *ddog_otel_thread_ctx_update_and_attach(struct ddog_ThreadContextHandle *ctx,
|
|
107
|
+
const uint8_t (*trace_id)[16],
|
|
108
|
+
const uint8_t (*span_id)[8],
|
|
109
|
+
uint8_t trace_flags,
|
|
110
|
+
const uint8_t (*local_root_span_id)[8]);
|
|
111
|
+
|
|
82
112
|
#ifdef __cplusplus
|
|
83
113
|
} // extern "C"
|
|
84
114
|
#endif // __cplusplus
|
data/vendor/{libdatadog-40.0.0 → libdatadog-45.0.0}/arm64-darwin/lib/libdatadog_profiling.dylib
RENAMED
|
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: 45.0.0
|
|
12
12
|
Requires:
|
|
13
13
|
Libs: -L${libdir} -ldatadog_profiling -Wl,-rpath,${libdir}
|
|
14
14
|
Libs.private:
|