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
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 Logit.io to view your traces
Data should now have been sent to your Stack.
View My DataIf you don't see take a look at How to diagnose no data in Stack below for how to diagnose common issues.
How 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.