|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#include <cstddef>#include <cstdint>#include <functional>#include <memory>#include <string>#include <string_view>#include "absl/status/status.h"#include "absl/status/statusor.h"#include "absl/time/clock.h"#include "absl/time/time.h"#include "prometheus/registry.h"Go to the source code of this file.
Classes | |
| struct | nanommo::SpanContext |
| class | nanommo::Span |
Namespaces | |
| namespace | nanommo |
Typedefs | |
| using | nanommo::SendSpans = std::function<absl::Status(const std::string& json)> |
| Sends a batch of spans, written as OTLP's JSON, and says whether it went. | |
Enumerations | |
| enum class | nanommo::SpanKind { nanommo::kInternal = 1 , nanommo::kServer = 2 , nanommo::kClient = 3 , nanommo::kProducer = 4 , nanommo::kConsumer = 5 } |
Functions | |
| std::string | nanommo::Traceparent (const SpanContext &context) |
| absl::StatusOr< SpanContext > | nanommo::ParseTraceparent (std::string_view traceparent) |
| SendSpans | nanommo::PostTo (const std::string &endpoint) |
| void | nanommo::StartTracing (std::string service, SendSpans send, prometheus::Registry *registry) |
| void | nanommo::StopTracing () |
| Span | nanommo::StartSpan (std::string_view name, SpanKind kind) |
| Span | nanommo::StartSpan (std::string_view name, SpanKind kind, const SpanContext &parent, absl::Time start) |
| std::string | nanommo::TraceField () |
| bool | nanommo::InTrace () |
| Span | nanommo::StartChildSpan (std::string_view name, SpanKind kind) |
Variables | |
| constexpr std::size_t | nanommo::kMostWaitingSpans = 4096 |