提交 ae99b43b 编写于 作者: Z zhang-wei 提交者: wu-sheng

Module name modification & Change license header (#37)

* update module name

* update license header
上级 f648db8d
...@@ -10,7 +10,7 @@ executors: ...@@ -10,7 +10,7 @@ executors:
build: build:
docker: docker:
- image: circleci/golang:1.12 - image: circleci/golang:1.12
working_directory: /go/src/github.com/tetratelabs/go2sky working_directory: /go/src/github.com/SkyAPM/go2sky
jobs: jobs:
verify: verify:
......
...@@ -13,7 +13,7 @@ All Golang code checked into this repo must conform to: ...@@ -13,7 +13,7 @@ All Golang code checked into this repo must conform to:
> Note that `goimports` is a strict superset of `go fmt`. > Note that `goimports` is a strict superset of `go fmt`.
Import blocks must have three sections: golang standard library imports, third party imports, and first party imports (other Go2Sky code). Each section must be separated from the others by a blank line. Import blocks must have three sections: golang standard library imports, third party imports, and first party imports (other Go2Sky code). Each section must be separated from the others by a blank line.
This can be enforced by running it as follows (make sure you configure your IDE to automatically use this): `goimports -local github.com/tetratelabs/go2sky` This can be enforced by running it as follows (make sure you configure your IDE to automatically use this): `goimports -local github.com/SkyAPM/go2sky`
- [golangci-lint](https://github.com/golangci/golangci-lint). All linter warnings are treated as errors and code with linter warnings may not be checked in. Supressions of linter warnings is allowed at the discretion of a PR's reviewers. - [golangci-lint](https://github.com/golangci/golangci-lint). All linter warnings are treated as errors and code with linter warnings may not be checked in. Supressions of linter warnings is allowed at the discretion of a PR's reviewers.
......
#
# Licensed to the SkyAPM org under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
export GO111MODULE=on export GO111MODULE=on
export GO2SKY_GO := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) export GO2SKY_GO := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
GRPC_PATH := $(GO2SKY_GO)/reporter/grpc GRPC_PATH := $(GO2SKY_GO)/reporter/grpc
...@@ -7,7 +24,7 @@ GRPC_PATH := $(GO2SKY_GO)/reporter/grpc ...@@ -7,7 +24,7 @@ GRPC_PATH := $(GO2SKY_GO)/reporter/grpc
.PHONY: test .PHONY: test
test: test:
go test -v -race -cover `go list ./... | grep -v github.com/tetratelabs/go2sky/reporter/grpc` go test -v -race -cover `go list ./... | grep -v github.com/SkyAPM/go2sky/reporter/grpc`
.PHONY: proto-gen .PHONY: proto-gen
proto-gen: proto-gen:
...@@ -22,20 +39,25 @@ proto-gen: ...@@ -22,20 +39,25 @@ proto-gen:
mock-gen: mock-gen:
cd $(GRPC_PATH)/register && \ cd $(GRPC_PATH)/register && \
mkdir -p mock_register && \ mkdir -p mock_register && \
mockgen github.com/tetratelabs/go2sky/reporter/grpc/register RegisterClient > mock_register/Register.mock.go && \ mockgen github.com/SkyAPM/go2sky/reporter/grpc/register RegisterClient > mock_register/Register.mock.go && \
mockgen github.com/tetratelabs/go2sky/reporter/grpc/register ServiceInstancePingClient > mock_register/InstancePing.mock.go mockgen github.com/SkyAPM/go2sky/reporter/grpc/register ServiceInstancePingClient > mock_register/InstancePing.mock.go
cd $(GRPC_PATH)/language-agent-v2 && \ cd $(GRPC_PATH)/language-agent-v2 && \
mkdir -p mock_trace && \ mkdir -p mock_trace && \
mockgen github.com/tetratelabs/go2sky/reporter/grpc/language-agent-v2 TraceSegmentReportServiceClient > mock_trace/trace.mock.go mockgen github.com/SkyAPM/go2sky/reporter/grpc/language-agent-v2 TraceSegmentReportServiceClient > mock_trace/trace.mock.go
LINTER := bin/golangci-lint LINTER := bin/golangci-lint
$(LINTER): $(LINTER):
wget -q -O- https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.13 wget -q -O- https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.20.1
.PHONY: lint .PHONY: lint
lint: $(LINTER) ./golangci.yml ## Run the linters lint: $(LINTER) ./golangci.yml ## Run the linters
@echo "linting..." @echo "linting..."
$(LINTER) run --config ./golangci.yml $(LINTER) run --config ./golangci.yml
.PHONY: fix
fix: $(LINTER)
@echo "fix..."
$(LINTER) run -v --fix ./...
.PHONY: all .PHONY: all
all: test lint all: test lint
\ No newline at end of file
# GO2Sky # GO2Sky
[![CircleCI](https://circleci.com/gh/SkyAPM/go2sky.svg?style=svg)](https://circleci.com/gh/SkyAPM/go2sky) [![CircleCI](https://circleci.com/gh/SkyAPM/go2sky.svg?style=svg)](https://circleci.com/gh/SkyAPM/go2sky)
[![GoDoc](https://godoc.org/github.com/tetratelabs/go2sky?status.svg)](https://godoc.org/github.com/tetratelabs/go2sky) [![GoDoc](https://godoc.org/github.com/SkyAPM/go2sky?status.svg)](https://godoc.org/github.com/SkyAPM/go2sky)
**GO2Sky** is an instrument SDK library, written in Go, by following [Apache SkyWalking](https://github.com/apache/incubator-skywalking) tracing and metrics formats. **GO2Sky** is an instrument SDK library, written in Go, by following [Apache SkyWalking](https://github.com/apache/incubator-skywalking) tracing and metrics formats.
# Installation # Installation
``` ```
$ go get -u github.com/tetratelabs/go2sky $ go get -u github.com/SkyAPM/go2sky
``` ```
The API of this project is still evolving. The use of vendoring tool is recommended. The API of this project is still evolving. The use of vendoring tool is recommended.
......
// Copyright 2019 Tetrate Labs // Licensed to SkyAPM org under one or more contributor
// // license agreements. See the NOTICE file distributed with
// Licensed under the Apache License, Version 2.0 (the "License"); // this work for additional information regarding copyright
// you may not use this file except in compliance with the License. // ownership. SkyAPM org licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing,
// distributed under the License is distributed on an "AS IS" BASIS, // software distributed under the License is distributed on an
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// See the License for the specific language governing permissions and // KIND, either express or implied. See the License for the
// limitations under the License. // specific language governing permissions and limitations
// under the License.
/* /*
Package go2sky implements a native Apache SkyWalking agent library for Go. Package go2sky implements a native Apache SkyWalking agent library for Go.
......
// Copyright 2019 Tetrate Labs // Licensed to SkyAPM org under one or more contributor
// // license agreements. See the NOTICE file distributed with
// Licensed under the Apache License, Version 2.0 (the "License"); // this work for additional information regarding copyright
// you may not use this file except in compliance with the License. // ownership. SkyAPM org licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing,
// distributed under the License is distributed on an "AS IS" BASIS, // software distributed under the License is distributed on an
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// See the License for the specific language governing permissions and // KIND, either express or implied. See the License for the
// limitations under the License. // specific language governing permissions and limitations
// under the License.
package go2sky_test package go2sky_test
...@@ -19,8 +22,8 @@ import ( ...@@ -19,8 +22,8 @@ import (
"log" "log"
"time" "time"
"github.com/tetratelabs/go2sky" "github.com/SkyAPM/go2sky"
"github.com/tetratelabs/go2sky/reporter" "github.com/SkyAPM/go2sky/reporter"
) )
func ExampleNewTracer() { func ExampleNewTracer() {
......
# Licensed to the SkyAPM org under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
linters: linters:
enable: enable:
- deadcode - deadcode
......
// Copyright 2019 Tetrate Labs // Licensed to SkyAPM org under one or more contributor
// // license agreements. See the NOTICE file distributed with
// Licensed under the Apache License, Version 2.0 (the "License"); // this work for additional information regarding copyright
// you may not use this file except in compliance with the License. // ownership. SkyAPM org licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing,
// distributed under the License is distributed on an "AS IS" BASIS, // software distributed under the License is distributed on an
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// See the License for the specific language governing permissions and // KIND, either express or implied. See the License for the
// limitations under the License. // specific language governing permissions and limitations
// under the License.
package idgen package idgen
......
// Copyright 2019 Tetrate Labs // Licensed to SkyAPM org under one or more contributor
// // license agreements. See the NOTICE file distributed with
// Licensed under the Apache License, Version 2.0 (the "License"); // this work for additional information regarding copyright
// you may not use this file except in compliance with the License. // ownership. SkyAPM org licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing,
// distributed under the License is distributed on an "AS IS" BASIS, // software distributed under the License is distributed on an
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// See the License for the specific language governing permissions and // KIND, either express or implied. See the License for the
// limitations under the License. // specific language governing permissions and limitations
// under the License.
package tool package tool
......
// Copyright 2019 Tetrate Labs // Licensed to SkyAPM org under one or more contributor
// // license agreements. See the NOTICE file distributed with
// Licensed under the Apache License, Version 2.0 (the "License"); // this work for additional information regarding copyright
// you may not use this file except in compliance with the License. // ownership. SkyAPM org licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing,
// distributed under the License is distributed on an "AS IS" BASIS, // software distributed under the License is distributed on an
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// See the License for the specific language governing permissions and // KIND, either express or implied. See the License for the
// limitations under the License. // specific language governing permissions and limitations
// under the License.
package tool package tool
......
// Copyright 2019 Tetrate Labs // Licensed to SkyAPM org under one or more contributor
// // license agreements. See the NOTICE file distributed with
// Licensed under the Apache License, Version 2.0 (the "License"); // this work for additional information regarding copyright
// you may not use this file except in compliance with the License. // ownership. SkyAPM org licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing,
// distributed under the License is distributed on an "AS IS" BASIS, // software distributed under the License is distributed on an
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// See the License for the specific language governing permissions and // KIND, either express or implied. See the License for the
// limitations under the License. // specific language governing permissions and limitations
// under the License.
package go2sky package go2sky
import ( import (
"time" "time"
"github.com/tetratelabs/go2sky/reporter/grpc/common" "github.com/SkyAPM/go2sky/reporter/grpc/common"
) )
type NoopSpan struct { type NoopSpan struct {
......
// Copyright 2019 Tetrate Labs // Licensed to SkyAPM org under one or more contributor
// // license agreements. See the NOTICE file distributed with
// Licensed under the Apache License, Version 2.0 (the "License"); // this work for additional information regarding copyright
// you may not use this file except in compliance with the License. // ownership. SkyAPM org licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing,
// distributed under the License is distributed on an "AS IS" BASIS, // software distributed under the License is distributed on an
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// See the License for the specific language governing permissions and // KIND, either express or implied. See the License for the
// limitations under the License. // specific language governing permissions and limitations
// under the License.
package go2sky package go2sky
...@@ -20,7 +23,7 @@ import ( ...@@ -20,7 +23,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/tetratelabs/go2sky/reporter/grpc/common" "github.com/SkyAPM/go2sky/reporter/grpc/common"
) )
type createFunc func() (Span, context.Context, error) type createFunc func() (Span, context.Context, error)
......
// Copyright 2019 Tetrate Labs // Licensed to SkyAPM org under one or more contributor
// // license agreements. See the NOTICE file distributed with
// Licensed under the Apache License, Version 2.0 (the "License"); // this work for additional information regarding copyright
// you may not use this file except in compliance with the License. // ownership. SkyAPM org licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing,
// distributed under the License is distributed on an "AS IS" BASIS, // software distributed under the License is distributed on an
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// See the License for the specific language governing permissions and // KIND, either express or implied. See the License for the
// limitations under the License. // specific language governing permissions and limitations
// under the License.
//Package Gin is a HTTP web framework written in Go (Golang) plugin which can be used for integration with Gin http server. //Package Gin is a HTTP web framework written in Go (Golang) plugin which can be used for integration with Gin http server.
package gin package gin
// Copyright 2019 Tetrate Labs // Licensed to SkyAPM org under one or more contributor
// // license agreements. See the NOTICE file distributed with
// Licensed under the Apache License, Version 2.0 (the "License"); // this work for additional information regarding copyright
// you may not use this file except in compliance with the License. // ownership. SkyAPM org licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing,
// distributed under the License is distributed on an "AS IS" BASIS, // software distributed under the License is distributed on an
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// See the License for the specific language governing permissions and // KIND, either express or implied. See the License for the
// limitations under the License. // specific language governing permissions and limitations
// under the License.
package gin package gin
...@@ -20,10 +23,10 @@ import ( ...@@ -20,10 +23,10 @@ import (
"net/http" "net/http"
"sync" "sync"
"github.com/SkyAPM/go2sky"
h "github.com/SkyAPM/go2sky/plugins/http"
"github.com/SkyAPM/go2sky/reporter"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/tetratelabs/go2sky"
h "github.com/tetratelabs/go2sky/plugins/http"
"github.com/tetratelabs/go2sky/reporter"
) )
func ExampleMiddleware() { func ExampleMiddleware() {
......
// Copyright 2019 Tetrate Labs // Licensed to SkyAPM org under one or more contributor
// // license agreements. See the NOTICE file distributed with
// Licensed under the Apache License, Version 2.0 (the "License"); // this work for additional information regarding copyright
// you may not use this file except in compliance with the License. // ownership. SkyAPM org licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing,
// distributed under the License is distributed on an "AS IS" BASIS, // software distributed under the License is distributed on an
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// See the License for the specific language governing permissions and // KIND, either express or implied. See the License for the
// limitations under the License. // specific language governing permissions and limitations
// under the License.
//Package Gin is a HTTP web framework written in Go (Golang) plugin which can be used for integration with Gin http server. //Package Gin is a HTTP web framework written in Go (Golang) plugin which can be used for integration with Gin http server.
...@@ -21,10 +24,10 @@ import ( ...@@ -21,10 +24,10 @@ import (
"sync" "sync"
"time" "time"
"github.com/SkyAPM/go2sky"
"github.com/SkyAPM/go2sky/propagation"
"github.com/SkyAPM/go2sky/reporter/grpc/common"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/tetratelabs/go2sky"
"github.com/tetratelabs/go2sky/propagation"
"github.com/tetratelabs/go2sky/reporter/grpc/common"
) )
const ( const (
......
// Copyright 2019 Tetrate Labs // Licensed to SkyAPM org under one or more contributor
// // license agreements. See the NOTICE file distributed with
// Licensed under the Apache License, Version 2.0 (the "License"); // this work for additional information regarding copyright
// you may not use this file except in compliance with the License. // ownership. SkyAPM org licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing,
// distributed under the License is distributed on an "AS IS" BASIS, // software distributed under the License is distributed on an
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// See the License for the specific language governing permissions and // KIND, either express or implied. See the License for the
// limitations under the License. // specific language governing permissions and limitations
// under the License.
package http package http
...@@ -19,9 +22,9 @@ import ( ...@@ -19,9 +22,9 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/tetratelabs/go2sky" "github.com/SkyAPM/go2sky"
"github.com/tetratelabs/go2sky/propagation" "github.com/SkyAPM/go2sky/propagation"
"github.com/tetratelabs/go2sky/reporter/grpc/common" "github.com/SkyAPM/go2sky/reporter/grpc/common"
) )
const httpClientComponentID int32 = 2 const httpClientComponentID int32 = 2
......
// Copyright 2019 Tetrate Labs // Licensed to SkyAPM org under one or more contributor
// // license agreements. See the NOTICE file distributed with
// Licensed under the Apache License, Version 2.0 (the "License"); // this work for additional information regarding copyright
// you may not use this file except in compliance with the License. // ownership. SkyAPM org licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing,
// distributed under the License is distributed on an "AS IS" BASIS, // software distributed under the License is distributed on an
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// See the License for the specific language governing permissions and // KIND, either express or implied. See the License for the
// limitations under the License. // specific language governing permissions and limitations
// under the License.
/* /*
Package http contains several client/server http plugin which can be used for integration with net/http. Package http contains several client/server http plugin which can be used for integration with net/http.
......
// Copyright 2019 Tetrate Labs // Licensed to SkyAPM org under one or more contributor
// // license agreements. See the NOTICE file distributed with
// Licensed under the Apache License, Version 2.0 (the "License"); // this work for additional information regarding copyright
// you may not use this file except in compliance with the License. // ownership. SkyAPM org licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing,
// distributed under the License is distributed on an "AS IS" BASIS, // software distributed under the License is distributed on an
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// See the License for the specific language governing permissions and // KIND, either express or implied. See the License for the
// limitations under the License. // specific language governing permissions and limitations
// under the License.
package http package http
...@@ -23,8 +26,8 @@ import ( ...@@ -23,8 +26,8 @@ import (
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/tetratelabs/go2sky" "github.com/SkyAPM/go2sky"
"github.com/tetratelabs/go2sky/reporter" "github.com/SkyAPM/go2sky/reporter"
) )
func ExampleNewServerMiddleware() { func ExampleNewServerMiddleware() {
......
// Copyright 2019 Tetrate Labs // Licensed to SkyAPM org under one or more contributor
// // license agreements. See the NOTICE file distributed with
// Licensed under the Apache License, Version 2.0 (the "License"); // this work for additional information regarding copyright
// you may not use this file except in compliance with the License. // ownership. SkyAPM org licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing,
// distributed under the License is distributed on an "AS IS" BASIS, // software distributed under the License is distributed on an
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// See the License for the specific language governing permissions and // KIND, either express or implied. See the License for the
// limitations under the License. // specific language governing permissions and limitations
// under the License.
package http package http
...@@ -20,10 +23,10 @@ import ( ...@@ -20,10 +23,10 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/tetratelabs/go2sky" "github.com/SkyAPM/go2sky"
"github.com/tetratelabs/go2sky/internal/tool" "github.com/SkyAPM/go2sky/internal/tool"
"github.com/tetratelabs/go2sky/propagation" "github.com/SkyAPM/go2sky/propagation"
"github.com/tetratelabs/go2sky/reporter/grpc/common" "github.com/SkyAPM/go2sky/reporter/grpc/common"
) )
const ( const (
......
// Copyright 2019 Tetrate Labs // Licensed to SkyAPM org under one or more contributor
// // license agreements. See the NOTICE file distributed with
// Licensed under the Apache License, Version 2.0 (the "License"); // this work for additional information regarding copyright
// you may not use this file except in compliance with the License. // ownership. SkyAPM org licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing,
// distributed under the License is distributed on an "AS IS" BASIS, // software distributed under the License is distributed on an
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// See the License for the specific language governing permissions and // KIND, either express or implied. See the License for the
// limitations under the License. // specific language governing permissions and limitations
// under the License.
/* /*
Package propagation holds the required function signatures for Injection and Package propagation holds the required function signatures for Injection and
......
// Copyright 2019 Tetrate Labs // Licensed to SkyAPM org under one or more contributor
// // license agreements. See the NOTICE file distributed with
// Licensed under the Apache License, Version 2.0 (the "License"); // this work for additional information regarding copyright
// you may not use this file except in compliance with the License. // ownership. SkyAPM org licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing,
// distributed under the License is distributed on an "AS IS" BASIS, // software distributed under the License is distributed on an
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// See the License for the specific language governing permissions and // KIND, either express or implied. See the License for the
// limitations under the License. // specific language governing permissions and limitations
// under the License.
/* /*
Package reporter holds reporters contain official reporter implementations. Package reporter holds reporters contain official reporter implementations.
......
// Copyright 2019 Tetrate Labs // Licensed to SkyAPM org under one or more contributor
// // license agreements. See the NOTICE file distributed with
// Licensed under the Apache License, Version 2.0 (the "License"); // this work for additional information regarding copyright
// you may not use this file except in compliance with the License. // ownership. SkyAPM org licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing,
// distributed under the License is distributed on an "AS IS" BASIS, // software distributed under the License is distributed on an
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// See the License for the specific language governing permissions and // KIND, either express or implied. See the License for the
// limitations under the License. // specific language governing permissions and limitations
// under the License.
package reporter package reporter
...@@ -26,11 +29,11 @@ import ( ...@@ -26,11 +29,11 @@ import (
"google.golang.org/grpc" "google.golang.org/grpc"
"google.golang.org/grpc/connectivity" "google.golang.org/grpc/connectivity"
"github.com/tetratelabs/go2sky" "github.com/SkyAPM/go2sky"
"github.com/tetratelabs/go2sky/internal/tool" "github.com/SkyAPM/go2sky/internal/tool"
"github.com/tetratelabs/go2sky/reporter/grpc/common" "github.com/SkyAPM/go2sky/reporter/grpc/common"
v2 "github.com/tetratelabs/go2sky/reporter/grpc/language-agent-v2" v2 "github.com/SkyAPM/go2sky/reporter/grpc/language-agent-v2"
"github.com/tetratelabs/go2sky/reporter/grpc/register" "github.com/SkyAPM/go2sky/reporter/grpc/register"
) )
const ( const (
......
...@@ -21,7 +21,7 @@ syntax = "proto3"; ...@@ -21,7 +21,7 @@ syntax = "proto3";
option java_multiple_files = true; option java_multiple_files = true;
option java_package = "org.apache.skywalking.apm.network.language.agent"; option java_package = "org.apache.skywalking.apm.network.language.agent";
option csharp_namespace = "SkyWalking.NetworkProtocol"; option csharp_namespace = "SkyWalking.NetworkProtocol";
option go_package = "github.com/tetratelabs/go2sky/reporter/grpc/common"; option go_package = "github.com/SkyAPM/go2sky/reporter/grpc/common";
import "common/common.proto"; import "common/common.proto";
......
...@@ -21,7 +21,7 @@ syntax = "proto3"; ...@@ -21,7 +21,7 @@ syntax = "proto3";
option java_multiple_files = true; option java_multiple_files = true;
option java_package = "org.apache.skywalking.apm.network.language.agent"; option java_package = "org.apache.skywalking.apm.network.language.agent";
option csharp_namespace = "SkyWalking.NetworkProtocol"; option csharp_namespace = "SkyWalking.NetworkProtocol";
option go_package = "github.com/tetratelabs/go2sky/reporter/grpc/common"; option go_package = "github.com/SkyAPM/go2sky/reporter/grpc/common";
import "common/common.proto"; import "common/common.proto";
......
...@@ -21,7 +21,7 @@ syntax = "proto3"; ...@@ -21,7 +21,7 @@ syntax = "proto3";
option java_multiple_files = true; option java_multiple_files = true;
option java_package = "org.apache.skywalking.apm.network.common"; option java_package = "org.apache.skywalking.apm.network.common";
option csharp_namespace = "SkyWalking.NetworkProtocol"; option csharp_namespace = "SkyWalking.NetworkProtocol";
option go_package = "github.com/tetratelabs/go2sky/reporter/grpc/common"; option go_package = "github.com/SkyAPM/go2sky/reporter/grpc/common";
message KeyStringValuePair { message KeyStringValuePair {
string key = 1; string key = 1;
......
...@@ -21,7 +21,7 @@ syntax = "proto3"; ...@@ -21,7 +21,7 @@ syntax = "proto3";
option java_multiple_files = true; option java_multiple_files = true;
option java_package = "org.apache.skywalking.apm.network.language.agent"; option java_package = "org.apache.skywalking.apm.network.language.agent";
option csharp_namespace = "SkyWalking.NetworkProtocol"; option csharp_namespace = "SkyWalking.NetworkProtocol";
option go_package = "github.com/tetratelabs/go2sky/reporter/grpc/common"; option go_package = "github.com/SkyAPM/go2sky/reporter/grpc/common";
message UpstreamSegment { message UpstreamSegment {
repeated UniqueId globalTraceIds = 1; repeated UniqueId globalTraceIds = 1;
......
...@@ -6,8 +6,8 @@ package language_agent_v2 ...@@ -6,8 +6,8 @@ package language_agent_v2
import ( import (
context "context" context "context"
fmt "fmt" fmt "fmt"
common "github.com/SkyAPM/go2sky/reporter/grpc/common"
proto "github.com/golang/protobuf/proto" proto "github.com/golang/protobuf/proto"
common "github.com/tetratelabs/go2sky/reporter/grpc/common"
grpc "google.golang.org/grpc" grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes" codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status" status "google.golang.org/grpc/status"
......
...@@ -21,7 +21,7 @@ syntax = "proto3"; ...@@ -21,7 +21,7 @@ syntax = "proto3";
option java_multiple_files = true; option java_multiple_files = true;
option java_package = "org.apache.skywalking.apm.network.language.agent.v2"; option java_package = "org.apache.skywalking.apm.network.language.agent.v2";
option csharp_namespace = "SkyWalking.NetworkProtocol"; option csharp_namespace = "SkyWalking.NetworkProtocol";
option go_package = "github.com/tetratelabs/go2sky/reporter/grpc/language-agent-v2"; option go_package = "github.com/SkyAPM/go2sky/reporter/grpc/language-agent-v2";
import "common/common.proto"; import "common/common.proto";
import "common/CLR.proto"; import "common/CLR.proto";
......
...@@ -6,8 +6,8 @@ package language_agent_v2 ...@@ -6,8 +6,8 @@ package language_agent_v2
import ( import (
context "context" context "context"
fmt "fmt" fmt "fmt"
common "github.com/SkyAPM/go2sky/reporter/grpc/common"
proto "github.com/golang/protobuf/proto" proto "github.com/golang/protobuf/proto"
common "github.com/tetratelabs/go2sky/reporter/grpc/common"
grpc "google.golang.org/grpc" grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes" codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status" status "google.golang.org/grpc/status"
......
...@@ -21,7 +21,7 @@ syntax = "proto3"; ...@@ -21,7 +21,7 @@ syntax = "proto3";
option java_multiple_files = true; option java_multiple_files = true;
option java_package = "org.apache.skywalking.apm.network.language.agent.v2"; option java_package = "org.apache.skywalking.apm.network.language.agent.v2";
option csharp_namespace = "SkyWalking.NetworkProtocol"; option csharp_namespace = "SkyWalking.NetworkProtocol";
option go_package = "github.com/tetratelabs/go2sky/reporter/grpc/language-agent-v2"; option go_package = "github.com/SkyAPM/go2sky/reporter/grpc/language-agent-v2";
import "common/common.proto"; import "common/common.proto";
......
// Code generated by MockGen. DO NOT EDIT. // Code generated by MockGen. DO NOT EDIT.
// Source: github.com/tetratelabs/go2sky/reporter/grpc/language-agent-v2 (interfaces: TraceSegmentReportServiceClient) // Source: github.com/SkyAPM/go2sky/reporter/grpc/language-agent-v2 (interfaces: TraceSegmentReportServiceClient)
// Package mock_language_agent_v2 is a generated GoMock package. // Package mock_language_agent_v2 is a generated GoMock package.
package mock_language_agent_v2 package mock_language_agent_v2
import ( import (
context "context" context "context"
language_agent_v2 "github.com/SkyAPM/go2sky/reporter/grpc/language-agent-v2"
gomock "github.com/golang/mock/gomock" gomock "github.com/golang/mock/gomock"
language_agent_v2 "github.com/tetratelabs/go2sky/reporter/grpc/language-agent-v2"
grpc "google.golang.org/grpc" grpc "google.golang.org/grpc"
reflect "reflect" reflect "reflect"
) )
......
...@@ -6,8 +6,8 @@ package language_agent_v2 ...@@ -6,8 +6,8 @@ package language_agent_v2
import ( import (
context "context" context "context"
fmt "fmt" fmt "fmt"
common "github.com/SkyAPM/go2sky/reporter/grpc/common"
proto "github.com/golang/protobuf/proto" proto "github.com/golang/protobuf/proto"
common "github.com/tetratelabs/go2sky/reporter/grpc/common"
grpc "google.golang.org/grpc" grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes" codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status" status "google.golang.org/grpc/status"
......
...@@ -21,7 +21,7 @@ syntax = "proto3"; ...@@ -21,7 +21,7 @@ syntax = "proto3";
option java_multiple_files = true; option java_multiple_files = true;
option java_package = "org.apache.skywalking.apm.network.language.agent.v2"; option java_package = "org.apache.skywalking.apm.network.language.agent.v2";
option csharp_namespace = "SkyWalking.NetworkProtocol"; option csharp_namespace = "SkyWalking.NetworkProtocol";
option go_package = "github.com/tetratelabs/go2sky/reporter/grpc/language-agent-v2"; option go_package = "github.com/SkyAPM/go2sky/reporter/grpc/language-agent-v2";
import "common/common.proto"; import "common/common.proto";
import "common/trace-common.proto"; import "common/trace-common.proto";
......
...@@ -6,8 +6,8 @@ package register ...@@ -6,8 +6,8 @@ package register
import ( import (
context "context" context "context"
fmt "fmt" fmt "fmt"
common "github.com/SkyAPM/go2sky/reporter/grpc/common"
proto "github.com/golang/protobuf/proto" proto "github.com/golang/protobuf/proto"
common "github.com/tetratelabs/go2sky/reporter/grpc/common"
grpc "google.golang.org/grpc" grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes" codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status" status "google.golang.org/grpc/status"
......
...@@ -21,7 +21,7 @@ syntax = "proto3"; ...@@ -21,7 +21,7 @@ syntax = "proto3";
option java_multiple_files = true; option java_multiple_files = true;
option java_package = "org.apache.skywalking.apm.network.register.v2"; option java_package = "org.apache.skywalking.apm.network.register.v2";
option csharp_namespace = "SkyWalking.NetworkProtocol"; option csharp_namespace = "SkyWalking.NetworkProtocol";
option go_package = "github.com/tetratelabs/go2sky/reporter/grpc/register"; option go_package = "github.com/SkyAPM/go2sky/reporter/grpc/register";
import "common/common.proto"; import "common/common.proto";
......
...@@ -6,8 +6,8 @@ package register ...@@ -6,8 +6,8 @@ package register
import ( import (
context "context" context "context"
fmt "fmt" fmt "fmt"
common "github.com/SkyAPM/go2sky/reporter/grpc/common"
proto "github.com/golang/protobuf/proto" proto "github.com/golang/protobuf/proto"
common "github.com/tetratelabs/go2sky/reporter/grpc/common"
grpc "google.golang.org/grpc" grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes" codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status" status "google.golang.org/grpc/status"
......
...@@ -21,7 +21,7 @@ syntax = "proto3"; ...@@ -21,7 +21,7 @@ syntax = "proto3";
option java_multiple_files = true; option java_multiple_files = true;
option java_package = "org.apache.skywalking.apm.network.register.v2"; option java_package = "org.apache.skywalking.apm.network.register.v2";
option csharp_namespace = "SkyWalking.NetworkProtocol"; option csharp_namespace = "SkyWalking.NetworkProtocol";
option go_package = "github.com/tetratelabs/go2sky/reporter/grpc/register"; option go_package = "github.com/SkyAPM/go2sky/reporter/grpc/register";
import "common/common.proto"; import "common/common.proto";
......
// Code generated by MockGen. DO NOT EDIT. // Code generated by MockGen. DO NOT EDIT.
// Source: github.com/tetratelabs/go2sky/reporter/grpc/register (interfaces: ServiceInstancePingClient) // Source: github.com/SkyAPM/go2sky/reporter/grpc/register (interfaces: ServiceInstancePingClient)
// Package mock_register is a generated GoMock package. // Package mock_register is a generated GoMock package.
package mock_register package mock_register
import ( import (
context "context" context "context"
common "github.com/SkyAPM/go2sky/reporter/grpc/common"
register "github.com/SkyAPM/go2sky/reporter/grpc/register"
gomock "github.com/golang/mock/gomock" gomock "github.com/golang/mock/gomock"
common "github.com/tetratelabs/go2sky/reporter/grpc/common"
register "github.com/tetratelabs/go2sky/reporter/grpc/register"
grpc "google.golang.org/grpc" grpc "google.golang.org/grpc"
reflect "reflect" reflect "reflect"
) )
......
// Code generated by MockGen. DO NOT EDIT. // Code generated by MockGen. DO NOT EDIT.
// Source: github.com/tetratelabs/go2sky/reporter/grpc/register (interfaces: RegisterClient) // Source: github.com/SkyAPM/go2sky/reporter/grpc/register (interfaces: RegisterClient)
// Package mock_register is a generated GoMock package. // Package mock_register is a generated GoMock package.
package mock_register package mock_register
import ( import (
context "context" context "context"
common "github.com/SkyAPM/go2sky/reporter/grpc/common"
register "github.com/SkyAPM/go2sky/reporter/grpc/register"
gomock "github.com/golang/mock/gomock" gomock "github.com/golang/mock/gomock"
common "github.com/tetratelabs/go2sky/reporter/grpc/common"
register "github.com/tetratelabs/go2sky/reporter/grpc/register"
grpc "google.golang.org/grpc" grpc "google.golang.org/grpc"
reflect "reflect" reflect "reflect"
) )
......
// Copyright 2019 Tetrate Labs // Licensed to SkyAPM org under one or more contributor
// // license agreements. See the NOTICE file distributed with
// Licensed under the Apache License, Version 2.0 (the "License"); // this work for additional information regarding copyright
// you may not use this file except in compliance with the License. // ownership. SkyAPM org licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing,
// distributed under the License is distributed on an "AS IS" BASIS, // software distributed under the License is distributed on an
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// See the License for the specific language governing permissions and // KIND, either express or implied. See the License for the
// limitations under the License. // specific language governing permissions and limitations
// under the License.
package reporter package reporter
...@@ -25,10 +28,10 @@ import ( ...@@ -25,10 +28,10 @@ import (
"github.com/golang/mock/gomock" "github.com/golang/mock/gomock"
"github.com/tetratelabs/go2sky" "github.com/SkyAPM/go2sky"
"github.com/tetratelabs/go2sky/reporter/grpc/common" "github.com/SkyAPM/go2sky/reporter/grpc/common"
"github.com/tetratelabs/go2sky/reporter/grpc/register" "github.com/SkyAPM/go2sky/reporter/grpc/register"
"github.com/tetratelabs/go2sky/reporter/grpc/register/mock_register" "github.com/SkyAPM/go2sky/reporter/grpc/register/mock_register"
) )
const header string = "1-MTU1NTY0NDg4Mjk2Nzg2ODAwMC4wLjU5NDYzNzUyMDYzMzg3NDkwODc=" + const header string = "1-MTU1NTY0NDg4Mjk2Nzg2ODAwMC4wLjU5NDYzNzUyMDYzMzg3NDkwODc=" +
......
// Copyright 2019 Tetrate Labs // Licensed to SkyAPM org under one or more contributor
// // license agreements. See the NOTICE file distributed with
// Licensed under the Apache License, Version 2.0 (the "License"); // this work for additional information regarding copyright
// you may not use this file except in compliance with the License. // ownership. SkyAPM org licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing,
// distributed under the License is distributed on an "AS IS" BASIS, // software distributed under the License is distributed on an
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// See the License for the specific language governing permissions and // KIND, either express or implied. See the License for the
// limitations under the License. // specific language governing permissions and limitations
// under the License.
package reporter package reporter
...@@ -19,7 +22,7 @@ import ( ...@@ -19,7 +22,7 @@ import (
"log" "log"
"os" "os"
"github.com/tetratelabs/go2sky" "github.com/SkyAPM/go2sky"
) )
const ( const (
......
// Copyright 2019 Tetrate Labs // Licensed to SkyAPM org under one or more contributor
// // license agreements. See the NOTICE file distributed with
// Licensed under the Apache License, Version 2.0 (the "License"); // this work for additional information regarding copyright
// you may not use this file except in compliance with the License. // ownership. SkyAPM org licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing,
// distributed under the License is distributed on an "AS IS" BASIS, // software distributed under the License is distributed on an
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// See the License for the specific language governing permissions and // KIND, either express or implied. See the License for the
// limitations under the License. // specific language governing permissions and limitations
// under the License.
package go2sky package go2sky
import ( import (
"sync/atomic" "sync/atomic"
"github.com/tetratelabs/go2sky/internal/idgen" "github.com/SkyAPM/go2sky/internal/idgen"
"github.com/tetratelabs/go2sky/internal/tool" "github.com/SkyAPM/go2sky/internal/tool"
"github.com/tetratelabs/go2sky/propagation" "github.com/SkyAPM/go2sky/propagation"
"github.com/tetratelabs/go2sky/reporter/grpc/common" "github.com/SkyAPM/go2sky/reporter/grpc/common"
v2 "github.com/tetratelabs/go2sky/reporter/grpc/language-agent-v2" v2 "github.com/SkyAPM/go2sky/reporter/grpc/language-agent-v2"
) )
func newSegmentSpan(defaultSpan *defaultSpan, parentSpan segmentSpan) (s segmentSpan) { func newSegmentSpan(defaultSpan *defaultSpan, parentSpan segmentSpan) (s segmentSpan) {
......
// Copyright 2019 Tetrate Labs // Licensed to SkyAPM org under one or more contributor
// // license agreements. See the NOTICE file distributed with
// Licensed under the Apache License, Version 2.0 (the "License"); // this work for additional information regarding copyright
// you may not use this file except in compliance with the License. // ownership. SkyAPM org licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing,
// distributed under the License is distributed on an "AS IS" BASIS, // software distributed under the License is distributed on an
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// See the License for the specific language governing permissions and // KIND, either express or implied. See the License for the
// limitations under the License. // specific language governing permissions and limitations
// under the License.
package go2sky package go2sky
......
// Copyright 2019 Tetrate Labs // Licensed to SkyAPM org under one or more contributor
// // license agreements. See the NOTICE file distributed with
// Licensed under the Apache License, Version 2.0 (the "License"); // this work for additional information regarding copyright
// you may not use this file except in compliance with the License. // ownership. SkyAPM org licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing,
// distributed under the License is distributed on an "AS IS" BASIS, // software distributed under the License is distributed on an
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// See the License for the specific language governing permissions and // KIND, either express or implied. See the License for the
// limitations under the License. // specific language governing permissions and limitations
// under the License.
package go2sky package go2sky
...@@ -18,10 +21,10 @@ import ( ...@@ -18,10 +21,10 @@ import (
"math" "math"
"time" "time"
"github.com/tetratelabs/go2sky/internal/tool" "github.com/SkyAPM/go2sky/internal/tool"
"github.com/tetratelabs/go2sky/propagation" "github.com/SkyAPM/go2sky/propagation"
"github.com/tetratelabs/go2sky/reporter/grpc/common" "github.com/SkyAPM/go2sky/reporter/grpc/common"
v2 "github.com/tetratelabs/go2sky/reporter/grpc/language-agent-v2" v2 "github.com/SkyAPM/go2sky/reporter/grpc/language-agent-v2"
) )
// SpanType is used to identify entry, exit and local // SpanType is used to identify entry, exit and local
......
// Copyright 2019 Tetrate Labs // Licensed to SkyAPM org under one or more contributor
// // license agreements. See the NOTICE file distributed with
// Licensed under the Apache License, Version 2.0 (the "License"); // this work for additional information regarding copyright
// you may not use this file except in compliance with the License. // ownership. SkyAPM org licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing,
// distributed under the License is distributed on an "AS IS" BASIS, // software distributed under the License is distributed on an
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// See the License for the specific language governing permissions and // KIND, either express or implied. See the License for the
// limitations under the License. // specific language governing permissions and limitations
// under the License.
package go2sky package go2sky
import "github.com/tetratelabs/go2sky/propagation" import "github.com/SkyAPM/go2sky/propagation"
// WithContext setup trace sc from propagation // WithContext setup trace sc from propagation
func WithContext(sc *propagation.SpanContext) SpanOption { func WithContext(sc *propagation.SpanContext) SpanOption {
......
// Copyright 2019 Tetrate Labs // Licensed to SkyAPM org under one or more contributor
// // license agreements. See the NOTICE file distributed with
// Licensed under the Apache License, Version 2.0 (the "License"); // this work for additional information regarding copyright
// you may not use this file except in compliance with the License. // ownership. SkyAPM org licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing,
// distributed under the License is distributed on an "AS IS" BASIS, // software distributed under the License is distributed on an
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// See the License for the specific language governing permissions and // KIND, either express or implied. See the License for the
// limitations under the License. // specific language governing permissions and limitations
// under the License.
package go2sky package go2sky
...@@ -19,7 +22,7 @@ import ( ...@@ -19,7 +22,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/tetratelabs/go2sky/reporter/grpc/common" "github.com/SkyAPM/go2sky/reporter/grpc/common"
) )
func Test_defaultSpan_SetOperationName(t *testing.T) { func Test_defaultSpan_SetOperationName(t *testing.T) {
......
// Copyright 2019 Tetrate Labs // Licensed to SkyAPM org under one or more contributor
// // license agreements. See the NOTICE file distributed with
// Licensed under the Apache License, Version 2.0 (the "License"); // this work for additional information regarding copyright
// you may not use this file except in compliance with the License. // ownership. SkyAPM org licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing,
// distributed under the License is distributed on an "AS IS" BASIS, // software distributed under the License is distributed on an
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// See the License for the specific language governing permissions and // KIND, either express or implied. See the License for the
// limitations under the License. // specific language governing permissions and limitations
// under the License.
package go2sky package go2sky
...@@ -23,8 +26,8 @@ import ( ...@@ -23,8 +26,8 @@ import (
"github.com/google/uuid" "github.com/google/uuid"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/tetratelabs/go2sky/internal/tool" "github.com/SkyAPM/go2sky/internal/tool"
"github.com/tetratelabs/go2sky/propagation" "github.com/SkyAPM/go2sky/propagation"
) )
const errParameter = tool.Error("parameter are nil") const errParameter = tool.Error("parameter are nil")
......
// Copyright 2019 Tetrate Labs // Licensed to SkyAPM org under one or more contributor
// // license agreements. See the NOTICE file distributed with
// Licensed under the Apache License, Version 2.0 (the "License"); // this work for additional information regarding copyright
// you may not use this file except in compliance with the License. // ownership. SkyAPM org licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing,
// distributed under the License is distributed on an "AS IS" BASIS, // software distributed under the License is distributed on an
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// See the License for the specific language governing permissions and // KIND, either express or implied. See the License for the
// limitations under the License. // specific language governing permissions and limitations
// under the License.
package go2sky package go2sky
......
// Copyright 2019 Tetrate Labs // Licensed to SkyAPM org under one or more contributor
// // license agreements. See the NOTICE file distributed with
// Licensed under the Apache License, Version 2.0 (the "License"); // this work for additional information regarding copyright
// you may not use this file except in compliance with the License. // ownership. SkyAPM org licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing,
// distributed under the License is distributed on an "AS IS" BASIS, // software distributed under the License is distributed on an
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// See the License for the specific language governing permissions and // KIND, either express or implied. See the License for the
// limitations under the License. // specific language governing permissions and limitations
// under the License.
package go2sky package go2sky
......
// Copyright 2019 Tetrate Labs // Licensed to SkyAPM org under one or more contributor
// // license agreements. See the NOTICE file distributed with
// Licensed under the Apache License, Version 2.0 (the "License"); // this work for additional information regarding copyright
// you may not use this file except in compliance with the License. // ownership. SkyAPM org licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License.
// You may obtain a copy of the License at // You may obtain a copy of the License at
// //
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing,
// distributed under the License is distributed on an "AS IS" BASIS, // software distributed under the License is distributed on an
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// See the License for the specific language governing permissions and // KIND, either express or implied. See the License for the
// limitations under the License. // specific language governing permissions and limitations
// under the License.
package go2sky package go2sky
...@@ -22,7 +25,7 @@ import ( ...@@ -22,7 +25,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/tetratelabs/go2sky/propagation" "github.com/SkyAPM/go2sky/propagation"
) )
var ( var (
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册