@@ -1089,17 +1089,15 @@ static void dd_serialize_span_events(zend_array *events, smart_str *buf) {
10891089}
10901090
10911091// --- Native V1 span links/events (DD_TRACE_AGENT_PROTOCOL_VERSION=1/1.0) ---
1092- // On the V1 wire, links/events are emitted into libdatadog's native span structures
1093- // (span_links field 11, span_events field 12) rather than the JSON-in-meta V0.4 form.
1092+ // On the V1 wire these go into libdatadog's native span structures, not the V0.4 JSON-in-meta form.
10941093
10951094static bool dd_v1_native_span_enabled (void ) {
10961095 zend_string * pv = get_global_DD_TRACE_AGENT_PROTOCOL_VERSION ();
10971096 return zend_string_equals_literal (pv , "1" ) || zend_string_equals_literal (pv , "1.0" );
10981097}
10991098
1100- // Emit each SpanLink into the native span. trace_id/span_id are hex strings; the V1 link
1101- // wire has no flags source on the PHP side and no dropped_attributes_count field, so both
1102- // are omitted. Link attributes are a string map.
1099+ // Emit each SpanLink into the native span. The V1 link wire omits flags and
1100+ // dropped_attributes_count (no PHP-side source); attributes are a string map.
11031101static void dd_span_links_to_native (zend_array * links , ddog_SpanBytes * rust_span ) {
11041102 zval * val ;
11051103 ZEND_HASH_FOREACH_VAL (links , val ) {
@@ -1143,7 +1141,6 @@ static void dd_span_links_to_native(zend_array *links, ddog_SpanBytes *rust_span
11431141 } ZEND_HASH_FOREACH_END ();
11441142}
11451143
1146- // Dispatch a single event attribute to the typed native setter based on its zval type.
11471144static void dd_event_attribute_to_native (ddog_SpanEventBytes * event , ddog_CharSlice key , zval * val ) {
11481145 ZVAL_DEREF (val );
11491146 switch (Z_TYPE_P (val )) {
0 commit comments