Skip to content

Commit 17c6bb0

Browse files
committed
feat: integrate opentelemetry in opengemini-client-go
Signed-off-by: chenhuan <xiangyuyu_2024@qq.com>
1 parent 29002af commit 17c6bb0

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module github.com/openGemini/opengemini-client-go
22

3-
go 1.23.0
4-
5-
toolchain go1.24.3
3+
go 1.24.0
64

75
require (
86
github.com/golang/snappy v1.0.0

opengemini/point.go

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -127,19 +127,7 @@ type Point struct {
127127
// Tags is the line protocol tag field definition.
128128
Tags map[string]string
129129
// Fields is the line protocol value field definition.
130-
Fields map[string]interface{}
131-
Name string
132-
Time time.Time
133-
Command string
134-
}
135-
136-
type OtelPoint struct {
137-
*Point
138-
Database string
139-
RetentionPolicy string
140-
Precision string
141-
Measurement string
142-
BatchCount int
130+
Fields map[string]interface{}
143131
}
144132

145133
func (p *Point) AddTag(key string, value string) {

0 commit comments

Comments
 (0)