-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication.yml
More file actions
35 lines (34 loc) · 1003 Bytes
/
application.yml
File metadata and controls
35 lines (34 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
eureka:
client:
register-with-eureka: true
fetch-registry: true
# How often to pull the registry from Eureka
registry-fetch-interval-seconds: 30
refresh:
enable: false
service-url:
defaultZone: http://localhost:8761/eureka/
instance:
prefer-ip-address: false
hostname: localhost
# Expiration > 2 × Renewal
# How often this instance sends a heartbeat to Eureka
lease-renewal-interval-in-seconds: 30
# How long Eureka waits without heartbeats before evicting
lease-expiration-duration-in-seconds: 90
# Optional but nice: more unique instance IDs in dashboards/logs
instance-id: ${spring.application.name}:${server.port}:${random.uuid}
metadata-map:
version: v0.0.2
environment: dev
management:
tracing:
enabled: true
sampling:
probability: 1.0
zipkin:
tracing:
endpoint: http://localhost:9411/api/v2/spans
logging:
pattern:
level: "%5p [traceId=%X{traceId},spanId=%X{spanId}]"