Skip to content

Commit 3f47970

Browse files
bwoebiLeiyks
andauthored
Update ext/span_stats.c
Co-authored-by: Alexandre Rulleau <[email protected]>
1 parent cd934bd commit 3f47970

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ext/span_stats.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,9 @@ static ddog_PhpSpanStats ddtrace_build_span_stats_core(
271271
? dd_zend_string_to_CharSlice(Z_STR_P(service_source_zv))
272272
: DDOG_CHARSLICE_C("");
273273

274-
ddog_CharSlice grpc_meta[4];
275-
double grpc_metrics[4];
276-
for (int i = 0; i < 4; i++) {
274+
ddog_CharSlice grpc_meta[ddog_PHP_GRPC_KEY_COUNT];
275+
double grpc_metrics[ddog_PHP_GRPC_KEY_COUNT];
276+
for (int i = 0; i < ddog_PHP_GRPC_KEY_COUNT; i++) {
277277
grpc_meta[i] = DDOG_CHARSLICE_C("");
278278
grpc_metrics[i] = NAN;
279279
if (meta) {

0 commit comments

Comments
 (0)