Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
khanayan123 committed Nov 1, 2024
1 parent 0f2e7dc commit 2c8c58f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions ext/ddtrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1115,14 +1115,6 @@ static zval *ddtrace_root_span_data_write(zend_object *object, zend_string *memb
if (ddtrace_span_is_entrypoint_root(&span->span) && !zend_is_identical(&span->property_service, value)) {
root_span_data_changed = true;
}
// As per unified service tagging spec if a span is created with a service name different from the global
// service name it will not inherit the global version value
if (!ddtrace_span_is_entrypoint_root(&span->span) && !zend_is_identical(&span->property_service, value)) {
// Free the old value of property_version
zval_ptr_dtor(&span->property_version);
// Set property_version to empty string
ZVAL_EMPTY_STRING(&span->property_version);
}
cache_slot = NULL;
} else if (zend_string_equals_literal(prop_name, "env")) {
if (ddtrace_span_is_entrypoint_root(&span->span) && !zend_is_identical(&span->property_env, value)) {
Expand Down

0 comments on commit 2c8c58f

Please sign in to comment.