Skip to content

Document test-race Make target and OpenTelemetry env vars#3232

Merged
lpcox merged 2 commits intomainfrom
copilot/add-missing-target-contributing-md
Apr 6, 2026
Merged

Document test-race Make target and OpenTelemetry env vars#3232
lpcox merged 2 commits intomainfrom
copilot/add-missing-target-contributing-md

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 5, 2026

Two documentation gaps identified by the nightly reconciliation check.

1. Add test-race to CONTRIBUTING.md

The make test-race target (runs go test -race) exists in the Makefile but was undocumented. Added it to the Running Tests code block and a dedicated Race Detection Tests subsection explaining its importance for concurrent server code.

2. Add OpenTelemetry env vars to docs/ENVIRONMENT_VARIABLES.md

OTEL_EXPORTER_OTLP_ENDPOINT and OTEL_SERVICE_NAME are read via envutil.GetEnvString in flags_tracing.go to set defaults for the --otlp-* CLI flags, but were not documented. Added an OpenTelemetry / Tracing Variables section.

- Add make test-race to the Running Tests section in CONTRIBUTING.md
  with a Race Detection Tests subsection explaining its importance for
  concurrent server code
- Add OpenTelemetry / Tracing Variables section to
  docs/ENVIRONMENT_VARIABLES.md documenting OTEL_EXPORTER_OTLP_ENDPOINT
  and OTEL_SERVICE_NAME env vars

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@lpcox lpcox changed the title [WIP] Add missing test-race Make target to CONTRIBUTING.md Document test-race Make target and OpenTelemetry env vars Apr 6, 2026
@lpcox lpcox marked this pull request as ready for review April 6, 2026 01:34
Copilot AI review requested due to automatic review settings April 6, 2026 01:34
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Closes two documentation gaps by documenting an existing make test-race target for Go race detection and documenting OpenTelemetry environment variables that influence tracing CLI defaults.

Changes:

  • Documented make test-race in CONTRIBUTING testing instructions and added a short rationale section for race detection.
  • Documented OTEL_EXPORTER_OTLP_ENDPOINT and OTEL_SERVICE_NAME in docs/ENVIRONMENT_VARIABLES.md as defaults for --otlp-* flags.
Show a summary per file
File Description
docs/ENVIRONMENT_VARIABLES.md Adds an OpenTelemetry/tracing section documenting OTLP endpoint + service name env vars used for CLI defaults.
CONTRIBUTING.md Adds make test-race to the test command list and a dedicated subsection explaining when/why to run race detection.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 0

@lpcox lpcox merged commit 7e0da0b into main Apr 6, 2026
14 checks passed
@lpcox lpcox deleted the copilot/add-missing-target-contributing-md branch April 6, 2026 01:37
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.

📚 Documentation Reconciliation Report - 2026-04-05

3 participants