Skip to content

Fix build test of Zipkin exporter on Windows#1177

Merged
lalitb merged 3 commits into
open-telemetry:mainfrom
ThomsonTan:FixZipkinExporterTest
Jan 20, 2022
Merged

Fix build test of Zipkin exporter on Windows#1177
lalitb merged 3 commits into
open-telemetry:mainfrom
ThomsonTan:FixZipkinExporterTest

Conversation

@ThomsonTan
Copy link
Copy Markdown
Contributor

Changes

Zipkin exporter doesn't build on Windows but Jaeger exporter builds fine. This PR ports the necessary Jaeger build scripts to Zipkin exporter as well.

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

@ThomsonTan ThomsonTan requested a review from a team January 18, 2022 22:56
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 18, 2022

Codecov Report

Merging #1177 (a1a7e08) into main (bc1b469) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1177   +/-   ##
=======================================
  Coverage   93.29%   93.29%           
=======================================
  Files         174      174           
  Lines        6404     6404           
=======================================
  Hits         5974     5974           
  Misses        430      430           
Impacted Files Coverage Δ
api/include/opentelemetry/common/spin_lock_mutex.h 31.25% <ø> (ø)
...lemetry/ext/http/client/curl/http_operation_curl.h 78.09% <ø> (ø)

PATTERN "recordable.h" EXCLUDE)

if(BUILD_TESTING)
add_definitions(-DGTEST_LINKED_AS_SHARED_LIBRARY=1)
Copy link
Copy Markdown
Member

@lalitb lalitb Jan 19, 2022

Choose a reason for hiding this comment

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

Why is this required ? Just trying to understand what fix we are going for Zipkin.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There is some unresolved global lock variable in gtest/gmock reported if built without this flag.


#ifndef HAVE_CPP_STDLIB

# define _WINSOCKAPI_ // stops including winsock.h
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.

Not related to the PR:
This is not part of CMake test for Windows CI.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I moved this define to spin lock header which includes windows.h as well. So this should be unnecessary. Let me know you prefer keep this define here.

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.

thanks, spin lock header is actually the right place to have the define.

@lalitb lalitb merged commit fed56cc into open-telemetry:main Jan 20, 2022
@ThomsonTan ThomsonTan deleted the FixZipkinExporterTest branch November 9, 2022 22:57
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