aboutsummaryrefslogtreecommitdiff
path: root/www/freenginx-devel/files/extra-patch-ngx_otel_module.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'www/freenginx-devel/files/extra-patch-ngx_otel_module.cpp')
-rw-r--r--www/freenginx-devel/files/extra-patch-ngx_otel_module.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/www/freenginx-devel/files/extra-patch-ngx_otel_module.cpp b/www/freenginx-devel/files/extra-patch-ngx_otel_module.cpp
new file mode 100644
index 000000000000..0024171deaec
--- /dev/null
+++ b/www/freenginx-devel/files/extra-patch-ngx_otel_module.cpp
@@ -0,0 +1,14 @@
+--- ../nginx-otel-3a655df/src/ngx_otel_module.cpp.orig 2024-12-19 17:07:23.000000000 -0500
++++ ../nginx-otel-3a655df/src/ngx_otel_module.cpp 2025-10-31 11:50:12.604868000 -0400
+@@ -512,7 +512,11 @@
+ try {
+ BatchExporter::SpanInfo info{
+ getSpanName(r), ctx->current, ctx->parent.spanId,
++#if defined freenginx
++ (toNanoSec(now->sec, now->msec) - ((ngx_current_msec - r->start_time) * 1000000)),
++#else
+ toNanoSec(r->start_sec, r->start_msec),
++#endif
+ toNanoSec(now->sec, now->msec)};
+
+ bool ok = gExporter->add(info, [r](BatchExporter::Span& span) {