PjJinchen
a90694165b
feat: Supports tracing services that require header-based authentication. (#43211)
issue: https://github.com/milvus-io/milvus/issues/43082
support tracing services that require header-based authentication.
for example: aliyun SLS, volcengine LogService etc...
[aliyun
SLS](https://help.aliyun.com/zh/sls/import-trace-data-from-golang-applications-to-log-service-by-using-opentelemetry-sdk-for-golang?spm=a2c4g.11186623.help-menu-search-28958.d_1#section-ktk-xxz-8om)
Add a headers config in trace config
```
trace:
exporter: otlp
sampleFraction: 1
otlp:
endpoint: milvus-cn-beijing-pre.cn-beijing.log.aliyuncs.com:10010
method: # otlp export method, acceptable values: ["grpc", "http"], using "grpc" by default
secure: true
headers: # base64
initTimeoutSeconds: 10
```
it is encoded as base64, raw data is json
```
{
"x-sls-otel-project": "milvus-cn-beijing-pre",
"x-sls-otel-instance-id": "milvus-cn-beijing-pre",
"x-sls-otel-ak-id": "xxx",
"x-sls-otel-ak-secret": "xxx"
}
```
[volcengine
tls](https://www.volcengine.com/docs/6470/812322#grpc-%E5%8D%8F%E8%AE%AE%E5%88%9D%E5%A7%8B%E5%8C%96%E7%A4%BA%E4%BE%8B)
Add a headers config in trace config
```
trace:
exporter: otlp
sampleFraction: 1
otlp:
endpoint: xxx
method: # otlp export method, acceptable values: ["grpc", "http"], using "grpc" by default
secure: true
headers: # base64
initTimeoutSeconds: 10
```
it is encoded as base64, raw data is json
```
{
"x-tls-otel-region": "cn-beijing",
"x-tls-otel-tracetopic": "milvus-cn-beijing-pre",
"x-tls-otel-ak": "xxx",
"x-tls-otel-sk": "xxx"
}
```
Signed-off-by: PjJinchen <6268414+pj1987111@users.noreply.github.com>
2025-07-10 17:32:48 +08:00
..
2025-06-12 14:38:35 +08:00
2025-04-28 10:52:40 +08:00
2025-07-03 15:00:44 +08:00
2023-03-02 15:55:49 +08:00
2024-12-25 15:30:50 +08:00
2023-03-02 15:55:49 +08:00
2025-04-28 10:52:40 +08:00
2025-06-12 14:38:35 +08:00
2025-06-12 14:38:35 +08:00
2025-07-02 22:18:44 +08:00
2025-07-02 22:18:44 +08:00
2025-07-02 22:18:44 +08:00
2025-07-02 22:18:44 +08:00
2024-08-23 12:35:02 +08:00
2025-05-30 10:18:36 +08:00
2025-05-30 10:18:36 +08:00
2025-07-01 10:08:44 +08:00
2024-03-24 21:49:07 +08:00
2024-06-23 21:22:01 +08:00
2025-03-26 13:24:20 +08:00
2024-06-23 21:22:01 +08:00
2025-06-17 10:08:38 +08:00
2025-06-12 14:38:35 +08:00
2025-06-17 10:08:38 +08:00
2025-06-12 14:38:35 +08:00
2025-06-12 14:38:35 +08:00
2025-07-02 22:18:44 +08:00
2025-04-30 14:22:58 +08:00
2023-04-26 10:14:41 +08:00
2025-04-28 10:52:40 +08:00
2025-07-10 17:32:48 +08:00
2025-05-30 10:18:36 +08:00
2025-04-10 15:20:28 +08:00
2025-07-08 15:28:46 +08:00
2025-06-05 19:42:32 +08:00
2025-06-09 14:02:33 +08:00
2025-06-24 15:16:41 +08:00
2025-06-24 15:16:41 +08:00
2025-06-10 19:14:35 +08:00
2025-06-12 14:38:35 +08:00
2025-06-17 15:22:38 +08:00
2023-12-23 21:52:43 +08:00
2025-01-14 10:33:06 +08:00
2025-01-14 10:33:06 +08:00
2025-01-14 10:33:06 +08:00
2024-12-26 10:32:49 +08:00
2025-04-18 10:08:34 +08:00
2024-04-09 16:17:26 +08:00
2023-06-13 19:22:38 +08:00
2024-04-26 12:01:26 +08:00
2024-04-26 12:01:26 +08:00
2024-10-09 17:35:19 +08:00
2025-06-12 14:38:35 +08:00
2025-07-10 10:22:47 +08:00
2023-06-25 14:38:44 +08:00
2023-06-25 14:38:44 +08:00
2025-06-12 14:38:35 +08:00
2023-09-11 20:43:17 +08:00
2023-09-27 12:01:28 +08:00
2025-07-10 17:32:48 +08:00
2025-07-10 17:32:48 +08:00
2025-07-10 17:32:48 +08:00
2025-06-12 14:38:35 +08:00
2025-06-12 14:38:35 +08:00
2025-06-10 14:38:34 +08:00
2024-10-25 15:25:30 +08:00
2025-06-12 14:38:35 +08:00
2025-06-12 14:38:35 +08:00