-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
opentelemetry-cpp: add version 1.16.1, 1.17.0 #25902
Changes from 4 commits
fcb0fa7
2981ec2
b0c7785
fd4b2e2
a1f7ff0
fd37008
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,6 @@ class OpenTelemetryCppConan(ConanFile): | |
"with_stl": [True, False], | ||
"with_gsl": [True, False], | ||
"with_abseil": [True, False], | ||
"with_otlp": ["deprecated", True, False], | ||
"with_otlp_grpc": [True, False], | ||
"with_otlp_http": [True, False], | ||
"with_zipkin": [True, False], | ||
|
@@ -50,7 +49,6 @@ class OpenTelemetryCppConan(ConanFile): | |
"with_stl": False, | ||
"with_gsl": False, | ||
"with_abseil": True, | ||
"with_otlp": "deprecated", | ||
"with_otlp_grpc": False, | ||
"with_otlp_http": True, | ||
"with_zipkin": True, | ||
|
@@ -100,9 +98,6 @@ def config_options(self): | |
def configure(self): | ||
if self.options.shared: | ||
self.options.rm_safe("fPIC") | ||
if self.options.with_otlp != "deprecated": | ||
self.output.warning(f"{self.ref}:with_otlp option is deprecated, do not use anymore. " | ||
"Please, consider with_otlp_grpc or with_otlp_http instead.") | ||
|
||
def layout(self): | ||
cmake_layout(self, src_folder="src") | ||
|
@@ -195,7 +190,7 @@ def validate(self): | |
|
||
def build_requirements(self): | ||
if self.options.with_otlp_grpc or self.options.with_otlp_http: | ||
self.tool_requires("opentelemetry-proto/1.3.0") | ||
self.tool_requires("opentelemetry-proto/1.3.2") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. open-telemetry/opentelemetry-cpp#2991 changes in the documentation seem to imply that there's not need to map 1:1 unless a new version requires a minimum version, so after checking locally, old versions till compile with this, so I've simplified this @ArielGMachado, lmkwyt There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Without knowing much in depth about the |
||
self.tool_requires("protobuf/<host_version>") | ||
|
||
if self.options.with_otlp_grpc: | ||
|
@@ -212,10 +207,6 @@ def _create_cmake_module_variables(self, module_file): | |
""") | ||
save(self, module_file, content) | ||
|
||
def package_id(self): | ||
# deprecated | ||
del self.info.options.with_otlp | ||
|
||
def source(self): | ||
get(self, **self.conan_data["sources"][self.version], strip_root=True) | ||
|
||
|
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
versions: | ||
"1.17.0": | ||
folder: all | ||
"1.16.1": | ||
folder: all | ||
"1.14.2": | ||
folder: all | ||
"1.12.0": | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed so that the new versions don't have this from the get-go, and it's been deprecated long enough to warrant removal for old versions