Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
boardy committed Mar 28, 2018
2 parents 3c24a92 + 9fd339e commit 5357a29
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
3 changes: 1 addition & 2 deletions DataDogStatsD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ void DataDogStatsD::send(std::map<string, string> data, float sampleRate, string

void DataDogStatsD::event(DDEvent& ddEvent)
{
//cout << ddEvent.returnDDEventUDPString() << endl;
string udp_message = ddEvent.returnDDEventUDPString();
this->flush(udp_message);
}
Expand Down Expand Up @@ -530,4 +529,4 @@ DataDogStatsD::~DataDogStatsD()
delete this->http_event_thread;
this->http_event_thread = NULL;
}
}
}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@

<a href="https://ci.boardiesitsolutions.com/viewType.html?buildTypeId=CppDatadogstatsd_Build&guest=1">
<img src="https://ci.boardiesitsolutions.com/app/rest/builds/buildType:(id:CppDatadogstatsd_Build)/statusIcon"/>
</a>

# C++ DataDog StatsD Client

This is a simple library to allow you to submit custom metrics from your C++ apps in
Expand Down
8 changes: 4 additions & 4 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ LDFLAGS = -lpthread -pthread -lm -L/usr/lib64/
.PHONY: clean

default:
$(CC) -shared -Wl,-soname,libDataDogStatsD.so.1 -o $(lib_name) $(OBJECTS) $(LDFLAGS)
ln -sf $(lib_name) libDataDogStatsD.so
$(CC) -shared -Wl,-soname,libDataDogStatsD.so.1 -o $(lib_name) $(OBJECTS) $(LDFLAGS)
ln -sf $(lib_name) libDataDogStatsD.so

clean:
rm -vf $(OBJECTS) depend $(lib_name)
rm -vf $(OBJECTS) depend $(lib_name)

depend: $(SOURCES)
$(CC) $(CFLAGS) > depend
$(CC) $(CFLAGS) > depend

-include depend

0 comments on commit 5357a29

Please sign in to comment.