OpenTelemetry C++ Configuration
Ship traces from C++ to OpenSearch with OpenTelemetry
Use OpenTelemetry to easily send C++ traces to your Logit.io Stack.
APM
Install Integration
Please click on the Install Integration button to configure your stack for this source.
Getting Started
You can get help Getting Started with OpenTelemetry for C++ by referring to the official documentation (opens in a new tab). You need to configure the OTLP exporter to ensure the trace data reaches your Logit.io Stack.
OTLP HTTP Exporter settings:
#include "opentelemetry/exporters/otlp/otlp_https_exporter_factory.h"
#include "opentelemetry/exporters/otlp/otlp_https_exporter_options.h"
namespace otlp = opentelemetry::exporter::otlp;
otlp::OtlpHttpExporterOptions opts;
opts.url = "https://@opentelemetry.endpointAddress:@opentelemetry.httpsPort";
opts.http_headers = "Authorization=Basic @opentelemetry.base64encodedAuthString";
auto exporter = otlp::OtlpHttpExporterFactory::Create(opts);
For more information about exporter configuration with C++ please refer to the documentation (opens in a new tab).
Launch Jaeger to View Your Data
Launch JaegerHow to diagnose no data in Stack
If you don't see data appearing in your stack after following this integration, take a look at the troubleshooting guide for steps to diagnose and resolve the problem or contact our support team and we'll be happy to assist.