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

Added missing package document and canonical import paths #1125

Merged
merged 2 commits into from
Sep 8, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions api/apitest/package.go → api/apitest/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// Package apitest provides utilities for testing.
package apitest // import "go.opentelemetry.io/otel/api/apitest"
5 changes: 1 addition & 4 deletions api/correlation/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,5 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// This package implements the correlation functionality as specified
// in the OpenTelemetry specification. Currently it provides a data
// structure for storing correlations (Map) and a way of putting Map
// object into the context and retrieving it from context.
// Package correlation provides types and utilities for correlation features.
package correlation // import "go.opentelemetry.io/otel/api/correlation"
16 changes: 16 additions & 0 deletions api/global/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright The OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Package global provides global providers, propagators and more.
package global // import "go.opentelemetry.io/otel/api/global"
5 changes: 3 additions & 2 deletions api/metric/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// metric package provides an API for reporting diagnostic
// measurements using instruments categorized as follows:
// Package metric provides support for reporting measurements using instruments.
//
// Instruments are categorized as below:
//
// Synchronous instruments are called by the user with a Context.
// Asynchronous instruments are called by the SDK during collection.
Expand Down
16 changes: 16 additions & 0 deletions api/metric/metrictest/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright The OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Package metrictest contains utilities for testing metrics.
package metrictest // import "go.opentelemetry.io/otel/api/metric/metrictest"
2 changes: 1 addition & 1 deletion api/propagation/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// Package propagation contains interface definition for HTTP propagators.
// Package propagation provides support for propagating context over HTTP.
package propagation // import "go.opentelemetry.io/otel/api/propagation"
1 change: 1 addition & 0 deletions api/trace/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// Package trace provides tracing support.
package trace // import "go.opentelemetry.io/otel/api/trace"
1 change: 1 addition & 0 deletions api/trace/tracetest/tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// Package tracetest provides testing utilities for tracing.
package tracetest

import (
Expand Down
1 change: 1 addition & 0 deletions api/unit/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// Package unit provides units.
package unit // import "go.opentelemetry.io/otel/api/unit"