Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ starts no thread and costs nothing; the first that applies is the reason:

`client.disabledReason()` says which one applied — `"environment"`, `"config"`
or `"no key"`, or `"unavailable"` when the client cannot send at all (a
browser build, a blank base URL, application name or version, a version over
255 bytes, or the thread could
not be started) — and is empty when the client reports, so a program can print it.
browser build, a blank base URL, application name or version, a version or
explicit installation ID over 255 bytes, or the thread could not be started) —
and is empty when the client reports, so a program can print it.
A default-constructed `TraceClient` is disabled with reason `"config"`.
A disabled client also never makes up or writes an
[installation ID](#every-event-carries-a-random-installation-id).
Expand Down
8 changes: 4 additions & 4 deletions trace_client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,6 @@ inline std::string number(double value) {
return text;
}

/**
* The report body. JSON is written by hand so this file has no dependencies;
* the shape is fixed and small, three scalars and a flat string map.
*/
/** The tag every event carries the installation's ID as. */
static const char *const INSTALL_TAG = "install";

Expand Down Expand Up @@ -350,6 +346,10 @@ inline void makeParentDirectories(const std::string &path) {
}
}

/**
* The report body. JSON is written by hand so this file has no dependencies;
* the shape is fixed and small, three scalars and a flat string map.
*/
inline std::string json(const std::string &application, const std::string &name,
bool hasValue, double value, const Tags &tags) {
std::string out = "{\"application\":" + quote(cleanUtf8(application, std::string::npos));
Expand Down
Loading