You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
0 commit comments