Skip to content

Commit 753a609

Browse files
authored
support nacos (#266)
support nacos
1 parent cc417d5 commit 753a609

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+2360
-95
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ Also there are several [**documents**](./docs) that you may find useful for eith
9696
| logrus | https://github.com/sirupsen/logrus | v1.5.0 | v1.9.3 |
9797
| mongodb | https://github.com/mongodb/mongo-go-driver | v1.11.1 | v1.15.2 |
9898
| mux | https://github.com/gorilla/mux | v1.3.0 | v1.8.1 |
99+
| nacos | github.com/nacos-group/nacos-sdk-go/v2 | v2.0.0 | v2.2.7 |
99100
| net/http | https://pkg.go.dev/net/http | - | - |
100101
| redigo | https://github.com/gomodule/redigo | v1.9.0 | v1.9.2 |
101102
| slog | https://pkg.go.dev/log/slog | - | - |

docs/experimental-feature.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Settings for the kratos instrumentation
44

5-
| Environment Variable | Type | Default | Description |
6-
|------------------------------------------------------------|---------|---------|-----------------------------------------------------|
7-
| `OTEL_INSTRUMENTATION_KRATOS_EXPERIMENTAL_SPAN_ATTRIBUTES` | Boolean | `false` | Enable the capture of experimental span attributes. |
5+
| Environment Variable | Type | Default | Description |
6+
|------------------------------------------------------------|---------|---------|------------------------------------------------------------|
7+
| `OTEL_INSTRUMENTATION_KRATOS_EXPERIMENTAL_SPAN_ENABLE` | Boolean | `false` | Enable the capture of experimental kratos span attributes. |
8+
| `OTEL_INSTRUMENTATION_NACOS_EXPERIMENTAL_METRICS_ENABLE` | Boolean | `false` | Enable the capture of experimental NACOSmetrics attributes.|

docs/how-to-debug.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
## 1. Perform instrumentation with -debug options
66

77
```bash
8-
$ ./otel -debug go build
8+
$ ./otel set -debug
99
```
1010

1111
When using the `-debug` compilation option, the tool will compile an unoptimized binary

docs/supported-libraries.md

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
| logrus | https://github.com/sirupsen/logrus | v1.5.0 | v1.9.3 |
2121
| mongodb | https://github.com/mongodb/mongo-go-driver | v1.11.1 | v1.15.2 |
2222
| mux | https://github.com/gorilla/mux | v1.3.0 | v1.8.1 |
23+
| nacos | github.com/nacos-group/nacos-sdk-go/v2 | v2.0.0 | v2.2.7 |
2324
| net/http | https://pkg.go.dev/net/http | - | - |
2425
| redigo | https://github.com/gomodule/redigo | v1.9.0 | v1.9.2 |
2526
| slog | https://pkg.go.dev/log/slog | - | - |

go.mod

+13-2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ require (
2323
github.com/gomodule/redigo v1.9.0
2424
github.com/gorilla/mux v1.8.1
2525
github.com/labstack/echo/v4 v4.12.0
26+
github.com/nacos-group/nacos-sdk-go/v2 v2.0.0
2627
github.com/prometheus/client_golang v1.16.0
2728
github.com/redis/go-redis/v9 v9.6.1
2829
github.com/rs/zerolog v1.10.0
@@ -50,15 +51,20 @@ require (
5051
gorm.io/gorm v1.25.12
5152
)
5253

53-
require github.com/bytedance/gopkg v0.1.0
54+
require (
55+
github.com/bytedance/gopkg v0.1.0
56+
github.com/stretchr/testify v1.9.0
57+
)
5458

5559
require (
5660
dario.cat/mergo v1.0.0 // indirect
5761
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
5862
github.com/Microsoft/go-winio v0.6.2 // indirect
63+
github.com/aliyun/alibaba-cloud-sdk-go v1.61.18 // indirect
5964
github.com/andybalholm/brotli v1.1.0 // indirect
6065
github.com/apache/thrift v0.13.0 // indirect
6166
github.com/beorn7/perks v1.0.1 // indirect
67+
github.com/buger/jsonparser v1.1.1 // indirect
6268
github.com/bytedance/go-tagexpr/v2 v2.9.2 // indirect
6369
github.com/bytedance/sonic v1.12.0 // indirect
6470
github.com/bytedance/sonic/loader v0.2.0 // indirect
@@ -85,6 +91,7 @@ require (
8591
github.com/fsnotify/fsnotify v1.6.0 // indirect
8692
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
8793
github.com/gin-contrib/sse v0.1.0 // indirect
94+
github.com/go-errors/errors v1.0.1 // indirect
8895
github.com/go-kratos/aegis v0.2.0 // indirect
8996
github.com/go-logr/logr v1.4.2 // indirect
9097
github.com/go-logr/stdr v1.2.2 // indirect
@@ -95,6 +102,7 @@ require (
95102
github.com/go-playground/validator/v10 v10.20.0 // indirect
96103
github.com/goccy/go-json v0.10.2 // indirect
97104
github.com/gogo/protobuf v1.3.2 // indirect
105+
github.com/golang/mock v1.6.0 // indirect
98106
github.com/golang/protobuf v1.5.4 // indirect
99107
github.com/golang/snappy v0.0.4 // indirect
100108
github.com/google/pprof v0.0.0-20220608213341-c488b8fa1db3 // indirect
@@ -105,6 +113,7 @@ require (
105113
github.com/jhump/protoreflect v1.8.2 // indirect
106114
github.com/jinzhu/inflection v1.0.0 // indirect
107115
github.com/jinzhu/now v1.1.5 // indirect
116+
github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af // indirect
108117
github.com/json-iterator/go v1.1.12 // indirect
109118
github.com/klauspost/compress v1.17.9 // indirect
110119
github.com/klauspost/cpuid/v2 v2.2.7 // indirect
@@ -139,12 +148,12 @@ require (
139148
github.com/rivo/uniseg v0.2.0 // indirect
140149
github.com/shirou/gopsutil/v3 v3.23.12 // indirect
141150
github.com/shoenig/go-m1cpu v0.1.6 // indirect
142-
github.com/stretchr/testify v1.9.0 // indirect
143151
github.com/tidwall/gjson v1.14.4 // indirect
144152
github.com/tidwall/match v1.1.1 // indirect
145153
github.com/tidwall/pretty v1.2.0 // indirect
146154
github.com/tklauser/go-sysconf v0.3.12 // indirect
147155
github.com/tklauser/numcpus v0.6.1 // indirect
156+
github.com/toolkits/concurrent v0.0.0-20150624120057-a4371d70e3e3 // indirect
148157
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
149158
github.com/ugorji/go/codec v1.2.12 // indirect
150159
github.com/valyala/bytebufferpool v1.0.0 // indirect
@@ -169,5 +178,7 @@ require (
169178
google.golang.org/genproto/googleapis/api v0.0.0-20241104194629-dd2ea8efbc28 // indirect
170179
google.golang.org/genproto/googleapis/rpc v0.0.0-20241104194629-dd2ea8efbc28 // indirect
171180
google.golang.org/protobuf v1.35.1 // indirect
181+
gopkg.in/ini.v1 v1.42.0 // indirect
182+
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
172183
gopkg.in/yaml.v3 v3.0.1 // indirect
173184
)

0 commit comments

Comments
 (0)