Get a DemoStart Free TrialSign In

OpenTelemetry C++ Configuration

Ship traces from C++ to Opensearch with OpenTelemetry (via https)

Use OpenTelemetry to easily send C++ traces to your Logit.io Stack.

Send Your DataAPMLanguages & LibrariesOpenTelemetry C++ Configuration Guide

Follow this step by step guide to get 'traces' from your system to Logit.io:

Step 1 - Getting Started

You can get help Getting Started with OpenTelemetry for C++ by referring to the official documentation. 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_http_exporter_factory.h"
#include "opentelemetry/exporters/otlp/otlp_http_exporter_options.h"

namespace otlp = opentelemetry::exporter::otlp;

otlp::OtlpHttpExporterOptions opts;
opts.url = "https://<your-opentelemetry-endpoint-address>:<your-opentelemetry-endpoint-port>";
opts.http_headers = "Authorization=Basic " + <your-encoded-opentelemetry-auth-header-value>

auto exporter = otlp::OtlpHttpExporterFactory::Create(opts);

For more information about exporter configuration with C++ please see the documentation here

Step 2 - Check Logit.io for your traces

Data should now have been sent to your Stack.

View my data

If you don't see traces please take a look at How to diagnose no data in Stack below for how to diagnose common issues.

Step 3 - how to diagnose no data in Stack

If you don't see data appearing in your Stack after following the steps, visit the Help Centre guide for steps to diagnose no data appearing in your Stack or Chat to support now.

Return to Search
Sign Up

© 2024 Logit.io Ltd, All rights reserved.