Skip to content

Commit

Permalink
replace import with vanity url go.opentelemetry.io. (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
rghetia authored Jul 15, 2019
1 parent 9611216 commit eed647d
Show file tree
Hide file tree
Showing 39 changed files with 102 additions and 103 deletions.
2 changes: 1 addition & 1 deletion api/core/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"unsafe"

"github.com/open-telemetry/opentelemetry-go/api/registry"
"go.opentelemetry.io/api/registry"
)

type Key struct {
Expand Down
2 changes: 1 addition & 1 deletion api/event/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions api/key/key.go
Original file line number Diff line number Diff line change
@@ -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{}
Expand Down
6 changes: 3 additions & 3 deletions api/metric/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion api/metric/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion api/metric/noop_meter.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package metric
import (
"context"

"github.com/open-telemetry/opentelemetry-go/api/core"
"go.opentelemetry.io/api/core"
)

type noopMeter struct{}
Expand Down
2 changes: 1 addition & 1 deletion api/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package registry

import (
"github.com/open-telemetry/opentelemetry-go/api/unit"
"go.opentelemetry.io/api/unit"
)

type Sequence uint64
Expand Down
4 changes: 2 additions & 2 deletions api/stats/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion api/tag/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package tag
import (
"context"

"github.com/open-telemetry/opentelemetry-go/api/core"
"go.opentelemetry.io/api/core"
)

type ctxTagsType struct{}
Expand Down
2 changes: 1 addition & 1 deletion api/tag/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"context"
"runtime/pprof"

"github.com/open-telemetry/opentelemetry-go/api/core"
"go.opentelemetry.io/api/core"
)

type tagContent struct {
Expand Down
6 changes: 3 additions & 3 deletions api/trace/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions api/trace/noop_span.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion api/trace/noop_trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package trace
import (
"context"

"github.com/open-telemetry/opentelemetry-go/api/core"
"go.opentelemetry.io/api/core"
)

type noopTracer struct{}
Expand Down
14 changes: 7 additions & 7 deletions example/basic/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
8 changes: 4 additions & 4 deletions example/http/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
8 changes: 4 additions & 4 deletions example/http/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion experimental/streaming/exporter/buffer/buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion experimental/streaming/exporter/loader/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions experimental/streaming/exporter/observer/observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions experimental/streaming/exporter/reader/format/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
10 changes: 5 additions & 5 deletions experimental/streaming/exporter/reader/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions experimental/streaming/exporter/spandata/format/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions experimental/streaming/exporter/spandata/spandata.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions experimental/streaming/exporter/spanlog/install/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions experimental/streaming/exporter/spanlog/plugin/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
8 changes: 4 additions & 4 deletions experimental/streaming/exporter/spanlog/spanlog.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down
6 changes: 3 additions & 3 deletions experimental/streaming/exporter/stderr/install/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions experimental/streaming/exporter/stderr/plugin/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
6 changes: 3 additions & 3 deletions experimental/streaming/exporter/stderr/stderr.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down
6 changes: 3 additions & 3 deletions experimental/streaming/exporter/stdout/install/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions experimental/streaming/exporter/stdout/plugin/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
6 changes: 3 additions & 3 deletions experimental/streaming/exporter/stdout/stdout.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down
Loading

0 comments on commit eed647d

Please sign in to comment.