Skip to content
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

CONTRIBUTING.md update with some more best practices. #2301

Merged
merged 3 commits into from
Dec 16, 2020

Conversation

jkwatson
Copy link
Contributor

@jkwatson jkwatson commented Dec 14, 2020

Adds a section about class member ordering, since it's not covered in the google style guide, seemed like a good idea to document it, so we don't need to argue about it.
Also adds a line about the instability of toString() methods.

@codecov
Copy link

codecov bot commented Dec 14, 2020

Codecov Report

Merging #2301 (e4578e1) into master (8a8799e) will increase coverage by 87.72%.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff              @@
##             master    #2301       +/-   ##
=============================================
+ Coverage          0   87.72%   +87.72%     
- Complexity        0     2429     +2429     
=============================================
  Files             0      270      +270     
  Lines             0     8163     +8163     
  Branches          0      906      +906     
=============================================
+ Hits              0     7161     +7161     
- Misses            0      671      +671     
- Partials          0      331      +331     
Impacted Files Coverage Δ Complexity Δ
...ava/io/opentelemetry/opencensusshim/SpanCache.java 93.10% <0.00%> (ø) 7.00% <0.00%> (?%)
.../io/opentelemetry/api/trace/BigendianEncoding.java 94.28% <0.00%> (ø) 31.00% <0.00%> (?%)
...y/sdk/trace/export/SimpleSpanProcessorBuilder.java 100.00% <0.00%> (ø) 6.00% <0.00%> (?%)
...io/opentelemetry/sdk/trace/config/TraceConfig.java 100.00% <0.00%> (ø) 7.00% <0.00%> (?%)
.../io/opentelemetry/api/common/AttributeKeyImpl.java 100.00% <0.00%> (ø) 4.00% <0.00%> (?%)
...ntelemetry/sdk/extension/resources/OsResource.java 85.71% <0.00%> (ø) 15.00% <0.00%> (?%)
...ava/io/opentelemetry/api/DefaultOpenTelemetry.java 100.00% <0.00%> (ø) 6.00% <0.00%> (?%)
...xtension/trace/propagation/OtTracerPropagator.java 82.75% <0.00%> (ø) 10.00% <0.00%> (?%)
...elemetry/sdk/trace/export/SimpleSpanProcessor.java 92.00% <0.00%> (ø) 12.00% <0.00%> (?%)
...va/io/opentelemetry/api/metrics/MeterProvider.java 100.00% <0.00%> (ø) 1.00% <0.00%> (?%)
... and 260 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8a8799e...e4578e1. Read the comment docs.

@jkwatson jkwatson changed the title add a section to CONTRIBUTING.md on class member ordering CONTRIBUTING.md update with some more best practices. Dec 14, 2020
CONTRIBUTING.md Outdated Show resolved Hide resolved
Comment on lines +77 to +78
* Adding `toString()` overrides on classes is encouraged, but we only use `toString()` to provide debugging assistance. The implementations
of all `toString()` methods should be considered to be unstable unless explicitly documented otherwise.
Copy link
Member

Choose a reason for hiding this comment

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

This is not very visible for the users of the API. Consider to add similar statement in the API readme? Or package info?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed. Probably both in the readme and the package info. I can add that to this PR, or create a separate one, your call.

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's do separate since the title reflects this PR well :)

@anuraaga anuraaga merged commit 76e10c5 into open-telemetry:master Dec 16, 2020
@jkwatson jkwatson deleted the contribu_update branch April 2, 2021 15:05
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.

4 participants