Skip to content

Otlp http cmake build fail - #1133

Merged
ThomsonTan merged 3 commits into
open-telemetry:mainfrom
esigo:otlp_http-cmake-build-fail
Dec 13, 2021
Merged

Otlp http cmake build fail#1133
ThomsonTan merged 3 commits into
open-telemetry:mainfrom
esigo:otlp_http-cmake-build-fail

Conversation

@esigo

@esigo esigo commented Dec 13, 2021

Copy link
Copy Markdown
Member

Fixes #1132 (issue)

Changes

Please provide a brief description of the changes here.
Use proper overload.
For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Unit tests have been added
  • Changes in public API reviewed

@esigo
esigo requested a review from a team December 13, 2021 16:33
@codecov

codecov Bot commented Dec 13, 2021

Copy link
Copy Markdown

Codecov Report

Merging #1133 (3b1ec75) into main (836dda6) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1133   +/-   ##
=======================================
  Coverage   93.39%   93.39%           
=======================================
  Files         165      165           
  Lines        6229     6229           
=======================================
  Hits         5817     5817           
  Misses        412      412           

@lalitb lalitb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just curious why build didn't fail in our CI env.

@esigo

esigo commented Dec 13, 2021

Copy link
Copy Markdown
Member Author

LGTM. Just curious why build didn't fail in our CI env.

probably because of including strutil.h.

Comment thread exporters/otlp/src/otlp_http_client.cc Outdated
#include "google/protobuf/stubs/common.h"

#if defined(GOOGLE_PROTOBUF_VERSION) && GOOGLE_PROTOBUF_VERSION >= 3007000
# include "google/protobuf/stubs/stringpiece.h"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering why it is necessary to include stringpiece.h because Base64Escape is declared in strutil.h?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah thanks, removed it.

@ThomsonTan

Copy link
Copy Markdown
Contributor

LGTM. Just curious why build didn't fail in our CI env.

probably because of including strutil.h.

CI is not failing probably because we are using a newer version of protobuf. The explicit declaration is only old protobuf versions.

@ThomsonTan
ThomsonTan merged commit f349053 into open-telemetry:main Dec 13, 2021
@esigo
esigo deleted the otlp_http-cmake-build-fail branch December 13, 2021 19:33
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.

Failed to build opentelemetry-cpp with OTLP HTTP exporter

3 participants