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
10
namespace
logit
{
11
14
struct
OtlpJsonFormatConfig
{
15
std::string
service_name
=
"logit-app"
;
16
std::string
service_namespace
;
17
std::string
service_instance_id
;
18
std::string
deployment_environment
;
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
logit
The primary namespace for the LogIt++ library.
logit::OtlpJsonFormatConfig
Serialization settings for OTLP JSON payload construction.
Definition
OtlpJsonFormatConfig.hpp:14
logit::OtlpJsonFormatConfig::include_thread_id
bool include_thread_id
Export thread id attribute.
Definition
OtlpJsonFormatConfig.hpp:20
logit::OtlpJsonFormatConfig::include_format
bool include_format
Export original format string as logit.format.
Definition
OtlpJsonFormatConfig.hpp:21
logit::OtlpJsonFormatConfig::include_source
bool include_source
Export source file, line, and function attributes.
Definition
OtlpJsonFormatConfig.hpp:19
logit::OtlpJsonFormatConfig::args_prefix
std::string args_prefix
Key prefix for structured arg attributes.
Definition
OtlpJsonFormatConfig.hpp:24
logit::OtlpJsonFormatConfig::include_arg_names
bool include_arg_names
Export original argument names as logit.arg_names (legacy).
Definition
OtlpJsonFormatConfig.hpp:22
logit::OtlpJsonFormatConfig::service_namespace
std::string service_namespace
Optional service.namespace resource attribute.
Definition
OtlpJsonFormatConfig.hpp:16
logit::OtlpJsonFormatConfig::service_instance_id
std::string service_instance_id
Optional service.instance.id resource attribute.
Definition
OtlpJsonFormatConfig.hpp:17
logit::OtlpJsonFormatConfig::include_args
bool include_args
Export structured typed arg attributes.
Definition
OtlpJsonFormatConfig.hpp:23
logit::OtlpJsonFormatConfig::deployment_environment
std::string deployment_environment
Optional deployment.environment.name resource attribute.
Definition
OtlpJsonFormatConfig.hpp:18
logit::OtlpJsonFormatConfig::service_name
std::string service_name
service.name resource attribute.
Definition
OtlpJsonFormatConfig.hpp:15
include
logit_cpp
logit
loggers
otlp
OtlpJsonFormatConfig.hpp
Generated by
1.12.0