StripeKit 0.1.1
Stripe integration toolkit for C++
Loading...
Searching...
No Matches
stripekit::LogContext Struct Reference

Extra identifiers attached to a log entry. More...

#include <Logging.h>

Public Attributes

std::string request_id
 Stripe request id for an outbound call, of the form "req_...".
std::string event_id
 Stripe event id for webhook work, of the form "evt_...".
std::string webhook_type
 Stripe event type, for example "invoice.paid".
std::optional< int > retry_attempt
 Which attempt this is, for operations that are retried.
std::string adapter_name
 Name of the adapter that produced the entry.

Detailed Description

Extra identifiers attached to a log entry.

These are the fields worth searching on when tracing a payment through Stripe's dashboard and the application's own logs. A logger that supports structured output should emit them as separate fields.

Fields that do not apply are left empty.

Definition at line 44 of file Logging.h.

Member Data Documentation

◆ request_id

std::string stripekit::LogContext::request_id

Stripe request id for an outbound call, of the form "req_...".

Definition at line 46 of file Logging.h.

◆ event_id

std::string stripekit::LogContext::event_id

Stripe event id for webhook work, of the form "evt_...".

Definition at line 49 of file Logging.h.

◆ webhook_type

std::string stripekit::LogContext::webhook_type

Stripe event type, for example "invoice.paid".

Definition at line 52 of file Logging.h.

◆ retry_attempt

std::optional<int> stripekit::LogContext::retry_attempt

Which attempt this is, for operations that are retried.

Definition at line 55 of file Logging.h.

◆ adapter_name

std::string stripekit::LogContext::adapter_name

Name of the adapter that produced the entry.

Definition at line 58 of file Logging.h.


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