1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-24 20:14:40 +02:00

replace import with vanity url go.opentelemetry.io. (#54)

This commit is contained in:
rghetia 2019-07-15 14:49:21 -07:00 committed by GitHub
parent 961121698b
commit eed647d11f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
39 changed files with 102 additions and 103 deletions

View File

@ -4,7 +4,7 @@ import (
"fmt"
"unsafe"
"github.com/open-telemetry/opentelemetry-go/api/registry"
"go.opentelemetry.io/api/registry"
)
type Key struct {

View File

@ -15,7 +15,7 @@
package event
import (
"github.com/open-telemetry/opentelemetry-go/api/core"
"go.opentelemetry.io/api/core"
)
// Event interface provides methods to retrieve Event properties.

View File

@ -1,8 +1,8 @@
package key
import (
"github.com/open-telemetry/opentelemetry-go/api/core"
"github.com/open-telemetry/opentelemetry-go/api/registry"
"go.opentelemetry.io/api/core"
"go.opentelemetry.io/api/registry"
)
type AnyValue struct{}

View File

@ -17,9 +17,9 @@ package metric
import (
"context"
"github.com/open-telemetry/opentelemetry-go/api/core"
"github.com/open-telemetry/opentelemetry-go/api/registry"
"github.com/open-telemetry/opentelemetry-go/api/unit"
"go.opentelemetry.io/api/core"
"go.opentelemetry.io/api/registry"
"go.opentelemetry.io/api/unit"
)
type MetricType int

View File

@ -15,7 +15,7 @@
package metric
import (
"github.com/open-telemetry/opentelemetry-go/api/registry"
"go.opentelemetry.io/api/registry"
)
func registerMetric(name string, mtype MetricType, opts []Option, metric *Handle) {

View File

@ -3,7 +3,7 @@ package metric
import (
"context"
"github.com/open-telemetry/opentelemetry-go/api/core"
"go.opentelemetry.io/api/core"
)
type noopMeter struct{}

View File

@ -15,7 +15,7 @@
package registry
import (
"github.com/open-telemetry/opentelemetry-go/api/unit"
"go.opentelemetry.io/api/unit"
)
type Sequence uint64

View File

@ -18,8 +18,8 @@ import (
"context"
"sync/atomic"
"github.com/open-telemetry/opentelemetry-go/api/core"
"github.com/open-telemetry/opentelemetry-go/api/registry"
"go.opentelemetry.io/api/core"
"go.opentelemetry.io/api/registry"
)
type MeasureHandle struct {

View File

@ -17,7 +17,7 @@ package tag
import (
"context"
"github.com/open-telemetry/opentelemetry-go/api/core"
"go.opentelemetry.io/api/core"
)
type ctxTagsType struct{}

View File

@ -18,7 +18,7 @@ import (
"context"
"runtime/pprof"
"github.com/open-telemetry/opentelemetry-go/api/core"
"go.opentelemetry.io/api/core"
)
type tagContent struct {

View File

@ -20,9 +20,9 @@ import (
"google.golang.org/grpc/codes"
"github.com/open-telemetry/opentelemetry-go/api/core"
"github.com/open-telemetry/opentelemetry-go/api/event"
"github.com/open-telemetry/opentelemetry-go/api/tag"
"go.opentelemetry.io/api/core"
"go.opentelemetry.io/api/event"
"go.opentelemetry.io/api/tag"
)
type Tracer interface {

View File

@ -19,9 +19,9 @@ import (
"google.golang.org/grpc/codes"
"github.com/open-telemetry/opentelemetry-go/api/core"
"github.com/open-telemetry/opentelemetry-go/api/event"
"github.com/open-telemetry/opentelemetry-go/api/tag"
"go.opentelemetry.io/api/core"
"go.opentelemetry.io/api/event"
"go.opentelemetry.io/api/tag"
)
type noopSpan struct {

View File

@ -17,7 +17,7 @@ package trace
import (
"context"
"github.com/open-telemetry/opentelemetry-go/api/core"
"go.opentelemetry.io/api/core"
)
type noopTracer struct{}

View File

@ -17,13 +17,13 @@ package main
import (
"context"
"github.com/open-telemetry/opentelemetry-go/api/key"
"github.com/open-telemetry/opentelemetry-go/api/metric"
"github.com/open-telemetry/opentelemetry-go/api/registry"
"github.com/open-telemetry/opentelemetry-go/api/stats"
"github.com/open-telemetry/opentelemetry-go/api/tag"
"github.com/open-telemetry/opentelemetry-go/api/trace"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/sdk/event"
"go.opentelemetry.io/api/key"
"go.opentelemetry.io/api/metric"
"go.opentelemetry.io/api/registry"
"go.opentelemetry.io/api/stats"
"go.opentelemetry.io/api/tag"
"go.opentelemetry.io/api/trace"
"go.opentelemetry.io/experimental/streaming/sdk/event"
)
var (

View File

@ -22,10 +22,10 @@ import (
"google.golang.org/grpc/codes"
"github.com/open-telemetry/opentelemetry-go/api/key"
"github.com/open-telemetry/opentelemetry-go/api/tag"
"github.com/open-telemetry/opentelemetry-go/api/trace"
"github.com/open-telemetry/opentelemetry-go/plugin/httptrace"
"go.opentelemetry.io/api/key"
"go.opentelemetry.io/api/tag"
"go.opentelemetry.io/api/trace"
"go.opentelemetry.io/plugin/httptrace"
)
var (

View File

@ -18,10 +18,10 @@ import (
"io"
"net/http"
"github.com/open-telemetry/opentelemetry-go/api/key"
"github.com/open-telemetry/opentelemetry-go/api/tag"
"github.com/open-telemetry/opentelemetry-go/api/trace"
"github.com/open-telemetry/opentelemetry-go/plugin/httptrace"
"go.opentelemetry.io/api/key"
"go.opentelemetry.io/api/tag"
"go.opentelemetry.io/api/trace"
"go.opentelemetry.io/plugin/httptrace"
)
var (

View File

@ -18,7 +18,7 @@ import (
"sync"
"sync/atomic"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/observer"
"go.opentelemetry.io/experimental/streaming/exporter/observer"
)
type Buffer struct {

View File

@ -20,7 +20,7 @@ import (
"plugin"
"time"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/observer"
"go.opentelemetry.io/experimental/streaming/exporter/observer"
)
// TODO add buffer support directly, eliminate stdout

View File

@ -22,9 +22,9 @@ import (
"google.golang.org/grpc/codes"
"github.com/open-telemetry/opentelemetry-go/api/core"
"github.com/open-telemetry/opentelemetry-go/api/stats"
"github.com/open-telemetry/opentelemetry-go/api/tag"
"go.opentelemetry.io/api/core"
"go.opentelemetry.io/api/stats"
"go.opentelemetry.io/api/tag"
)
type EventType int

View File

@ -18,10 +18,10 @@ import (
"fmt"
"strings"
"github.com/open-telemetry/opentelemetry-go/api/core"
"github.com/open-telemetry/opentelemetry-go/api/key"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/reader"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/sdk/trace"
"go.opentelemetry.io/api/core"
"go.opentelemetry.io/api/key"
"go.opentelemetry.io/experimental/streaming/exporter/reader"
"go.opentelemetry.io/experimental/streaming/sdk/trace"
)
var (

View File

@ -21,11 +21,11 @@ import (
"google.golang.org/grpc/codes"
"github.com/open-telemetry/opentelemetry-go/api/core"
"github.com/open-telemetry/opentelemetry-go/api/event"
"github.com/open-telemetry/opentelemetry-go/api/stats"
"github.com/open-telemetry/opentelemetry-go/api/tag"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/observer"
"go.opentelemetry.io/api/core"
"go.opentelemetry.io/api/event"
"go.opentelemetry.io/api/stats"
"go.opentelemetry.io/api/tag"
"go.opentelemetry.io/experimental/streaming/exporter/observer"
)
type Reader interface {

View File

@ -17,8 +17,8 @@ package format
import (
"strings"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/reader/format"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/spandata"
"go.opentelemetry.io/experimental/streaming/exporter/reader/format"
"go.opentelemetry.io/experimental/streaming/exporter/spandata"
)
func AppendSpan(buf *strings.Builder, data *spandata.Span) {

View File

@ -15,9 +15,9 @@
package spandata
import (
"github.com/open-telemetry/opentelemetry-go/api/core"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/observer"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/reader"
"go.opentelemetry.io/api/core"
"go.opentelemetry.io/experimental/streaming/exporter/observer"
"go.opentelemetry.io/experimental/streaming/exporter/reader"
)
type Reader interface {

View File

@ -15,13 +15,13 @@
package install
import (
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/observer"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/spanlog"
"go.opentelemetry.io/experimental/streaming/exporter/observer"
"go.opentelemetry.io/experimental/streaming/exporter/spanlog"
)
// Use this import:
//
// import _ "github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/spanlog/install"
// import _ "go.opentelemetry.io/experimental/streaming/exporter/spanlog/install"
//
// to include the spanlog exporter by default.

View File

@ -15,8 +15,8 @@
package main
import (
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/observer"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/spanlog"
"go.opentelemetry.io/experimental/streaming/exporter/observer"
"go.opentelemetry.io/experimental/streaming/exporter/spanlog"
)
var (

View File

@ -18,10 +18,10 @@ import (
"os"
"strings"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/buffer"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/observer"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/spandata"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/spandata/format"
"go.opentelemetry.io/experimental/streaming/exporter/buffer"
"go.opentelemetry.io/experimental/streaming/exporter/observer"
"go.opentelemetry.io/experimental/streaming/exporter/spandata"
"go.opentelemetry.io/experimental/streaming/exporter/spandata/format"
)
type spanLog struct{}

View File

@ -15,13 +15,13 @@
package install
import (
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/observer"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/stderr"
"go.opentelemetry.io/experimental/streaming/exporter/observer"
"go.opentelemetry.io/experimental/streaming/exporter/stderr"
)
// Use this import:
//
// import _ "github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/stderr/install"
// import _ "go.opentelemetry.io/experimental/streaming/exporter/stderr/install"
//
// to include the stderr exporter by default.

View File

@ -15,8 +15,8 @@
package main
import (
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/observer"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/stderr"
"go.opentelemetry.io/experimental/streaming/exporter/observer"
"go.opentelemetry.io/experimental/streaming/exporter/stderr"
)
var (

View File

@ -17,9 +17,9 @@ package stderr
import (
"os"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/observer"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/reader"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/reader/format"
"go.opentelemetry.io/experimental/streaming/exporter/observer"
"go.opentelemetry.io/experimental/streaming/exporter/reader"
"go.opentelemetry.io/experimental/streaming/exporter/reader/format"
)
type stderrLog struct{}

View File

@ -15,13 +15,13 @@
package install
import (
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/observer"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/stdout"
"go.opentelemetry.io/experimental/streaming/exporter/observer"
"go.opentelemetry.io/experimental/streaming/exporter/stdout"
)
// Use this import:
//
// import _ "github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/stdout/install"
// import _ "go.opentelemetry.io/experimental/streaming/exporter/stdout/install"
//
// to include the stderr exporter by default.

View File

@ -15,8 +15,8 @@
package main
import (
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/observer"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/stdout"
"go.opentelemetry.io/experimental/streaming/exporter/observer"
"go.opentelemetry.io/experimental/streaming/exporter/stdout"
)
var (

View File

@ -17,9 +17,9 @@ package stdout
import (
"os"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/observer"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/reader"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/reader/format"
"go.opentelemetry.io/experimental/streaming/exporter/observer"
"go.opentelemetry.io/experimental/streaming/exporter/reader"
"go.opentelemetry.io/experimental/streaming/exporter/reader/format"
)
type stdoutLog struct{}

View File

@ -17,8 +17,8 @@ package event
import (
"fmt"
"github.com/open-telemetry/opentelemetry-go/api/core"
apievent "github.com/open-telemetry/opentelemetry-go/api/event"
"go.opentelemetry.io/api/core"
apievent "go.opentelemetry.io/api/event"
)
type event struct {

View File

@ -20,11 +20,11 @@ import (
"google.golang.org/grpc/codes"
"github.com/open-telemetry/opentelemetry-go/api/core"
"github.com/open-telemetry/opentelemetry-go/api/event"
"github.com/open-telemetry/opentelemetry-go/api/tag"
apitrace "github.com/open-telemetry/opentelemetry-go/api/trace"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/observer"
"go.opentelemetry.io/api/core"
"go.opentelemetry.io/api/event"
"go.opentelemetry.io/api/tag"
apitrace "go.opentelemetry.io/api/trace"
"go.opentelemetry.io/experimental/streaming/exporter/observer"
)
type span struct {

View File

@ -18,13 +18,13 @@ import (
"context"
"math/rand"
"github.com/open-telemetry/opentelemetry-go/api/core"
"github.com/open-telemetry/opentelemetry-go/api/key"
"github.com/open-telemetry/opentelemetry-go/api/tag"
"github.com/open-telemetry/opentelemetry-go/api/trace"
apitrace "github.com/open-telemetry/opentelemetry-go/api/trace"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/exporter/observer"
"github.com/open-telemetry/opentelemetry-go/experimental/streaming/sdk/event"
"go.opentelemetry.io/api/core"
"go.opentelemetry.io/api/key"
"go.opentelemetry.io/api/tag"
"go.opentelemetry.io/api/trace"
apitrace "go.opentelemetry.io/api/trace"
"go.opentelemetry.io/experimental/streaming/exporter/observer"
"go.opentelemetry.io/experimental/streaming/sdk/event"
)
type tracer struct {

3
go.mod
View File

@ -1,4 +1,4 @@
module github.com/open-telemetry/opentelemetry-go
module go.opentelemetry.io
go 1.12
@ -20,7 +20,6 @@ require (
golang.org/x/sys v0.0.0-20190614160838-b47fdc937951 // indirect
golang.org/x/text v0.3.2 // indirect
golang.org/x/tools v0.0.0-20190521203540-521d6ed310dd
google.golang.org/appengine v1.4.0 // indirect
google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873 // indirect
google.golang.org/grpc v1.21.1
)

View File

@ -19,7 +19,7 @@ import (
"net/http"
"net/http/httptrace"
"github.com/open-telemetry/opentelemetry-go/api/trace"
"go.opentelemetry.io/api/trace"
)
// Client

View File

@ -23,9 +23,9 @@ import (
"google.golang.org/grpc/codes"
"github.com/open-telemetry/opentelemetry-go/api/core"
"github.com/open-telemetry/opentelemetry-go/api/key"
"github.com/open-telemetry/opentelemetry-go/api/trace"
"go.opentelemetry.io/api/core"
"go.opentelemetry.io/api/key"
"go.opentelemetry.io/api/trace"
)
type clientLevel struct {

View File

@ -21,9 +21,9 @@ import (
"github.com/lightstep/tracecontext.go"
"github.com/lightstep/tracecontext.go/tracestate"
"github.com/open-telemetry/opentelemetry-go/api/core"
"github.com/open-telemetry/opentelemetry-go/api/key"
"github.com/open-telemetry/opentelemetry-go/api/tag"
"go.opentelemetry.io/api/core"
"go.opentelemetry.io/api/key"
"go.opentelemetry.io/api/tag"
)
const (