C++ installation instructions

Use the installation instructions below if you're installing Helios in a standard C++ service.

Install OpenTelemetry's C++ instrumentation

Install Opentelemetry's C++ instrumentation by following the instructions here.

Exporting data to Helios

In order to visualize and analyze your traces in Helios, you will need to export them. Use a custom OTLP GRPC Exporter definition in your code and set the URL to Helios collector:

#include "opentelemetry/exporters/otlp/otlp_grpc_exporter_factory.h"
#include "opentelemetry/sdk/trace/batch_span_processor_factory.h"
#include "opentelemetry/sdk/trace/batch_span_processor_options.h"
#include "opentelemetry/sdk/trace/tracer_provider_factory.h"
#include "opentelemetry/trace/provider.h"


opentelemetry::exporter::otlp::OtlpGrpcExporterOptions opts; 
opts.endpoint = "https://grpccollector.gethelios.dev:4317"; 
opts.metadata.insert(std::make_pair<const std::string, std::string>("authorization", "10246cd277947cada13a")); 
opts.use_ssl_credentials = true;
auto otlp_grpc_exporter = opentelemetry::exporter::otlp::OtlpGrpcExporterFactory::Create(opts); 
auto processor = opentelemetry::sdk::trace::BatchSpanProcessorFactory::Create(std::move(exporter));
std::shared_ptr<opentelemetry::trace::TracerProvider> provider = opentelemetry::sdk::trace::TracerProviderFactory::Create(std::move(processor));
After setup is complete and once the service is up and running, it will show up in the Helios application.
For detailed configuration options, advanced settings and other installation tips - go to our docs.
Custom instructions for using Helios @ Helios