opentelemetry-go-contrib icon indicating copy to clipboard operation
opentelemetry-go-contrib copied to clipboard

otelmongo#39 Use a mock deployment for testing against a MongoDB server

Open prestonvasquez opened this issue 1 year ago • 5 comments
trafficstars

Resolves #39

Use mtest to mock a mongodb deployment.

prestonvasquez avatar Jun 10 '24 00:06 prestonvasquez

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 66.5%. Comparing base (2a72871) to head (dd36791). Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #5749     +/-   ##
=======================================
+ Coverage   65.8%   66.5%   +0.7%     
=======================================
  Files        205     205             
  Lines      13097   13093      -4     
=======================================
+ Hits        8618    8708     +90     
+ Misses      4215    4118     -97     
- Partials     264     267      +3     

see 5 files with indirect coverage changes

codecov[bot] avatar Jun 10 '24 08:06 codecov[bot]

We discussed the licensing issue during the SIG meeting on thursday, and I brought the question to the #otel-maintainers slack channel.

What it seems other languages are doing is include both licenses, the original one as well as the OpenTelemetry one. See java-instrumentation, or the collector.

Would having something similar work for you?

dmathieu avatar Jun 17 '24 07:06 dmathieu

We discussed the licensing issue during the SIG meeting on thursday, and I brought the question to the #otel-maintainers slack channel.

What it seems other languages are doing is include both licenses, the original one as well as the OpenTelemetry one. See java-instrumentation, or the collector.

Would having something similar work for you?

@blink1073 @matthewdale Do you have thoughts on this? This PR proposes copying code from opmsg_deployment.go to mock a server for testing. The ask is that we include both our license as well as the OpenTelemetry license in that copy.

Alternatively, we could use mtest. The problems with this solution are described in this PR here. However, it would resolve both this issue and a requirement to test the mock deployment.

prestonvasquez avatar Jun 26 '24 16:06 prestonvasquez

The ask is that we include both our license as well as the OpenTelemetry license in that copy.

If possible, I'd recommend keeping the original LICENSE and adding a THIRD-PARTY-NOTICES file.

blink1073 avatar Jun 26 '24 21:06 blink1073

Hi @dmathieu @pellared @MrAlias, @prestonvasquez has reworked the code to import mtest in order to satisfy both OpenTelemetry's and MongoDB's licensing requirements. Could you please take a look and let us know if it looks good to you?

jtazin avatar Aug 26 '24 20:08 jtazin

@pellared could you please take a look at Preston's latest changes? let us know if anything else is needed!

jtazin avatar Sep 16 '24 16:09 jtazin

@prestonvasquez, can you sync the branch with main?

@open-telemetry/go-approvers, last call for review. I plan to merge this PR tomorrow unless nobody adds comments.

pellared avatar Sep 19 '24 15:09 pellared