Skip to content

Commit 17695b8

Browse files
committed
set default props in application.yaml
1 parent 52e1226 commit 17695b8

File tree

1 file changed

+22
-15
lines changed

1 file changed

+22
-15
lines changed

src/main/resources/application.yaml

+22-15
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@ spring:
22
profiles:
33
active: ${SPRING_PROFILES_ACTIVE:local}
44

5+
---
6+
otel:
7+
traces:
8+
exporter: otlp
9+
logs:
10+
exporter: none
11+
metrics:
12+
exporter: none
13+
# OTEL_SERVICE_NAME: 'graal-native-example-app'
14+
15+
16+
17+
logging:
18+
level:
19+
io.opentelemetry: DEBUG
20+
org.springframework.boot.env: DEBUG
21+
org.springframework.context: DEBUG
22+
523
---
624
spring:
725
config:
@@ -20,13 +38,6 @@ spring:
2038

2139
# see https://opentelemetry.io/docs/languages/java/configuration/
2240
otel:
23-
traces:
24-
exporter: otlp
25-
logs:
26-
exporter: none
27-
metrics:
28-
exporter: none
29-
3041
exporter:
3142
otlp:
3243
protocol: http/protobuf
@@ -37,12 +48,6 @@ otel:
3748
# headers:
3849
# Authorization: Bearer your-token
3950

40-
logging:
41-
level:
42-
io.opentelemetry: DEBUG
43-
org.springframework.boot.env: DEBUG
44-
org.springframework.context: DEBUG
45-
4651
---
4752
spring:
4853
config:
@@ -51,8 +56,10 @@ spring:
5156
data:
5257
mongodb:
5358
uri: ${vcap.services.mongodb-service.credentials.uri}
54-
# OTEL_SERVICE_NAME: 'graal-native-example-app'
55-
# OTEL_EXPORTER_OTLP_ENDPOINT: 'http://collector:4318'
59+
otel:
60+
exporter:
61+
oltp:
62+
endpoint: ${vcap.services.observability-service.credentials.jaegerCollectorHost}
5663
---
5764
spring:
5865
config:

0 commit comments

Comments
 (0)