1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-12-18 00:17:26 +02:00
This commit is contained in:
Tyler Yahn
2020-05-29 15:49:58 -07:00
parent 559606c419
commit ec6512f656
5 changed files with 8 additions and 6 deletions

View File

@@ -22,6 +22,7 @@ import (
"go.opentelemetry.io/otel/api/kv"
"go.opentelemetry.io/otel/api/metric"
"go.opentelemetry.io/otel/api/oterror"
"go.opentelemetry.io/otel/api/unit"
mockTest "go.opentelemetry.io/otel/internal/metric"
@@ -391,7 +392,7 @@ func TestWrappedInstrumentError(t *testing.T) {
valuerecorder, err := meter.NewInt64ValueRecorder("test.valuerecorder")
require.Equal(t, err, metric.ErrSDKReturnedNilImpl)
require.Equal(t, err, oterror.ErrSDKReturnedNilImpl)
require.NotNil(t, valuerecorder.SyncImpl())
observer, err := meter.NewInt64ValueObserver("test.observer", func(_ context.Context, result metric.Int64ObserverResult) {})