Skip to content

Commit 09d6965

Browse files
committed
missed files
1 parent f2dfb7e commit 09d6965

File tree

2 files changed

+1
-81
lines changed

2 files changed

+1
-81
lines changed

i18n/zh-CN/docusaurus-plugin-content-docs/current/ecosystem/observability/opentelemetry.md

Lines changed: 0 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -363,83 +363,3 @@ java -jar myproject-0.0.1-SNAPSHOT.jar
363363
```
364364

365365

366-
### Trace Collection Example
367-
368-
**1. OpenTelemetry Configuration**
369-
370-
Create the configuration file `otel_trace.yml` as follows:
371-
372-
```yaml
373-
receivers:
374-
otlp: # OTLP protocol to receive data from OpenTelemetry Java Agent
375-
protocols:
376-
grpc:
377-
endpoint: 0.0.0.0:4317
378-
http:
379-
endpoint: 0.0.0.0:4318
380-
381-
processors:
382-
batch:
383-
send_batch_size: 100000 # Number of traces per batch (recommended batch size: 100MB–1GB)
384-
timeout: 10s
385-
386-
exporters:
387-
doris:
388-
endpoint: http://localhost:8030 # FE HTTP address
389-
database: doris_db_name
390-
username: doris_username
391-
password: doris_password
392-
table:
393-
traces: doris_table_name
394-
create_schema: true # Auto-create schema (if false, tables must be created manually)
395-
mysql_endpoint: localhost:9030 # FE MySQL address
396-
history_days: 10
397-
create_history_days: 10
398-
timezone: Asia/Shanghai
399-
timeout: 60s # HTTP Stream Load client timeout
400-
log_response: true
401-
sending_queue:
402-
enabled: true
403-
num_consumers: 20
404-
queue_size: 1000
405-
retry_on_failure:
406-
enabled: true
407-
initial_interval: 5s
408-
max_interval: 30s
409-
headers:
410-
load_to_single_tablet: "true"
411-
412-
service:
413-
pipelines:
414-
traces:
415-
receivers: [otlp]
416-
processors: [batch]
417-
exporters: [doris]
418-
```
419-
420-
**2. Run OpenTelemetry**
421-
422-
```bash
423-
./otelcol-contrib --config otel_trace.yaml
424-
```
425-
426-
**3. Application Integration with OpenTelemetry SDK**
427-
428-
Here we demonstrate integration using a Spring Boot example application (from the official [demo](https://docs.spring.io/spring-boot/tutorial/first-application/index.html)), which returns "Hello World!" for the "/" endpoint.
429-
430-
1. Download the [OpenTelemetry Java Agent](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases).
431-
- Advantage: No code changes required for existing applications.
432-
- For other languages/integration methods, see OpenTelemetry docs:
433-
- [Language APIs & SDKs](https://opentelemetry.io/docs/languages/)
434-
- [Zero-code Instrumentation](https://opentelemetry.io/docs/zero-code/)
435-
436-
2. Before starting the application, set these environment variables (no code modification needed):
437-
```bash
438-
export JAVA_TOOL_OPTIONS="${JAVA_TOOL_OPTIONS} -javaagent:/your/path/to/opentelemetry-javaagent.jar" # Path to OpenTelemetry Java Agent
439-
export OTEL_JAVAAGENT_LOGGING="none" # Disable OTEL logs to avoid interference with application logs
440-
export OTEL_SERVICE_NAME="myproject"
441-
export OTEL_TRACES_EXPORTER="otlp" # Use OTLP protocol to send trace data
442-
export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4317" # OpenTelemetry Collector address
443-
444-
java -jar myproject-0.0.1-SNAPSHOT.jar
445-
```

versioned_docs/version-2.0/ecosystem/fluentbit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
{
3-
"title": "Fluent Bit Doris Output Plugin",
3+
"title": "FluentBit",
44
"language": "en"
55
}
66
---

0 commit comments

Comments
 (0)