-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample-service-2.yml
37 lines (34 loc) · 1.07 KB
/
sample-service-2.yml
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
36
37
# Server configuration
server:
port: ${SAMPLE_SERVICE_2_PORT:8091}
# Spring configuration
spring:
profiles:
active: dev
# Spring Security configuration
security:
oauth2:
resource-server:
jwt:
issuer-uri: ${JWT_ISSUER_URI:http://127.0.0.1:5500}
# Trusting a Single Asymmetric Key
# Location of the file containing the public key used to verify a JWT.
# public-key-location: classpath:{public-key-location}.pub
# Logging configuration
logging:
pattern:
# Take the span id and trace id from the Mapped Diagnostic Context (MDC) and put them into the log message.
level: '%5p [${spring.application.name:},%X{traceId:-},%X{spanId:-}]'
# Management configuration for tracing, metrics, and endpoint exposure
management:
endpoints:
web:
exposure:
include: 'info, health, prometheus'
tracing:
sampling:
# Set trace sampling rate (1.0 = 100% of traces). Adjust based on traffic volume and system capacity.
probability: 1.0
metrics:
tags:
application: ${spring.application.name}