LogIt++
Header-only, macro-first C++ logging library
Loading...
Searching...
No Matches
OtlpJsonFormatConfig.hpp
Go to the documentation of this file.
1#pragma once
2#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_LOGGERS_OTLP_OTLPJSONFORMATCONFIG_HPP_INCLUDED
3#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_LOGGERS_OTLP_OTLPJSONFORMATCONFIG_HPP_INCLUDED
4
7
8#include <string>
9
10namespace logit {
11
15 std::string service_name = "logit-app";
16 std::string service_namespace;
17 std::string service_instance_id;
19 bool include_source = true;
20 bool include_thread_id = true;
21 bool include_format = true;
22 bool include_arg_names = false;
23 bool include_args = true;
24 std::string args_prefix = "logit.arg.";
25 };
26
27} // namespace logit
28
29#endif // LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_LOGGERS_OTLP_OTLPJSONFORMATCONFIG_HPP_INCLUDED
The primary namespace for the LogIt++ library.
Serialization settings for OTLP JSON payload construction.
bool include_thread_id
Export thread id attribute.
bool include_format
Export original format string as logit.format.
bool include_source
Export source file, line, and function attributes.
std::string args_prefix
Key prefix for structured arg attributes.
bool include_arg_names
Export original argument names as logit.arg_names (legacy).
std::string service_namespace
Optional service.namespace resource attribute.
std::string service_instance_id
Optional service.instance.id resource attribute.
bool include_args
Export structured typed arg attributes.
std::string deployment_environment
Optional deployment.environment.name resource attribute.
std::string service_name
service.name resource attribute.