From 6aecc1f6377a579bf8f6509023b58adcf7d11a00 Mon Sep 17 00:00:00 2001 From: Alexandre Choura Date: Thu, 20 Feb 2025 10:56:25 +0100 Subject: [PATCH] style: Remove duration from serialization debug logs --- ext/serializer.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ext/serializer.c b/ext/serializer.c index fd0f8b7c18..1cf29186c9 100644 --- a/ext/serializer.c +++ b/ext/serializer.c @@ -1806,17 +1806,14 @@ void ddtrace_serialize_span_to_array(ddtrace_span_data *span, zval *array) { smart_str_0(&metrics_str); } prop_name = zend_hash_str_find(Z_ARR_P(el), ZEND_STRL("name")); // refetch, array may have been rehashed - log("Encoding span %" PRIu64 ": trace_id=%s, name='%s', service='%s', resource: '%s', type '%s' with tags: %s; metrics: %s; start: %ld; duration_start: %ld, and duration: %ld", + log("Encoding span %" PRIu64 ": trace_id=%s, name='%s', service='%s', resource: '%s', type '%s' with tags: %s; and metrics: %s", span->span_id, Z_STRVAL(span->root->property_trace_id), prop_name && Z_TYPE_P(prop_name) == IS_STRING ? Z_STRVAL_P(prop_name) : "", Z_TYPE(prop_service_as_string) == IS_STRING ? Z_STRVAL(prop_service_as_string) : "", Z_TYPE(prop_resource_as_string) == IS_STRING ? Z_STRVAL(prop_resource_as_string) : "", Z_TYPE(prop_type_as_string) == IS_STRING ? Z_STRVAL(prop_type_as_string) : "", meta_str.s ? ZSTR_VAL(meta_str.s) : "-", - metrics_str.s ? ZSTR_VAL(metrics_str.s) : "-", - span->start, - span->duration_start, - span->duration); + metrics_str.s ? ZSTR_VAL(metrics_str.s) : "-"); smart_str_free(&meta_str); smart_str_free(&metrics_str); })