Skip to content

Commit feb57fa

Browse files
committed
opentelemetry: drop dependency of the pt.h module
Close #3869 (cherry picked from commit 5f106c4)
1 parent 703e8b5 commit feb57fa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/opentelemetry/opentelemetry.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include <stdarg.h>
2727
#include <stdio.h>
2828
#include <string.h>
29+
#include <unistd.h>
2930
#include <chrono>
3031
#include <string>
3132
#include <memory>
@@ -63,7 +64,6 @@ extern "C" {
6364
#include "../../profiling.h"
6465
#include "../../log_interface.h"
6566
#include "../../str.h"
66-
#include "../../pt.h"
6767
#include "../../route.h"
6868
#include "../../version.h"
6969
#include "../../ip_addr.h"
@@ -378,7 +378,7 @@ static int otel_init_provider(void)
378378

379379
otelsdkresource::ResourceAttributes attrs = {
380380
{ "service.name", service_name },
381-
{ "process.pid", (int64_t)my_pid() }
381+
{ "process.pid", (int64_t)getpid() }
382382
};
383383

384384
auto resource = otelsdkresource::Resource::Create(attrs);

0 commit comments

Comments
 (0)