Skip to content

Commit

Permalink
Merge pull request #11 from trpc-ecosystem/feature/csuzhang_fix_go_mo…
Browse files Browse the repository at this point in the history
…d_name

bugfix: fix go mod name into trpc-ecosystem
  • Loading branch information
hanyuancheung authored Nov 6, 2023
2 parents 5410bff + 4431779 commit c436927
Show file tree
Hide file tree
Showing 77 changed files with 183 additions and 245 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ precommit: fmt vet lint build test examples

.PHONY: impi
impi:
@$(IMPI) --local trpc-system/go-opentelemetry --scheme stdThirdPartyLocal --skip example/trpc/protocol --skip opentelemetry/proto ./...
@$(IMPI) --local trpc-ecosystem/go-opentelemetry --scheme stdThirdPartyLocal --skip example/trpc/protocol --skip opentelemetry/proto ./...

.PHONY: misspell
misspell:
Expand Down Expand Up @@ -83,5 +83,5 @@ examples:
.PHONY: fmt
fmt:
gofmt -w -s .
goimports -w -local trpc-system/go-opentelemetry ./
goimports -w -local trpc-ecosystem/go-opentelemetry ./

18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ English | [中文](README.zh_CN.md)
# Go SDK

[![Go Reference](https://pkg.go.dev/badge/github.com/trpc-ecosystem/go-opentelemetry.svg)](https://pkg.go.dev/github.com/trpc-ecosystem/go-opentelemetry)
[![Go Report Card](https://goreportcard.com/badge/trpc.group/trpc-go/trpc-system/go-opentelemetry)](https://goreportcard.com/report/trpc.group/trpc-go/trpc-system/go-opentelemetry)
[![Go Report Card](https://goreportcard.com/badge/trpc.group/trpc-go/trpc-ecosystem/go-opentelemetry)](https://goreportcard.com/report/trpc.group/trpc-go/trpc-ecosystem/go-opentelemetry)
[![LICENSE](https://img.shields.io/badge/license-Apache--2.0-green.svg)](https://github.com/trpc-ecosystem/go-opentelemetry/blob/main/LICENSE)
[![Releases](https://img.shields.io/github/release/trpc-ecosystem/go-opentelemetry.svg?style=flat-square)](https://github.com/trpc-ecosystem/go-opentelemetry/releases)
[![Tests](https://github.com/trpc-ecosystem/go-opentelemetry/actions/workflows/prc.yml/badge.svg)](https://github.com/trpc-ecosystem/go-opentelemetry/actions/workflows/prc.yml)
[![Coverage](https://codecov.io/gh/trpc-ecosystem/go-opentelemetry/branch/main/graph/badge.svg)](https://app.codecov.io/gh/trpc-ecosystem/go-opentelemetry/tree/main)

## quickstart
## Quickstart

### 1. use trpctelemetry (recommended for tRPC)
### 1. Use trpctelemetry (recommended for tRPC)

1. import tRPC filter

```go
import _ "trpc-system/go-opentelemetry/oteltrpc"
import _ "trpc-ecosystem/go-opentelemetry/oteltrpc"
```

2. modify tRPC config
Expand Down Expand Up @@ -93,7 +93,7 @@ plugins:
# method: # If not empty, it indicates that the error code exception only matches a specific method (regardless of whether it's a caller or callee). If empty, it applies to all methods.
prometheus_push: # report to prometheus gateway
enabled: false # default false, refer to https://prometheus.io/docs/practices/pushing/#should-i-be-using-the-pushgateway
# If you need to send a delete request to the push gateway after the program exits, add 'defer metric.DeletePrometheusPush()' after 'trpc.NewServer()' in the main() function. For more details, see https://trpc-system/go-opentelemetry#4-metrcs-plugin-configuration.
# If you need to send a delete request to the push gateway after the program exits, add 'defer metric.DeletePrometheusPush()' after 'trpc.NewServer()' in the main() function. For more details, see https://trpc-ecosystem/go-opentelemetry#4-metrcs-plugin-configuration.
url: "" # e.g., http://1.1.1.1:4318
job: "reporter" # can't be empty, default: "reporter"
interval: 60s # default 60 seconds
Expand Down Expand Up @@ -140,16 +140,16 @@ plugins:
enable_zpage: false # Default false, when enabled, the processor exports span locally and can be viewed at /debug/tracez
```
3. metrics plugin setup
3. Metrics plugin setup
default registered to etcd cluster, can be turned off.
support prometheus gateway, require program sending delete request to push gateway before exit, add defer metric.DeletePrometheusPush() in main function, e.g.,
```go
package main

import (
"trpc.group/trpc-go/trpc-go"
_ "trpc-system/go-opentelemetry/oteltrpc"
"trpc-system/go-opentelemetry/sdk/metric"
_ "trpc-ecosystem/go-opentelemetry/oteltrpc"
"trpc-ecosystem/go-opentelemetry/sdk/metric"
)

func main() {
Expand All @@ -160,6 +160,6 @@ func main() {
```


### 2. use opentelemetry sdk
### 2.Use opentelemetry sdk

If the framework used by the business does not implement a reporting plugin similar to trpc-go, you can also directly integrate with the OpenTelemetry SDK. For a reporting demo, please refer to the following: [example](./example)
8 changes: 4 additions & 4 deletions README.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
1. 匿名引入tRPC拦截器

```go
import _ "trpc-system/go-opentelemetry/oteltrpc"
import _ "trpc-ecosystem/go-opentelemetry/oteltrpc"
```

2. 修改tRPC框架配置文件
Expand Down Expand Up @@ -89,7 +89,7 @@ plugins:
# method: # 不为空表示错误码特例仅匹配特定的(无论主被调) method, 为空表示所有 method.
prometheus_push: # 上报指标到prometheus gateway
enabled: false # 启用上报,默认关闭, 参见https://prometheus.io/docs/practices/pushing/#should-i-be-using-the-pushgateway
# 如需在程序退出后发送delete请求到push gateway,需在main()函数trpc.NewServer()之后添加defer metric.DeletePrometheusPush(),详见https://trpc-system/go-opentelemetry#4-metrcs插件配置
# 如需在程序退出后发送delete请求到push gateway,需在main()函数trpc.NewServer()之后添加defer metric.DeletePrometheusPush(),详见https://trpc-ecosystem/go-opentelemetry#4-metrcs插件配置
url: "" # 上报地址, 如http://1.1.1.1:4318
job: "reporter" # 名称,不能为空,默认为reporter
interval: 60s # 上报间隔,默认60秒
Expand Down Expand Up @@ -144,8 +144,8 @@ package main

import (
"trpc.group/trpc-go/trpc-go"
_ "trpc-system/go-opentelemetry/oteltrpc"
"trpc-system/go-opentelemetry/sdk/metric"
_ "trpc-ecosystem/go-opentelemetry/oteltrpc"
"trpc-ecosystem/go-opentelemetry/sdk/metric"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions config/codes/code_mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"strconv"
"sync/atomic"

"trpc-system/go-opentelemetry/pkg/protocol/opentelemetry-ext/proto/operation"
"trpc-system/go-opentelemetry/sdk/remote"
"trpc-ecosystem/go-opentelemetry/pkg/protocol/opentelemetry-ext/proto/operation"
"trpc-ecosystem/go-opentelemetry/sdk/remote"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions config/codes/code_mapping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"github.com/stretchr/testify/assert"
"google.golang.org/grpc"

"trpc-system/go-opentelemetry/pkg/protocol/opentelemetry-ext/proto/operation"
"trpc-system/go-opentelemetry/sdk/remote"
"trpc-ecosystem/go-opentelemetry/pkg/protocol/opentelemetry-ext/proto/operation"
"trpc-ecosystem/go-opentelemetry/sdk/remote"
)

func TestCodeConverter_Map(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import (
"strings"
"time"

"trpc-system/go-opentelemetry"
"trpc-system/go-opentelemetry/api/log"
"trpc-system/go-opentelemetry/config/codes"
"trpc-system/go-opentelemetry/sdk/metric"
"trpc-ecosystem/go-opentelemetry"
"trpc-ecosystem/go-opentelemetry/api/log"
"trpc-ecosystem/go-opentelemetry/config/codes"
"trpc-ecosystem/go-opentelemetry/sdk/metric"
)

// Config opentelemetry trpc plugin config
Expand Down
2 changes: 1 addition & 1 deletion example/asyncexporterlog/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
demo:使用asyncexporter上报日志

```go
import "trpc-system/go-opentelemetry/exporter/asyncexporter"
import "trpc-ecosystem/go-opentelemetry/exporter/asyncexporter"
func main() {
//一定要在trpc.NewServer()以前使用
asyncexporter.Concurrency = 4
Expand Down
6 changes: 3 additions & 3 deletions example/asyncexporterlog/go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
module trpc-system/go-opentelemetry/example/aysncexporterlog
module trpc-ecosystem/go-opentelemetry/example/aysncexporterlog

go 1.18

replace trpc-system/go-opentelemetry => ../../
replace trpc-ecosystem/go-opentelemetry => ../../

require (
go.opentelemetry.io/otel/sdk v1.16.0
go.uber.org/zap v1.24.0
trpc-system/go-opentelemetry v1.0.0
trpc-ecosystem/go-opentelemetry v1.0.0
)

require (
Expand Down
6 changes: 3 additions & 3 deletions example/asyncexporterlog/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import (
"go.opentelemetry.io/otel/sdk/resource"
"go.uber.org/zap"

"trpc-system/go-opentelemetry/api"
"trpc-system/go-opentelemetry/exporter/asyncexporter"
"trpc-system/go-opentelemetry/otelzap"
"trpc-ecosystem/go-opentelemetry/api"
"trpc-ecosystem/go-opentelemetry/exporter/asyncexporter"
"trpc-ecosystem/go-opentelemetry/otelzap"
)

func main() {
Expand Down
16 changes: 3 additions & 13 deletions example/basic/go.mod
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
module trpc-system/go-opentelemetry/example/basic
module trpc-ecosystem/go-opentelemetry/example/basic

go 1.18

replace trpc-system/go-opentelemetry => ../../
replace trpc-ecosystem/go-opentelemetry => ../../

require (
go.opentelemetry.io/otel v1.16.0
go.opentelemetry.io/otel/sdk v1.16.0
go.opentelemetry.io/otel/trace v1.16.0
trpc-system/go-opentelemetry v1.0.0
trpc-ecosystem/go-opentelemetry v1.0.0
)

require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/go-logr/logr v1.2.4 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
Expand All @@ -24,16 +23,7 @@ require (
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.32.1 // indirect
github.com/prometheus/procfs v0.7.3 // indirect
go.opentelemetry.io/contrib/zpages v0.40.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.16.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlpmetric v0.39.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.39.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v0.39.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.16.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.16.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.16.0 // indirect
go.opentelemetry.io/otel/metric v1.16.0 // indirect
go.opentelemetry.io/otel/sdk/metric v0.39.0 // indirect
go.opentelemetry.io/proto/otlp v0.19.0 // indirect
golang.org/x/net v0.8.0 // indirect
golang.org/x/sys v0.8.0 // indirect
Expand Down
21 changes: 0 additions & 21 deletions example/basic/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
github.com/cenkalti/backoff/v4 v4.2.1 h1:y4OZtCnogmCPw98Zjyt5a6+QwPLGkiQsYW5oUqylYbM=
github.com/cenkalti/backoff/v4 v4.2.1/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
Expand Down Expand Up @@ -229,36 +227,17 @@ go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
go.opentelemetry.io/contrib/zpages v0.40.0 h1:BDLYzPHju8GRJH2V+0CtF4WF/sDnylZnspShMMnhyhw=
go.opentelemetry.io/contrib/zpages v0.40.0/go.mod h1:hKOEjOa1AA8kbqQRWR5gSj4WrjWjHQMFv5jeRGDgVRM=
go.opentelemetry.io/otel v1.16.0 h1:Z7GVAX/UkAXPKsy94IU+i6thsQS4nb7LviLpnaNeW8s=
go.opentelemetry.io/otel v1.16.0/go.mod h1:vl0h9NUa1D5s1nv3A5vZOYWn8av4K8Ml6JDeHrT/bx4=
go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.16.0 h1:t4ZwRPU+emrcvM2e9DHd0Fsf0JTPVcbfa/BhTDF03d0=
go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.16.0/go.mod h1:vLarbg68dH2Wa77g71zmKQqlQ8+8Rq3GRG31uc0WcWI=
go.opentelemetry.io/otel/exporters/otlp/otlpmetric v0.39.0 h1:f6BwB2OACc3FCbYVznctQ9V6KK7Vq6CjmYXJ7DeSs4E=
go.opentelemetry.io/otel/exporters/otlp/otlpmetric v0.39.0/go.mod h1:UqL5mZ3qs6XYhDnZaW1Ps4upD+PX6LipH40AoeuIlwU=
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.39.0 h1:rm+Fizi7lTM2UefJ1TO347fSRcwmIsUAaZmYmIGBRAo=
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.39.0/go.mod h1:sWFbI3jJ+6JdjOVepA5blpv/TJ20Hw+26561iMbWcwU=
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v0.39.0 h1:IZXpCEtI7BbX01DRQEWTGDkvjMB6hEhiEZXS+eg2YqY=
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v0.39.0/go.mod h1:xY111jIZtWb+pUUgT4UiiSonAaY2cD2Ts5zvuKLki3o=
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.16.0 h1:cbsD4cUcviQGXdw8+bo5x2wazq10SKz8hEbtCRPcU78=
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.16.0/go.mod h1:JgXSGah17croqhJfhByOLVY719k1emAXC8MVhCIJlRs=
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.16.0 h1:TVQp/bboR4mhZSav+MdgXB8FaRho1RC8UwVn3T0vjVc=
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.16.0/go.mod h1:I33vtIe0sR96wfrUcilIzLoA3mLHhRmz9S9Te0S3gDo=
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.16.0 h1:iqjq9LAB8aK++sKVcELezzn655JnBNdsDhghU4G/So8=
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.16.0/go.mod h1:hGXzO5bhhSHZnKvrDaXB82Y9DRFour0Nz/KrBh7reWw=
go.opentelemetry.io/otel/metric v1.16.0 h1:RbrpwVG1Hfv85LgnZ7+txXioPDoh6EdbZHo26Q3hqOo=
go.opentelemetry.io/otel/metric v1.16.0/go.mod h1:QE47cpOmkwipPiefDwo2wDzwJrlfxxNYodqc4xnGCo4=
go.opentelemetry.io/otel/sdk v1.16.0 h1:Z1Ok1YsijYL0CSJpHt4cS3wDDh7p572grzNrBMiMWgE=
go.opentelemetry.io/otel/sdk v1.16.0/go.mod h1:tMsIuKXuuIWPBAOrH+eHtvhTL+SntFtXF9QD68aP6p4=
go.opentelemetry.io/otel/sdk/metric v0.39.0 h1:Kun8i1eYf48kHH83RucG93ffz0zGV1sh46FAScOTuDI=
go.opentelemetry.io/otel/sdk/metric v0.39.0/go.mod h1:piDIRgjcK7u0HCL5pCA4e74qpK/jk3NiUoAHATVAmiI=
go.opentelemetry.io/otel/trace v1.16.0 h1:8JRpaObFoW0pxuVPapkgH8UhHQj+bJW8jJsCZEu5MQs=
go.opentelemetry.io/otel/trace v1.16.0/go.mod h1:Yt9vYq1SdNz3xdjZZK7wcXv1qv2pwLkqr2QVwea0ef0=
go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI=
go.opentelemetry.io/proto/otlp v0.19.0 h1:IVN6GR+mhC4s5yfcTbmzHYODqvWAp3ZedA2SJPI1Nnw=
go.opentelemetry.io/proto/otlp v0.19.0/go.mod h1:H7XAot3MsfNsj7EXtrA2q5xSNQ10UqI405h3+duxN4U=
go.uber.org/goleak v1.2.1 h1:NBol2c7O1ZokfZ0LEU9K6Whx/KnwvepVetCUhtKja4A=
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
Expand Down
7 changes: 3 additions & 4 deletions example/basic/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ import (
sdktrace "go.opentelemetry.io/otel/sdk/trace"
"go.opentelemetry.io/otel/trace"

"trpc-system/go-opentelemetry"
"trpc-system/go-opentelemetry/api"
apilog "trpc-system/go-opentelemetry/api/log"
ecotrace "trpc-system/go-opentelemetry/sdk/trace"
"trpc-ecosystem/go-opentelemetry/api"
apilog "trpc-ecosystem/go-opentelemetry/api/log"
ecotrace "trpc-ecosystem/go-opentelemetry/sdk/trace"
)

var meter = otel.Meter("my_meter")
Expand Down
6 changes: 3 additions & 3 deletions example/log/go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
module trpc-system/go-opentelemetry/example/log
module trpc-ecosystem/go-opentelemetry/example/log

go 1.18

replace trpc-system/go-opentelemetry => ../../
replace trpc-ecosystem/go-opentelemetry => ../../

require (
go.opentelemetry.io/otel/sdk v1.16.0
go.uber.org/zap v1.24.0
trpc-system/go-opentelemetry v1.0.0
trpc-ecosystem/go-opentelemetry v1.0.0
)

require (
Expand Down
6 changes: 3 additions & 3 deletions example/log/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import (
"go.opentelemetry.io/otel/sdk/resource"
"go.uber.org/zap"

"trpc-system/go-opentelemetry/api"
otlplog "trpc-system/go-opentelemetry/exporter/otlp"
"trpc-system/go-opentelemetry/otelzap"
"trpc-ecosystem/go-opentelemetry/api"
otlplog "trpc-ecosystem/go-opentelemetry/exporter/otlp"
"trpc-ecosystem/go-opentelemetry/otelzap"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions example/metric/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module trpc-system/go-opentelemetry/example/metric
module trpc-ecosystem/go-opentelemetry/example/metric

go 1.18

replace trpc-system/go-opentelemetry => ../../
replace trpc-ecosystem/go-opentelemetry => ../../

require (
github.com/prometheus/client_golang v1.12.1
Expand All @@ -11,7 +11,7 @@ require (
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v0.39.0
go.opentelemetry.io/otel/metric v1.16.0
go.opentelemetry.io/otel/sdk/metric v0.39.0
trpc-system/go-opentelemetry v1.0.0
trpc-ecosystem/go-opentelemetry v1.0.0
)

require (
Expand Down
2 changes: 1 addition & 1 deletion example/metric/prometheus/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/prometheus/client_golang/prometheus/promhttp"
dto "github.com/prometheus/client_model/go"

"trpc-system/go-opentelemetry/sdk/metric"
"trpc-ecosystem/go-opentelemetry/sdk/metric"
)

const addr = ":8999"
Expand Down
15 changes: 3 additions & 12 deletions example/trace/go.mod
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
module trpc-system/go-opentelemetry/example/trace
module trpc-ecosystem/go-opentelemetry/example/trace

go 1.18

replace trpc-system/go-opentelemetry => ../../
replace trpc-ecosystem/go-opentelemetry => ../../

require (
go.opentelemetry.io/otel v1.16.0
go.opentelemetry.io/otel/sdk v1.16.0
go.opentelemetry.io/otel/trace v1.16.0
trpc-system/go-opentelemetry v1.0.0
trpc-ecosystem/go-opentelemetry v1.0.0
)

require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/go-logr/logr v1.2.4 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
Expand All @@ -25,15 +24,7 @@ require (
github.com/prometheus/common v0.32.1 // indirect
github.com/prometheus/procfs v0.7.3 // indirect
go.opentelemetry.io/contrib/zpages v0.40.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.16.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlpmetric v0.39.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.39.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v0.39.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.16.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.16.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.16.0 // indirect
go.opentelemetry.io/otel/metric v1.16.0 // indirect
go.opentelemetry.io/otel/sdk/metric v0.39.0 // indirect
go.opentelemetry.io/proto/otlp v0.19.0 // indirect
golang.org/x/net v0.8.0 // indirect
golang.org/x/sys v0.8.0 // indirect
Expand Down
Loading

0 comments on commit c436927

Please sign in to comment.