File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -256,13 +256,13 @@ static void dd_init_crashtracker() {
256256 free ((void * ) socket_path .ptr );
257257 socket_path .ptr = crashtracker_socket_path ;
258258
259- ddog_Endpoint * agent_endpoint = ddtrace_sidecar_agent_endpoint ();
260- if (!agent_endpoint ) {
259+ char * agent_url = ddtrace_agent_url ();
260+ if (!agent_url ) {
261261 return ;
262262 }
263263
264264 ddog_crasht_Config config = {
265- .endpoint = agent_endpoint ,
265+ .endpoint = {. ptr = agent_url , . len = strlen ( agent_url )} ,
266266 .timeout_ms = 5000 ,
267267 .resolve_frames = DDOG_CRASHT_STACKTRACE_COLLECTION_ENABLED_WITH_INPROCESS_SYMBOLS ,
268268 .optional_unix_socket_filename = socket_path ,
@@ -281,10 +281,10 @@ static void dd_init_crashtracker() {
281281 ),
282282 "Cannot initialize CrashTracker"
283283 );
284+ free (agent_url );
284285
285286 ddtrace_register_crashtracking_frames_collection ();
286287
287- ddog_endpoint_drop (agent_endpoint );
288288 ddog_Vec_Tag_drop (tags );
289289}
290290
You can’t perform that action at this time.
0 commit comments