Skip to content

opentelemetry-cpp: add with_otlp_grpc_credentials_preview option#29058

Open
snakethatlovesstaticlibs wants to merge 6 commits into
conan-io:masterfrom
snakethatlovesstaticlibs:opentelemetry-cpp-grpc-credentials
Open

opentelemetry-cpp: add with_otlp_grpc_credentials_preview option#29058
snakethatlovesstaticlibs wants to merge 6 commits into
conan-io:masterfrom
snakethatlovesstaticlibs:opentelemetry-cpp-grpc-credentials

Conversation

@snakethatlovesstaticlibs
Copy link
Copy Markdown

@snakethatlovesstaticlibs snakethatlovesstaticlibs commented Dec 5, 2025

Summary

Changes to recipe: opentelemetry-cpp/1.22.0

Motivation

In open-telemetry/opentelemetry-cpp#3403, a method to pass custom credentials handlers was added to opentelemetry-cpp. However, it is flagged so it is difficult to use without conan support for the flag

Details

This PR adds with_otlp_grpc_credentials_preview which is passed through as WITH_OTLP_GRPC_CREDENTIAL_PREVIEW to opentelemetry-cpp


  • Read the contributing guidelines
  • Checked that this PR is not a duplicate: list of PRs by recipe
  • If this is a bug fix, please link related issue or provide bug details
  • Tested locally with at least one configuration using a recent version of Conan

Add a 👍 reaction to pull requests you find important to help the team prioritize, thanks!

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Dec 5, 2025

CLA assistant check
All committers have signed the CLA.

@snakethatlovesstaticlibs snakethatlovesstaticlibs changed the title opentelemetry-cpp: add with_otlp_grpc_credentials option opentelemetry-cpp: add with_otlp_grpc_credentials_preview option Dec 5, 2025
@snakethatlovesstaticlibs
Copy link
Copy Markdown
Author

Hmm we might also need to append a define somewhere like

self.cpp_info.components["api"].defines.append(f"OPENTELEMETRY_ABI_VERSION_NO={2 if self.options.with_abi_v2 else 1}")

@AbrilRBS AbrilRBS self-assigned this Dec 9, 2025
@snakethatlovesstaticlibs
Copy link
Copy Markdown
Author

@AbrilRBS thanks for assigning the PR to yourself. Can you please take a look and provide feedback on the approach when you have a chance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants