Skip to content

[CHORE] Standardize spring.application.name to "Xtraction" across all Spring profiles #194

Closed

Description

@aniebietafia

Problem

spring.application.name is set inconsistently across the four Spring profile property files:

File Current Value
application.properties ReDraft
application-docker.properties UnravelDocs
application-production.properties UnravelDocs
application-example.properties (not confirmed, likely UnravelDocs)

Three different names exist for the same application. This affects:

  • Spring Boot Actuator /actuator/info endpoint (reports the app name)
  • Swagger UI title (injected via @Value("${spring.application.name}") in SwaggerConfig)
  • Log output (MDC context, log prefixes)
  • Service discovery registrations (e.g., Eureka, Consul) if added in future

Proposed Solution

Set spring.application.name=Xtraction in all property files.

User Stories

  • As a developer, I want every environment to consistently report the application name as Xtraction so I am not confused by three different names in different contexts.
  • As an SRE, I want the Actuator info and log output to consistently identify the service as Xtraction for correct alert routing and dashboard filtering.

Acceptance Criteria

  • spring.application.name=Xtraction in application.properties
  • spring.application.name=Xtraction in application-docker.properties
  • spring.application.name=Xtraction in application-production.properties
  • spring.application.name=Xtraction in application-example.properties
  • GET /actuator/info returns {"app": {"name": "Xtraction", ...}}
  • Swagger UI title reads Xtraction (if driven by this property)

Proposed Technical Details

All four files:

# Before (varies by file)
spring.application.name=ReDraft      # dev
spring.application.name=UnravelDocs  # docker, production

# After (all files)
spring.application.name=Xtraction

Add spring.application.version to application.info in application.properties to expose it via Actuator:

info.app.name=${spring.application.name}
info.app.version=${spring.application.version}

Tasks

  • Update application.properties — spring.application.name=Xtraction
  • Update application-docker.properties — spring.application.name=Xtraction
  • Update application-production.properties — spring.application.name=Xtraction
  • Update application-example.properties — spring.application.name=Xtraction
  • Add info.app.* properties for Actuator info endpoint
  • Verify Swagger title updates correctly

Open Questions / Considerations

  • spring.application.version is set from @project.version@ (Maven filtering). Confirm Maven resource filtering is enabled for all profiles — it is currently only enabled in application.properties via the <filtering>true</filtering> resource block in pom.xml.

Activity

  1. added
    bug
    documentation
    enhancement
    on Jun 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    apibugdependenciesdockerdocumentationenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions