NVIDIA DeepStream SDK API Reference

9.2 Release
9.2/includes/opentelemetry/exporters/otlp/otlp_http_exporter_options.h
Go to the documentation of this file.
1 // Copyright The OpenTelemetry Authors
2 // SPDX-License-Identifier: Apache-2.0
3 
4 #pragma once
5 
6 #include <chrono>
7 #include <cstdint>
8 #include <string>
9 
10 #include "opentelemetry/exporters/otlp/otlp_environment.h"
11 #include "opentelemetry/exporters/otlp/otlp_http.h"
12 #include "opentelemetry/version.h"
13 
14 #ifdef ENABLE_ASYNC_EXPORT
15 # include <cstddef>
16 #endif
17 
19 namespace exporter
20 {
21 namespace otlp
22 {
23 
33 struct OPENTELEMETRY_EXPORT OtlpHttpExporterOptions
34 {
36  OtlpHttpExporterOptions();
38  OtlpHttpExporterOptions(void *);
39  OtlpHttpExporterOptions(const OtlpHttpExporterOptions &) = default;
40  OtlpHttpExporterOptions(OtlpHttpExporterOptions &&) = default;
41  OtlpHttpExporterOptions &operator=(const OtlpHttpExporterOptions &) = default;
42  OtlpHttpExporterOptions &operator=(OtlpHttpExporterOptions &&) = default;
43  ~OtlpHttpExporterOptions();
44 
46  std::string url;
47 
49  HttpRequestContentType content_type;
50 
57  JsonBytesMappingKind json_bytes_mapping;
58 
62  bool use_json_name;
63 
65  bool console_debug;
66 
68  std::chrono::system_clock::duration timeout;
69 
71  OtlpHeaders http_headers;
72 
73 #ifdef ENABLE_ASYNC_EXPORT
74 
75  std::size_t max_concurrent_requests;
76 
78  std::size_t max_requests_per_connection;
79 #endif
80 
82  bool ssl_insecure_skip_verify;
83 
85  std::string ssl_ca_cert_path;
86 
88  std::string ssl_ca_cert_string;
89 
91  std::string ssl_client_key_path;
92 
94  std::string ssl_client_key_string;
95 
97  std::string ssl_client_cert_path;
98 
100  std::string ssl_client_cert_string;
101 
103  std::string ssl_min_tls;
104 
106  std::string ssl_max_tls;
107 
109  std::string ssl_cipher;
110 
112  std::string ssl_cipher_suite;
113 
115  std::string compression;
116 
118  std::uint32_t retry_policy_max_attempts{};
119 
121  std::chrono::duration<float> retry_policy_initial_backoff{};
122 
124  std::chrono::duration<float> retry_policy_max_backoff{};
125 
127  float retry_policy_backoff_multiplier{};
128 };
129 
130 } // namespace otlp
131 } // namespace exporter
OPENTELEMETRY_EXPORT
#define OPENTELEMETRY_EXPORT
Definition: includes/opentelemetry/common/macros.h:386
exporter::otlp::JsonBytesMappingKind
JsonBytesMappingKind
Definition: includes/opentelemetry/exporters/otlp/otlp_http.h:15
exporter
Definition: includes/opentelemetry/exporters/memory/in_memory_data.h:11
OPENTELEMETRY_BEGIN_NAMESPACE
#define OPENTELEMETRY_BEGIN_NAMESPACE
Definition: includes/opentelemetry/version.h:21
exporter::otlp::OtlpHeaders
std::multimap< std::string, std::string, cmp_ic > OtlpHeaders
Definition: includes/opentelemetry/exporters/otlp/otlp_environment.h:139
OPENTELEMETRY_END_NAMESPACE
#define OPENTELEMETRY_END_NAMESPACE
Definition: includes/opentelemetry/version.h:24
exporter::otlp::HttpRequestContentType
HttpRequestContentType
Definition: includes/opentelemetry/exporters/otlp/otlp_http.h:22