Thanks for your interest in contributing! This is an open source project, so we appreciate community contributions.
Pull requests for bug fixes are welcome, but before submitting new features or changes to current functionalities open an issue and discuss your ideas or propose the changes you wish to make. After a resolution is reached a PR can be submitted for review. PRs created before a decision has been reached may be closed.
For commit messages, try to use the same conventions as most Go projects, for example:
contrib/database/sql: use method context on QueryContext and ExecContext
QueryContext and ExecContext were using the wrong context to create
spans. Instead of using the method's argument they were using the
Prepare context, which was wrong.
Fixes #113
Please apply the same logic for Pull Requests and Issues: start with the package name, followed by a colon and a description of the change, just like the official Go language.
All new code is expected to be covered by tests.
We expect all PR checks to pass before we merge a PR. When opening a PR, the metadata check will fail until a repo maintainer assigns the PR a milestone. The other checks can be investigated by following the Details
links to CircleCI and CodeCov for unit/integration tests and code coverage checks.
The code coverage report has a target of 90%. This is the goal, but is not a hard requirement. Reviewers ultimately make the decision about code coverage and quality and will merge PR's at their discretion. Any divergence from the expected 90% should be communicated by the reviewers to the PR author.
Please feel free to comment on a PR if there is any difficulty or confusion about any of the checks.
We try to review new PRs within a week of them being opened. If more than two weeks have passed with no reply, please feel free to comment on the PR to bubble it up.
If a PR sits open for more than a month awaiting work or replies by the author, the PR may be closed due to staleness. If you would like to work on it again in the future, feel free to open a new PR and someone will review.
A set of Style guidelines was added to our Wiki. Please spend some time browsing it. It will help tremendously in avoiding comments and speeding up the PR process.
Please view our contrib README.md for information on new integrations. If you need support for a new integration, please file an issue to discuss before opening a PR.
When adding a new dependency, especially for contrib/
packages, prefer the minimum secure versions of any modules rather than the latest versions. This is to avoid forcing upgrades on downstream users for modules such as google.golang.org/grpc
which often introduce breaking changes within minor versions.
This repository used to omit many dependencies from the go.mod
file due to concerns around version compatibility (ref). As such, you may have configured git to ignore changes to go.mod
and go.sum
. To undo this, run
git update-index --no-assume-unchanged go.*
The maintainers of this repository assign milestones to pull requests to classify them. Triage
indicates that it is yet to be decided which version the change will go into. Pull requests that are ready get the upcoming release version assigned.
Some benchmarks will run on any new PR commits, the results will be commented into the PR on completion.
To add additional benchmarks that should run for every PR go to .gitlab/scripts/run-benchmarks.sh
.
Add the name of your benchmark to the list in -bench "BenchmarkConcurrentTracing|BenchmarkStartSpan"
using pipe character separators. Note that your new benchmark must already exist in the main
branch, for that reason it is best for new benchmarks to be added in their own PR and a second PR opened afterwards to add them to the PR benchmark script.