opentelemetry-cpp-contrib
opentelemetry-cpp-contrib copied to clipboard
POC: Possible implementation of opentelemetry-cpp-contrib cmake project with components
This is a proof of concept for adding a top level CMakeLists.txt file to this repo in order to create a versioned opentelemetry-cpp-contrib package with components.
Goals:
- Support building a separate versioned
opentelemetry-cpp-contribpackage that depends onopentelmetry-cpp - Support two options for the
opentelemetry-cppdependency:- Option 1: Use
find_packageto import an installedopentelemetry-cpppackage - Option 2: Fetch
opentelemetry-cppfrom the git repo (or git submodule) and build it together withopentelemetry-cpp-contribin a single build tree
- Option 1: Use
- Enable creating independent components for install and import with their own third party dependencies
- Finding like so:
find_package(opentelemetry-cpp-contrib COMPONENTS exporters_geneva_metrics)
- Finding like so:
This requires some minor changes to the opentelemetry-cpp cmake install functions for general use included in this branch.
https://github.com/open-telemetry/opentelemetry-cpp/compare/main...dbarker:opentelemetry-cpp:poc_otel_cmake_external_repo_support
Posting here for discussion.