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:
parent
961121698b
commit
eed647d11f
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"unsafe"
|
||||
|
||||
"github.com/open-telemetry/opentelemetry-go/api/registry"
|
||||
"go.opentelemetry.io/api/registry"
|
||||
)
|
||||
|
||||
type Key struct {
|
||||
|
@ -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.
|
||||
|
@ -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{}
|
||||
|
@ -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
|
||||
|
@ -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) {
|
||||
|
@ -3,7 +3,7 @@ package metric
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/open-telemetry/opentelemetry-go/api/core"
|
||||
"go.opentelemetry.io/api/core"
|
||||
)
|
||||
|
||||
type noopMeter struct{}
|
||||
|
@ -15,7 +15,7 @@
|
||||
package registry
|
||||
|
||||
import (
|
||||
"github.com/open-telemetry/opentelemetry-go/api/unit"
|
||||
"go.opentelemetry.io/api/unit"
|
||||
)
|
||||
|
||||
type Sequence uint64
|
||||
|
@ -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 {
|
||||
|
@ -17,7 +17,7 @@ package tag
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/open-telemetry/opentelemetry-go/api/core"
|
||||
"go.opentelemetry.io/api/core"
|
||||
)
|
||||
|
||||
type ctxTagsType struct{}
|
||||
|
@ -18,7 +18,7 @@ import (
|
||||
"context"
|
||||
"runtime/pprof"
|
||||
|
||||
"github.com/open-telemetry/opentelemetry-go/api/core"
|
||||
"go.opentelemetry.io/api/core"
|
||||
)
|
||||
|
||||
type tagContent struct {
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -17,7 +17,7 @@ package trace
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/open-telemetry/opentelemetry-go/api/core"
|
||||
"go.opentelemetry.io/api/core"
|
||||
)
|
||||
|
||||
type noopTracer struct{}
|
||||
|
@ -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 (
|
||||
|
@ -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 (
|
||||
|
@ -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 (
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 (
|
||||
|
@ -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 {
|
||||
|
@ -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) {
|
||||
|
@ -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 {
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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 (
|
||||
|
@ -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{}
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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 (
|
||||
|
@ -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{}
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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 (
|
||||
|
@ -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{}
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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
3
go.mod
@ -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
|
||||
)
|
||||
|
@ -19,7 +19,7 @@ import (
|
||||
"net/http"
|
||||
"net/http/httptrace"
|
||||
|
||||
"github.com/open-telemetry/opentelemetry-go/api/trace"
|
||||
"go.opentelemetry.io/api/trace"
|
||||
)
|
||||
|
||||
// Client
|
||||
|
@ -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 {
|
||||
|
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user