# category-service Configuration
server:
  port: 8096
  servlet:
    context-path: /category

spring:
  application:
    name: category-service

# ==================== OpenAPI / Swagger UI ====================
springdoc:
  api-docs:
    enabled: true
    path: /v3/api-docs
  swagger-ui:
    enabled: true
    path: /swagger-ui.html

# Knife4j Enhanced Documentation
knife4j:
  enable: true
  setting:
    language: zh_cn

# ==================== Monitoring & Metrics ====================
management:
  endpoints:
    web:
      exposure:
        include: health,info,metrics,prometheus,caches,beans,env,loggers,threaddump,heapdump
        base-path: /actuator
  endpoint:
    health:
      show-details: always
      probes:
        enabled: true
    prometheus:
      enabled: true
    info:
      enabled: true
  metrics:
    tags:
      application: ${spring.application.name}
    export:
      prometheus:
        enabled: true
  health:
    livenessstate:
      enabled: true
    readinessstate:
      enabled: true

# ==================== Distributed Tracing ====================
  zipkin:
    base-url: ${ZIPKIN_SERVER_URL:http://localhost:9411}
  sleuth:
    sampler:
      probability: 1.0
