Skip to content

Commit

Permalink
v0.4.4 long term pin
Browse files Browse the repository at this point in the history
This is the same code as v0.4.3 but renamed to an internal reference.
  • Loading branch information
kconwayinvision committed Sep 2, 2021
1 parent 1de7f68 commit bdb9ffc
Show file tree
Hide file tree
Showing 215 changed files with 728 additions and 728 deletions.
2 changes: 1 addition & 1 deletion api/core/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
//
// See the api/key package for convenience functions for creating keys
// and key-value pairs.
package core // import "go.opentelemetry.io/otel/api/core"
package core // import "github.com/InVisionApp/opentelemetry-go/api/core"
4 changes: 2 additions & 2 deletions api/core/key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/stretchr/testify/require"

"go.opentelemetry.io/otel/api/core"
"go.opentelemetry.io/otel/api/key"
"github.com/InVisionApp/opentelemetry-go/api/core"
"github.com/InVisionApp/opentelemetry-go/api/key"
)

func TestValue(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api/core/span_context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package core_test
import (
"testing"

"go.opentelemetry.io/otel/api/core"
"github.com/InVisionApp/opentelemetry-go/api/core"
)

func TestIsValid(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api/correlation/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package correlation
import (
"context"

"go.opentelemetry.io/otel/api/core"
"github.com/InVisionApp/opentelemetry-go/api/core"
)

type correlationsType struct{}
Expand Down
6 changes: 3 additions & 3 deletions api/correlation/correlation_context_propagator.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import (
"net/url"
"strings"

"go.opentelemetry.io/otel/api/core"
"go.opentelemetry.io/otel/api/key"
"go.opentelemetry.io/otel/api/propagation"
"github.com/InVisionApp/opentelemetry-go/api/core"
"github.com/InVisionApp/opentelemetry-go/api/key"
"github.com/InVisionApp/opentelemetry-go/api/propagation"
)

const correlationContextHeader = "Correlation-Context"
Expand Down
8 changes: 4 additions & 4 deletions api/correlation/correlation_context_propagator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ import (

"github.com/google/go-cmp/cmp"

"go.opentelemetry.io/otel/api/core"
"go.opentelemetry.io/otel/api/correlation"
"go.opentelemetry.io/otel/api/key"
"go.opentelemetry.io/otel/api/propagation"
"github.com/InVisionApp/opentelemetry-go/api/core"
"github.com/InVisionApp/opentelemetry-go/api/correlation"
"github.com/InVisionApp/opentelemetry-go/api/key"
"github.com/InVisionApp/opentelemetry-go/api/propagation"
)

func TestExtractValidDistributedContextFromHTTPReq(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api/correlation/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
// 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 // import "go.opentelemetry.io/otel/api/correlation"
package correlation // import "github.com/InVisionApp/opentelemetry-go/api/correlation"
2 changes: 1 addition & 1 deletion api/correlation/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package correlation

import (
"go.opentelemetry.io/otel/api/core"
"github.com/InVisionApp/opentelemetry-go/api/core"
)

type rawMap map[core.Key]core.Value
Expand Down
4 changes: 2 additions & 2 deletions api/correlation/map_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"fmt"
"testing"

"go.opentelemetry.io/otel/api/core"
"go.opentelemetry.io/otel/api/key"
"github.com/InVisionApp/opentelemetry-go/api/core"
"github.com/InVisionApp/opentelemetry-go/api/key"
)

type testCase struct {
Expand Down
8 changes: 4 additions & 4 deletions api/global/global.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
package global

import (
"go.opentelemetry.io/otel/api/global/internal"
"go.opentelemetry.io/otel/api/metric"
"go.opentelemetry.io/otel/api/propagation"
"go.opentelemetry.io/otel/api/trace"
"github.com/InVisionApp/opentelemetry-go/api/global/internal"
"github.com/InVisionApp/opentelemetry-go/api/metric"
"github.com/InVisionApp/opentelemetry-go/api/propagation"
"github.com/InVisionApp/opentelemetry-go/api/trace"
)

// Tracer creates a named tracer that implements Tracer interface.
Expand Down
6 changes: 3 additions & 3 deletions api/global/global_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ package global_test
import (
"testing"

"go.opentelemetry.io/otel/api/global"
"go.opentelemetry.io/otel/api/metric"
"go.opentelemetry.io/otel/api/trace"
"github.com/InVisionApp/opentelemetry-go/api/global"
"github.com/InVisionApp/opentelemetry-go/api/metric"
"github.com/InVisionApp/opentelemetry-go/api/trace"
)

type (
Expand Down
24 changes: 12 additions & 12 deletions api/global/internal/benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ import (
"strings"
"testing"

"go.opentelemetry.io/otel/api/core"
"go.opentelemetry.io/otel/api/global"
"go.opentelemetry.io/otel/api/global/internal"
"go.opentelemetry.io/otel/api/key"
"go.opentelemetry.io/otel/api/metric"
"go.opentelemetry.io/otel/api/trace"
export "go.opentelemetry.io/otel/sdk/export/metric"
sdk "go.opentelemetry.io/otel/sdk/metric"
"go.opentelemetry.io/otel/sdk/metric/aggregator/ddsketch"
"go.opentelemetry.io/otel/sdk/metric/aggregator/minmaxsumcount"
"go.opentelemetry.io/otel/sdk/metric/aggregator/sum"
sdktrace "go.opentelemetry.io/otel/sdk/trace"
"github.com/InVisionApp/opentelemetry-go/api/core"
"github.com/InVisionApp/opentelemetry-go/api/global"
"github.com/InVisionApp/opentelemetry-go/api/global/internal"
"github.com/InVisionApp/opentelemetry-go/api/key"
"github.com/InVisionApp/opentelemetry-go/api/metric"
"github.com/InVisionApp/opentelemetry-go/api/trace"
export "github.com/InVisionApp/opentelemetry-go/sdk/export/metric"
sdk "github.com/InVisionApp/opentelemetry-go/sdk/metric"
"github.com/InVisionApp/opentelemetry-go/sdk/metric/aggregator/ddsketch"
"github.com/InVisionApp/opentelemetry-go/sdk/metric/aggregator/minmaxsumcount"
"github.com/InVisionApp/opentelemetry-go/sdk/metric/aggregator/sum"
sdktrace "github.com/InVisionApp/opentelemetry-go/sdk/trace"
)

var Must = metric.Must
Expand Down
4 changes: 2 additions & 2 deletions api/global/internal/internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"os"
"testing"

"go.opentelemetry.io/otel/api/global/internal"
ottest "go.opentelemetry.io/otel/internal/testing"
"github.com/InVisionApp/opentelemetry-go/api/global/internal"
ottest "github.com/InVisionApp/opentelemetry-go/internal/testing"
)

// Ensure struct alignment prior to running tests.
Expand Down
6 changes: 3 additions & 3 deletions api/global/internal/meter.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
"sync/atomic"
"unsafe"

"go.opentelemetry.io/otel/api/core"
"go.opentelemetry.io/otel/api/metric"
"go.opentelemetry.io/otel/api/metric/registry"
"github.com/InVisionApp/opentelemetry-go/api/core"
"github.com/InVisionApp/opentelemetry-go/api/metric"
"github.com/InVisionApp/opentelemetry-go/api/metric/registry"
)

// This file contains the forwarding implementation of metric.Provider
Expand Down
14 changes: 7 additions & 7 deletions api/global/internal/meter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ import (

"github.com/stretchr/testify/require"

"go.opentelemetry.io/otel/api/core"
"go.opentelemetry.io/otel/api/global"
"go.opentelemetry.io/otel/api/global/internal"
"go.opentelemetry.io/otel/api/key"
"go.opentelemetry.io/otel/api/metric"
"go.opentelemetry.io/otel/exporters/metric/stdout"
metrictest "go.opentelemetry.io/otel/internal/metric"
"github.com/InVisionApp/opentelemetry-go/api/core"
"github.com/InVisionApp/opentelemetry-go/api/global"
"github.com/InVisionApp/opentelemetry-go/api/global/internal"
"github.com/InVisionApp/opentelemetry-go/api/key"
"github.com/InVisionApp/opentelemetry-go/api/metric"
"github.com/InVisionApp/opentelemetry-go/exporters/metric/stdout"
metrictest "github.com/InVisionApp/opentelemetry-go/internal/metric"
)

// Note: Maybe this should be factored into ../../../internal/metric?
Expand Down
4 changes: 2 additions & 2 deletions api/global/internal/registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (

"github.com/stretchr/testify/require"

"go.opentelemetry.io/otel/api/metric"
"go.opentelemetry.io/otel/api/metric/registry"
"github.com/InVisionApp/opentelemetry-go/api/metric"
"github.com/InVisionApp/opentelemetry-go/api/metric/registry"
)

type (
Expand Down
8 changes: 4 additions & 4 deletions api/global/internal/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import (
"sync"
"sync/atomic"

"go.opentelemetry.io/otel/api/correlation"
"go.opentelemetry.io/otel/api/metric"
"go.opentelemetry.io/otel/api/propagation"
"go.opentelemetry.io/otel/api/trace"
"github.com/InVisionApp/opentelemetry-go/api/correlation"
"github.com/InVisionApp/opentelemetry-go/api/metric"
"github.com/InVisionApp/opentelemetry-go/api/propagation"
"github.com/InVisionApp/opentelemetry-go/api/trace"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion api/global/internal/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (
"context"
"sync"

"go.opentelemetry.io/otel/api/trace"
"github.com/InVisionApp/opentelemetry-go/api/trace"
)

// traceProvider is a placeholder for a configured SDK Provider.
Expand Down
8 changes: 4 additions & 4 deletions api/global/internal/trace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (

"github.com/stretchr/testify/require"

"go.opentelemetry.io/otel/api/global"
"go.opentelemetry.io/otel/api/global/internal"
export "go.opentelemetry.io/otel/sdk/export/trace"
sdktrace "go.opentelemetry.io/otel/sdk/trace"
"github.com/InVisionApp/opentelemetry-go/api/global"
"github.com/InVisionApp/opentelemetry-go/api/global/internal"
export "github.com/InVisionApp/opentelemetry-go/sdk/export/trace"
sdktrace "github.com/InVisionApp/opentelemetry-go/sdk/trace"
)

type testSpanProcesor struct {
Expand Down
2 changes: 1 addition & 1 deletion api/key/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@

// This package provides convenience functions for creating keys and
// key-value pairs.
package key // import "go.opentelemetry.io/otel/api/key"
package key // import "github.com/InVisionApp/opentelemetry-go/api/key"
2 changes: 1 addition & 1 deletion api/key/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package key

import (
"go.opentelemetry.io/otel/api/core"
"github.com/InVisionApp/opentelemetry-go/api/core"
)

// New creates a new key with a passed name.
Expand Down
4 changes: 2 additions & 2 deletions api/key/key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (

"github.com/google/go-cmp/cmp"

"go.opentelemetry.io/otel/api/core"
"go.opentelemetry.io/otel/api/key"
"github.com/InVisionApp/opentelemetry-go/api/core"
"github.com/InVisionApp/opentelemetry-go/api/key"
)

func TestKeyValueConstructors(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion api/label/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"sync"
"sync/atomic"

"go.opentelemetry.io/otel/api/core"
"github.com/InVisionApp/opentelemetry-go/api/core"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion api/label/iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package label

import (
"go.opentelemetry.io/otel/api/core"
"github.com/InVisionApp/opentelemetry-go/api/core"
)

// Iterator allows iterating over the set of labels in order,
Expand Down
4 changes: 2 additions & 2 deletions api/label/iterator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (

"github.com/stretchr/testify/require"

"go.opentelemetry.io/otel/api/key"
"go.opentelemetry.io/otel/api/label"
"github.com/InVisionApp/opentelemetry-go/api/key"
"github.com/InVisionApp/opentelemetry-go/api/label"
)

func TestIterator(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions api/label/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package label // import "go.opentelemetry.io/otel/api/label"
package label // import "github.com/InVisionApp/opentelemetry-go/api/label"

import (
"encoding/json"
"reflect"
"sort"
"sync"

"go.opentelemetry.io/otel/api/core"
"github.com/InVisionApp/opentelemetry-go/api/core"
)

type (
Expand Down
6 changes: 3 additions & 3 deletions api/label/set_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ package label_test
import (
"testing"

"go.opentelemetry.io/otel/api/core"
"go.opentelemetry.io/otel/api/key"
"go.opentelemetry.io/otel/api/label"
"github.com/InVisionApp/opentelemetry-go/api/core"
"github.com/InVisionApp/opentelemetry-go/api/key"
"github.com/InVisionApp/opentelemetry-go/api/label"

"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion api/metric/alignment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"testing"
"unsafe"

ottest "go.opentelemetry.io/otel/internal/testing"
ottest "github.com/InVisionApp/opentelemetry-go/internal/testing"
)

// Ensure struct alignment prior to running tests.
Expand Down
4 changes: 2 additions & 2 deletions api/metric/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ package metric
import (
"context"

"go.opentelemetry.io/otel/api/core"
"go.opentelemetry.io/otel/api/unit"
"github.com/InVisionApp/opentelemetry-go/api/core"
"github.com/InVisionApp/opentelemetry-go/api/unit"
)

// Provider supports named Meter instances.
Expand Down
10 changes: 5 additions & 5 deletions api/metric/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ import (
"fmt"
"testing"

"go.opentelemetry.io/otel/api/core"
"go.opentelemetry.io/otel/api/key"
"go.opentelemetry.io/otel/api/metric"
"go.opentelemetry.io/otel/api/unit"
mockTest "go.opentelemetry.io/otel/internal/metric"
"github.com/InVisionApp/opentelemetry-go/api/core"
"github.com/InVisionApp/opentelemetry-go/api/key"
"github.com/InVisionApp/opentelemetry-go/api/metric"
"github.com/InVisionApp/opentelemetry-go/api/unit"
mockTest "github.com/InVisionApp/opentelemetry-go/internal/metric"

"github.com/google/go-cmp/cmp"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion api/metric/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"context"
"errors"

"go.opentelemetry.io/otel/api/core"
"github.com/InVisionApp/opentelemetry-go/api/core"
)

type syncInstrument struct {
Expand Down
2 changes: 1 addition & 1 deletion api/metric/counter.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package metric
import (
"context"

"go.opentelemetry.io/otel/api/core"
"github.com/InVisionApp/opentelemetry-go/api/core"
)

// Float64Counter is a metric that accumulates float64 values.
Expand Down
2 changes: 1 addition & 1 deletion api/metric/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@
// Bound Instruments can be created with the Bind function of the
// respective instrument. When done with the bound instrument, call
// Unbind on it.
package metric // import "go.opentelemetry.io/otel/api/metric"
package metric // import "github.com/InVisionApp/opentelemetry-go/api/metric"
2 changes: 1 addition & 1 deletion api/metric/measure.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package metric
import (
"context"

"go.opentelemetry.io/otel/api/core"
"github.com/InVisionApp/opentelemetry-go/api/core"
)

// Float64Measure is a metric that records float64 values.
Expand Down
Loading

0 comments on commit bdb9ffc

Please sign in to comment.