Skip to content

Commit

Permalink
Merge pull request #163 from mash-up-kr/feature/tracing
Browse files Browse the repository at this point in the history
feat: OpenTelemetry Tracing 기능 활성화
  • Loading branch information
K-Diger authored Aug 21, 2024
2 parents 5bf0289 + 61a4584 commit 2403ebc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
11 changes: 11 additions & 0 deletions docker/monitoring/otel/otelcol-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ receivers:
endpoint: 0.0.0.0:4318

processors:
batch:
resource:
attributes:
- action: insert
Expand All @@ -25,6 +26,12 @@ processors:
key: process.command_args

exporters:
# traces
otlp/tempo:
endpoint: http://tempo:4317
tls:
insecure: true
insecure_skip_verify: true
logging:
loglevel: debug
loki:
Expand All @@ -44,3 +51,7 @@ service:
receivers: [ otlp ]
processors: [ resource ]
exporters: [ loki ]
traces:
receivers: [ otlp ]
processors: [ batch ]
exporters: [ otlp/tempo ]
8 changes: 6 additions & 2 deletions piikii-bootstrap/src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ otel:
deployment.environment: prod
logs:
exporter: otlp
traces:
exporter: otlp
exporter:
otlp:
logs:
endpoint: ${OTEL_COLLECTOR_LOG_ENDPOINT}
protocol: http/protobuf # default
traces:
endpoint: ${OTEL_COLLECTOR_TRACE_ENDPOINT}
protocol: http/protobuf # default
metrics:
exporter: none
traces:
exporter: none

0 comments on commit 2403ebc

Please sign in to comment.