Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support nacos #266

Merged
merged 7 commits into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ Also there are several [**documents**](./docs) that you may find useful for eith
| logrus | https://github.com/sirupsen/logrus | v1.5.0 | v1.9.3 |
| mongodb | https://github.com/mongodb/mongo-go-driver | v1.11.1 | v1.15.2 |
| mux | https://github.com/gorilla/mux | v1.3.0 | v1.8.1 |
| nacos | github.com/nacos-group/nacos-sdk-go/v2 | v2.0.0 | v2.2.7 |
| net/http | https://pkg.go.dev/net/http | - | - |
| redigo | https://github.com/gomodule/redigo | v1.9.0 | v1.9.2 |
| slog | https://pkg.go.dev/log/slog | - | - |
Expand Down
7 changes: 4 additions & 3 deletions docs/experimental-feature.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Settings for the kratos instrumentation

| Environment Variable | Type | Default | Description |
|------------------------------------------------------------|---------|---------|-----------------------------------------------------|
| `OTEL_INSTRUMENTATION_KRATOS_EXPERIMENTAL_SPAN_ATTRIBUTES` | Boolean | `false` | Enable the capture of experimental span attributes. |
| Environment Variable | Type | Default | Description |
|------------------------------------------------------------|---------|---------|------------------------------------------------------------|
| `OTEL_INSTRUMENTATION_KRATOS_EXPERIMENTAL_SPAN_ENABLE` | Boolean | `false` | Enable the capture of experimental kratos span attributes. |
| `OTEL_INSTRUMENTATION_NACOS_EXPERIMENTAL_METRICS_ENABLE` | Boolean | `false` | Enable the capture of experimental NACOSmetrics attributes.|
2 changes: 1 addition & 1 deletion docs/how-to-debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
## 1. Perform instrumentation with -debug options

```bash
$ ./otel -debug go build
$ ./otel set -debug
```

When using the `-debug` compilation option, the tool will compile an unoptimized binary
Expand Down
1 change: 1 addition & 0 deletions docs/supported-libraries.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
| logrus | https://github.com/sirupsen/logrus | v1.5.0 | v1.9.3 |
| mongodb | https://github.com/mongodb/mongo-go-driver | v1.11.1 | v1.15.2 |
| mux | https://github.com/gorilla/mux | v1.3.0 | v1.8.1 |
| nacos | github.com/nacos-group/nacos-sdk-go/v2 | v2.0.0 | v2.2.7 |
| net/http | https://pkg.go.dev/net/http | - | - |
| redigo | https://github.com/gomodule/redigo | v1.9.0 | v1.9.2 |
| slog | https://pkg.go.dev/log/slog | - | - |
Expand Down
15 changes: 13 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ require (
github.com/gomodule/redigo v1.9.0
github.com/gorilla/mux v1.8.1
github.com/labstack/echo/v4 v4.12.0
github.com/nacos-group/nacos-sdk-go/v2 v2.0.0
github.com/prometheus/client_golang v1.16.0
github.com/redis/go-redis/v9 v9.6.1
github.com/rs/zerolog v1.10.0
Expand Down Expand Up @@ -50,15 +51,20 @@ require (
gorm.io/gorm v1.25.12
)

require github.com/bytedance/gopkg v0.1.0
require (
github.com/bytedance/gopkg v0.1.0
github.com/stretchr/testify v1.9.0
)

require (
dario.cat/mergo v1.0.0 // indirect
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
github.com/Microsoft/go-winio v0.6.2 // indirect
github.com/aliyun/alibaba-cloud-sdk-go v1.61.18 // indirect
github.com/andybalholm/brotli v1.1.0 // indirect
github.com/apache/thrift v0.13.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/buger/jsonparser v1.1.1 // indirect
github.com/bytedance/go-tagexpr/v2 v2.9.2 // indirect
github.com/bytedance/sonic v1.12.0 // indirect
github.com/bytedance/sonic/loader v0.2.0 // indirect
Expand All @@ -85,6 +91,7 @@ require (
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-errors/errors v1.0.1 // indirect
github.com/go-kratos/aegis v0.2.0 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
Expand All @@ -95,6 +102,7 @@ require (
github.com/go-playground/validator/v10 v10.20.0 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/mock v1.6.0 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/pprof v0.0.0-20220608213341-c488b8fa1db3 // indirect
Expand All @@ -105,6 +113,7 @@ require (
github.com/jhump/protoreflect v1.8.2 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/compress v1.17.9 // indirect
github.com/klauspost/cpuid/v2 v2.2.7 // indirect
Expand Down Expand Up @@ -139,12 +148,12 @@ require (
github.com/rivo/uniseg v0.2.0 // indirect
github.com/shirou/gopsutil/v3 v3.23.12 // indirect
github.com/shoenig/go-m1cpu v0.1.6 // indirect
github.com/stretchr/testify v1.9.0 // indirect
github.com/tidwall/gjson v1.14.4 // indirect
github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.0 // indirect
github.com/tklauser/go-sysconf v0.3.12 // indirect
github.com/tklauser/numcpus v0.6.1 // indirect
github.com/toolkits/concurrent v0.0.0-20150624120057-a4371d70e3e3 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.2.12 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
Expand All @@ -169,5 +178,7 @@ require (
google.golang.org/genproto/googleapis/api v0.0.0-20241104194629-dd2ea8efbc28 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241104194629-dd2ea8efbc28 // indirect
google.golang.org/protobuf v1.35.1 // indirect
gopkg.in/ini.v1 v1.42.0 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading
Loading