LogIt++
Header-only, macro-first C++ logging library
Loading...
Searching...
No Matches
logit::OtlpJsonFormatConfig Struct Reference

Serialization settings for OTLP JSON payload construction. More...

#include <OtlpJsonFormatConfig.hpp>

Public Attributes

std::string service_name = "logit-app"
 service.name resource attribute.
 
std::string service_namespace
 Optional service.namespace resource attribute.
 
std::string service_instance_id
 Optional service.instance.id resource attribute.
 
std::string deployment_environment
 Optional deployment.environment.name resource attribute.
 
bool include_source = true
 Export source file, line, and function attributes.
 
bool include_thread_id = true
 Export thread id attribute.
 
bool include_format = true
 Export original format string as logit.format.
 
bool include_arg_names = false
 Export original argument names as logit.arg_names (legacy).
 
bool include_args = true
 Export structured typed arg attributes.
 
std::string args_prefix = "logit.arg."
 Key prefix for structured arg attributes.
 

Detailed Description

Serialization settings for OTLP JSON payload construction.

Definition at line 14 of file OtlpJsonFormatConfig.hpp.

Member Data Documentation

◆ args_prefix

std::string logit::OtlpJsonFormatConfig::args_prefix = "logit.arg."

Key prefix for structured arg attributes.

Definition at line 24 of file OtlpJsonFormatConfig.hpp.

◆ deployment_environment

std::string logit::OtlpJsonFormatConfig::deployment_environment

Optional deployment.environment.name resource attribute.

Definition at line 18 of file OtlpJsonFormatConfig.hpp.

◆ include_arg_names

bool logit::OtlpJsonFormatConfig::include_arg_names = false

Export original argument names as logit.arg_names (legacy).

Definition at line 22 of file OtlpJsonFormatConfig.hpp.

◆ include_args

bool logit::OtlpJsonFormatConfig::include_args = true

Export structured typed arg attributes.

Definition at line 23 of file OtlpJsonFormatConfig.hpp.

◆ include_format

bool logit::OtlpJsonFormatConfig::include_format = true

Export original format string as logit.format.

Definition at line 21 of file OtlpJsonFormatConfig.hpp.

◆ include_source

bool logit::OtlpJsonFormatConfig::include_source = true

Export source file, line, and function attributes.

Definition at line 19 of file OtlpJsonFormatConfig.hpp.

◆ include_thread_id

bool logit::OtlpJsonFormatConfig::include_thread_id = true

Export thread id attribute.

Definition at line 20 of file OtlpJsonFormatConfig.hpp.

◆ service_instance_id

std::string logit::OtlpJsonFormatConfig::service_instance_id

Optional service.instance.id resource attribute.

Definition at line 17 of file OtlpJsonFormatConfig.hpp.

◆ service_name

std::string logit::OtlpJsonFormatConfig::service_name = "logit-app"

service.name resource attribute.

Definition at line 15 of file OtlpJsonFormatConfig.hpp.

◆ service_namespace

std::string logit::OtlpJsonFormatConfig::service_namespace

Optional service.namespace resource attribute.

Definition at line 16 of file OtlpJsonFormatConfig.hpp.


The documentation for this struct was generated from the following file: