Skip to content

Commit

Permalink
Merge otel into one file and add package doc (#1176)
Browse files Browse the repository at this point in the history
No need to split a tiny package into multiple files. Also adding package doc for the otel package.
  • Loading branch information
rakyll authored Sep 14, 2020
1 parent 1f7c220 commit 3de7a07
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 22 deletions.
1 change: 1 addition & 0 deletions 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 otel contains OpenTelemetry Go packages.
package otel // import "go.opentelemetry.io/otel"
22 changes: 0 additions & 22 deletions error_handler.go

This file was deleted.

7 changes: 7 additions & 0 deletions otel.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,10 @@ type Tracer = trace.Tracer
type Meter = metric.Meter

type Propagators = propagation.Propagators

// ErrorHandler handles irremediable events.
type ErrorHandler interface {
// Handle handles any error deemed irremediable by an OpenTelemetry
// component.
Handle(error)
}

0 comments on commit 3de7a07

Please sign in to comment.