Skip to content

Commit

Permalink
support elasticsearch (#213)
Browse files Browse the repository at this point in the history
* init es

* add test for elasticsearch
  • Loading branch information
123liuziming authored Nov 23, 2024
1 parent 9231854 commit 0d37fdd
Show file tree
Hide file tree
Showing 20 changed files with 1,084 additions and 574 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/muzzle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,18 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# when set to "true" but frees about 6 GB
tool-cache: true
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23'

- name: Build
run: make build

- name: Test
run: go test -timeout 50m -v github.com/alibaba/opentelemetry-go-auto-instrumentation/test -run ".*Muzzle"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Also there are several [**documents**](./docs) that you may find useful for eith
|--------------| ------------------------------------------ | --------------------- |-----------------------|
| database/sql | https://pkg.go.dev/database/sql | - | - |
| echo | https://github.com/labstack/echo | v4.0.0 | v4.12.0 |
| elasticsearch| https://github.com/elastic/go-elasticsearch| v8.4.0 | v8.15.0 |
| fasthttp | https://github.com/valyala/fasthttp | v1.45.0 | v1.57.0 |
| gin | https://github.com/gin-gonic/gin | v1.7.0 | v1.10.0 |
| go-redis | https://github.com/redis/go-redis | v9.0.5 | v9.5.1 |
Expand Down
1 change: 1 addition & 0 deletions docs/supported-libraries.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
|--------------| ------------------------------------------ | --------------------- |-----------------------|
| database/sql | https://pkg.go.dev/database/sql | - | - |
| echo | https://github.com/labstack/echo | v4.0.0 | v4.12.0 |
| elasticsearch| https://github.com/elastic/go-elasticsearch| v8.4.0 | v8.15.0 |
| fasthttp | https://github.com/valyala/fasthttp | v1.45.0 | v1.57.0 |
| gin | https://github.com/gin-gonic/gin | v1.7.0 | v1.10.0 |
| go-redis | https://github.com/redis/go-redis | v9.0.5 | v9.5.1 |
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ require (
github.com/cloudwego/hertz v0.9.3
github.com/dave/dst v0.27.3
github.com/docker/go-connections v0.5.0
github.com/elastic/elastic-transport-go/v8 v8.1.0
github.com/elastic/go-elasticsearch/v8 v8.4.0
github.com/gin-gonic/gin v1.10.0
github.com/go-kratos/kratos/v2 v2.8.0
github.com/go-redis/redis/v8 v8.11.0
Expand Down
6 changes: 6 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ github.com/docker/go-connections v0.5.0 h1:USnMq7hx7gwdVZq1L49hLXaFtUdTADjXGp+uj
github.com/docker/go-connections v0.5.0/go.mod h1:ov60Kzw0kKElRwhNs9UlUHAE/F9Fe6GLaXnqyDdmEXc=
github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4=
github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
github.com/elastic/elastic-transport-go/v8 v8.0.0-alpha h1:SW9xcMVxx4Nv9oRm5rQxzAMAatwiZV8xROP2a48y45Q=
github.com/elastic/elastic-transport-go/v8 v8.0.0-alpha/go.mod h1:87Tcz8IVNe6rVSLdBux1o/PEItLtyabHU3naC7IoqKI=
github.com/elastic/elastic-transport-go/v8 v8.1.0/go.mod h1:87Tcz8IVNe6rVSLdBux1o/PEItLtyabHU3naC7IoqKI=
github.com/elastic/go-elasticsearch/v8 v8.0.0 h1:Hte+pgoEZI88j/sQx7u9vK9SqisvJYkYMmxDnQXiJyM=
github.com/elastic/go-elasticsearch/v8 v8.0.0/go.mod h1:8NCWP26meGbncX+R9sxo2JD8IqBjRTuS7yXMstHpd40=
github.com/elastic/go-elasticsearch/v8 v8.4.0/go.mod h1:yY52i2Vj0unLz+N3Nwx1gM5LXwoj3h2dgptNGBYkMLA=
github.com/envoyproxy/go-control-plane v0.13.0 h1:HzkeUz1Knt+3bK+8LG1bxOO/jzWZmdxpwC51i202les=
github.com/envoyproxy/go-control-plane v0.13.0/go.mod h1:GRaKG3dwvFoTg4nj7aXdZnvMg4d7nvT/wl9WgVXn3Q8=
github.com/envoyproxy/protoc-gen-validate v1.1.0 h1:tntQDh69XqOCOZsDz0lVJQez/2L6Uu2PdjCQwWCJ3bM=
Expand Down
Loading

0 comments on commit 0d37fdd

Please sign in to comment.