Alien-libnewrelic

 view release on metacpan or  search on metacpan

patch/hostname.diff  view on Meta::CPAN

+++ b/include/libnewrelic.h
@@ -1248,6 +1248,8 @@ bool newrelic_accept_distributed_trace_payload_httpsafe(
 bool newrelic_set_transaction_name(newrelic_txn_t* transaction,
                                    const char* transaction_name);
 
+bool newrelic_set_hostname(const char *hostname);
+
 /**
  * A list of examples for Doxygen to cross-reference. If a function in
  * libnewrelic.h appears in one of these examples, the example source
diff --git a/src/global.c b/src/global.c
index 1b0177a..791296f 100644
--- a/src/global.c
+++ b/src/global.c
@@ -6,6 +6,7 @@
 #include "util_memory.h"
 #include "util_sleep.h"
 #include "util_strings.h"
+#include "util_system.h"
 
 #include <stdlib.h>
 
@@ -129,3 +130,8 @@ void newrelic_add_api_supportability_metric(nrtxn_t* txn, const char* name) {
 



( run in 0.850 second using v1.01-cache-2.11-cpan-49f99fa48dc )