Skip to content

Commit b814a27

Browse files
authored
chore: remove unused jaeger header (#2199)
Signed-off-by: shuiyisong <xixing.sys@gmail.com>
1 parent 31a072e commit b814a27

File tree

4 files changed

+8
-32
lines changed

4 files changed

+8
-32
lines changed

docs/user-guide/ingest-data/for-observability/opentelemetry.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,9 @@ GreptimeDB will map the OTLP traces data model to the following table schema:
280280
- Resource attributes and span attributes are automatically flattened into separate columns, with column names being their JSON keys (using `.` to connect multiple levels of nesting)
281281
- `span_events` and `span_links` are stored as JSON data types by default
282282

283-
By default, the table is partitioned into 16 uniform regions based on the `trace_id` to efficiently store and query all trace data.
283+
Note:
284+
1. The `greptime_trace_v1` process uses the `trace_id` field to divide data into partitions for better performance. **Please make sure the first letter of the `trace_id` is evenly distributed**.
285+
2. For non-test scenarios, you might want to set a `ttl` to the trace table to avoid data overload. Set the HTTP header `x-greptime-hints: ttl=7d` would set a `ttl` of 7 days during the table creation, see [here](/reference/sql/create.md#table-options) for more details about `ttl` in table option.
284286

285287
### Append Only
286288

docs/user-guide/query-data/jaeger.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ GreptimeDB currently supports the following [Jaeger](https://www.jaegertracing.i
1818
- `/api/services/{service}/operations`: Get all operations for a service.
1919
- `/api/traces`: Get traces by query parameters.
2020

21-
You can use [Grafana's Jaeger plugin](https://grafana.com/docs/grafana/latest/datasources/jaeger/) or [Jaeger UI](https://github.com/jaegertracing/jaeger-ui) to query traces data in GreptimeDB. When using Jaeger UI, you can set the `proxyConfig` in `packages/jaeger-ui/vite.config.mts` to the GreptimeDB address, for example:
21+
You can use [Grafana's Jaeger plugin](https://grafana.com/docs/grafana/latest/datasources/jaeger/)(Recommended) or [Jaeger UI](https://github.com/jaegertracing/jaeger-ui) to query traces data in GreptimeDB. When using Jaeger UI, you can set the `proxyConfig` in `packages/jaeger-ui/vite.config.mts` to the GreptimeDB address, for example:
2222

2323
```ts
2424
const proxyConfig = {
@@ -55,17 +55,3 @@ You can refer to the [OpenTelemetry official documentation](https://opentelemetr
5555
3. Use Grafana's Jaeger Explore to view the data:
5656

5757
![Jaeger Explore](/jaeger-explore.png)
58-
59-
### Add Time Range for Getting Operations Endpoints
60-
61-
By default, we don't add time range parameters for the `GET /api/operations` and `GET /api/services/{service}/operations` endpoints. When the volume of traces data is large, this may lead to long query times. You can add a time range parameter by setting the HTTP Header based on your specific scenario, for example:
62-
63-
```
64-
x-greptime-jaeger-time-range-for-operations: 3 days
65-
```
66-
67-
This indicates that only the Operations data from the past 3 days will be returned.
68-
69-
This header can be set in the **HTTP Headers** of the Jaeger Data Source, for example:
70-
71-
![Set HTTP Headers](/jaeger-http-header-for-time-range.jpg)

i18n/zh/docusaurus-plugin-content-docs/current/user-guide/ingest-data/for-observability/opentelemetry.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,9 @@ OTLP traces 数据模型根据以下规则映射到 GreptimeDB 数据模型:
283283
- Resource Attributes 和 Span Attributes 将被自动展平为单独的列,列名为其 JSON 格式表示时的 key(多层嵌套时将用 `.` 连接);
284284
- `span_events``span_links` 默认存储为 JSON 数据类型;
285285

286-
默认地,表会根据 `trace_id` 均匀划分为 16 个 Region 以高效地存储和查询所有的 traces 数据。
286+
注意:
287+
1. `greptime_trace_v1` 处理方式默认通过 `trace_id` 字段将数据切分成不同的分区以提升性能。**请确保 `trace_id` 的第一个字符是分布均匀的**
288+
2. 在非测试的场合下,可以通过设置 `ttl` 以避免持久化数据量过大。通过设置 `x-greptime-hints: ttl=7d` HTTP 请求头,在创建 trace 表时会添加一个 7 天的 `ttl` 表选项。见[此文档](/reference/sql/create.md#表选项)了解更多关于表选项 `ttl` 的信息。
287289

288290
### Append 模式
289291

i18n/zh/docusaurus-plugin-content-docs/current/user-guide/query-data/jaeger.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ GreptimeDB 目前支持以下 [Jaeger](https://www.jaegertracing.io/) 查询接
1818
- `/api/services/{service}/operations`: 获取指定 Service 的所有 Operations。
1919
- `/api/traces`: 根据查询参数获取 traces 数据。
2020

21-
你可以使用 Grafana 的 [Jaeger 插件](https://grafana.com/docs/grafana/latest/datasources/jaeger/) 或者 [Jaeger UI](https://github.com/jaegertracing/jaeger-ui) 来查询 GreptimeDB 中的 traces 数据。当你在使用 Jaeger UI 的时候,可将 `packages/jaeger-ui/vite.config.mts``proxyConfig` 配置为 GreptimeDB 的地址,比如:
21+
你可以使用 Grafana 的 [Jaeger 插件](https://grafana.com/docs/grafana/latest/datasources/jaeger/)(推荐) 或者 [Jaeger UI](https://github.com/jaegertracing/jaeger-ui) 来查询 GreptimeDB 中的 traces 数据。当你在使用 Jaeger UI 的时候,可将 `packages/jaeger-ui/vite.config.mts``proxyConfig` 配置为 GreptimeDB 的地址,比如:
2222

2323
```ts
2424
const proxyConfig = {
@@ -55,17 +55,3 @@ const proxyConfig = {
5555
3. 使用 Jaeger Explore 来查看数据:
5656

5757
![Jaeger Explore](/jaeger-explore.png)
58-
59-
### 为获取 Operations 接口添加时间范围
60-
61-
默认地,我们没有为 `GET /api/operations``GET /api/services/{service}/operations` 添加时间范围参数,当 traces 数据量较大时,这可能会导致查询时间过长。此时你可以基于自己的场景以 HTTP Header 的形式添加时间范围参数,比如:
62-
63-
```
64-
x-greptime-jaeger-time-range-for-operations: 3 days
65-
```
66-
67-
这表示只返回最近 3 天的 Operations 数据。
68-
69-
这个 Header 可设置在 Jaeger Data Source 的 **HTTP Headers** 中,比如:
70-
71-
![设置 HTTP Headers](/jaeger-http-header-for-time-range.jpg)

0 commit comments

Comments
 (0)