loader_info.h 644 B

123456789101112131415161718192021222324
  1. // Copyright The OpenTelemetry Authors
  2. // SPDX-License-Identifier: Apache-2.0
  3. #pragma once
  4. #include "opentelemetry/nostd/string_view.h"
  5. #include "opentelemetry/version.h"
  6. OPENTELEMETRY_BEGIN_NAMESPACE
  7. namespace plugin
  8. {
  9. /**
  10. * LoaderInfo describes the versioning of the loader.
  11. *
  12. * Plugins can check against this information and properly error out if they were built against an
  13. * incompatible OpenTelemetry API.
  14. */
  15. struct LoaderInfo
  16. {
  17. nostd::string_view opentelemetry_version = OPENTELEMETRY_VERSION;
  18. nostd::string_view opentelemetry_abi_version = OPENTELEMETRY_ABI_VERSION;
  19. };
  20. } // namespace plugin
  21. OPENTELEMETRY_END_NAMESPACE