1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-09-16 09:26:25 +02:00

Remove google.golang.org/grpc/codes dependency from API by adding an equivalent codes package (#1046)

* Add otel/codes package to replace google.golang.org/grpc/codes

* Replace google.golang.org/grpc/codes with otel/codes

* Update opentracing bridge to use OTel codes

* Update semconv to use OTel codes

* Update SDK to convert from OTel codes to gRPC

* go mod tidy

* Add change to CHANGELOG

* Fix word from feedback
This commit is contained in:
Tyler Yahn
2020-08-10 09:17:09 -07:00
committed by GitHub
parent 2dfa5e4fe1
commit efd4e3a383
17 changed files with 159 additions and 33 deletions

View File

@@ -21,9 +21,8 @@ import (
"strconv"
"strings"
"google.golang.org/grpc/codes"
"go.opentelemetry.io/otel/api/kv"
"go.opentelemetry.io/otel/codes"
)
// NetAttributesFromHTTPRequest generates attributes of the net

View File

@@ -1,5 +1,4 @@
// 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
@@ -22,9 +21,9 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"google.golang.org/grpc/codes"
otelkv "go.opentelemetry.io/otel/api/kv"
"go.opentelemetry.io/otel/codes"
)
type tlsOption int