Skip to content

Commit ff78db8

Browse files
committed
feat: support jaeger find traces
Signed-off-by: Young Xu <[email protected]>
1 parent e34c2b2 commit ff78db8

File tree

7 files changed

+585
-896
lines changed

7 files changed

+585
-896
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ target/*
1818

1919
# Output of the go coverage tool, specifically when used with LiteIDE
2020
*.out
21+
*.log
2122

2223
# Go workspace file
2324
go.work

trace/README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# github.com/openGemini/observability/storage/jaeger
22

3-
`storage/jaeger` use openGemini as Jaeger storage backend
3+
`trace` use openGemini as trace(Jaeger) storage backend
44

55
## Design
66

@@ -23,3 +23,12 @@ Generate proto file:
2323
```shell
2424
cd trace && buf generate
2525
```
26+
27+
## Install & Usage
28+
29+
```shell
30+
go install github.com/openGemini/observability/trace/cmd/ts-trace@latest
31+
32+
./ts-trace --config=config.yaml
33+
```
34+
Please refer to the configuration file: [config.example.yaml](./config.example.yaml)

trace/config.example.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Copyright 2024 openGemini Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# This is the configuration file for the ts-trace server.
16+
#
17+
# server host
18+
host: 0.0.0.0
19+
# server port
20+
port: 18086
21+
# server log configuration
22+
log:
23+
# log type, support text|json
24+
type: text
25+
# log level, support debug,info,warn,error
26+
level: info
27+
# log output filename
28+
output: trace.log
29+
# opengemini server configuration
30+
opengemini:
31+
# opengemini http server address
32+
address:
33+
- host: 0.0.0.0
34+
port: 8086
35+
# opengemini server auth config
36+
auth:
37+
username: admin
38+
password: admin
39+
# where database to store trace data
40+
database: jaeger_storage
41+
# retention strategy for trace data
42+
retention_policy: trace
43+
# time setting for retention policy
44+
retention_duration: 3d
45+
# opengemini grpc server address
46+
grpc_write:
47+
address:
48+
- host: 0.0.0.0
49+
port: 8305

0 commit comments

Comments
 (0)