What’s New in Arconia 0.33.0

Arconia 0.33.0 provides a number of new features and enhancements. This page includes the highlights of the release, but you can also check out the full release notes for more details about each new feature and bug fix.

We provide an automated way to upgrade your project to the latest version of Arconia, which is described in the Upgrading Arconia documentation.

Core Features

  • Arconia now also warns when the profile settings (arconia.dev.profiles, arconia.test.profiles, arconia.bootstrap.profiles.enabled) are found in a configuration tree imported with spring.config.import=configtree:, where they have no effect, as it does for configuration files. Learn more about Customizing the Profiles.

Data

  • The SQLite dialect for Spring Data JDBC now also stores and reads ZonedDateTime, OffsetTime, Year, YearMonth, java.util.Date, java.sql.Timestamp, java.sql.Date, and java.sql.Time values. Previously, values of these types could be written, but reading them back failed. Learn more about the SQLite Type Mapping.

  • Errors from SQLite are now translated into the matching Spring data access exceptions, such as DuplicateKeyException for a violated unique constraint and CannotAcquireLockException for a busy database. Previously, they were all reported as UncategorizedSQLException. Learn more about SQLite Error Handling.

  • A new arconia-data-jdbc-sqlite-spring-boot-starter brings in SQLite support for Spring Data JDBC together with the Spring Boot Starter for Spring Data JDBC, so a single dependency is enough. Learn more about the SQLite Dependencies.

  • The SQLite documentation now covers testing, the connection pool, more pragmas, read-only transactions, and dates and times written with JdbcClient or JdbcTemplate. It also explains that the transaction_mode=IMMEDIATE parameter makes reading wait for the current writer too, since Spring Data JDBC runs repository queries in transactions.

Dev Services

  • The observability Dev Services (Grafana LGTM, OpenTelemetry Collector, Phoenix, OpenLIT, and Langfuse) now only start when the application exports the telemetry they receive via OTLP, and the skip-in-tests property is removed. In tests, they follow the export of telemetry: they are skipped when it’s off, as with the new arconia-opentelemetry-spring-boot-starter-test, and start when a test turns it on with the spring.test.logging.export, spring.test.metrics.export, or spring.test.tracing.export properties. If you set skip-in-tests to false, use those properties instead. Learn more about Dev Services in Test Mode.

  • A Dev Service now has a title, which is the name of the product it runs (such as "PostgreSQL"), and an optional description that says what it provides in a sentence. The built-in Dev Services have both. For a custom Dev Service, title(…​) is now required when registering it, and takes the place of description(…​), which is optional and meant for a sentence. The devservices actuator endpoint returns both fields. Learn more about Custom Dev Services.

  • A Dev Service can have a link to its documentation and an icon, which developer tooling such as the Arconia Dev UI shows. The built-in Dev Services link to their page in the Arconia documentation. For a custom Dev Service, set them with documentation(…​) and icon(…​) when registering it. The properties of a Dev Service are found from the prefix of its properties class. Learn more about Custom Dev Services.

  • The name of a custom Dev Service can no longer contain consecutive dashes, such as fancy—​db. It must contain only lowercase letters, digits, and single dashes between them. Learn more about Custom Dev Services.

  • A link of a Dev Service must be an HTTP or HTTPS URL, which is what developer tooling such as the Arconia Dev UI opens in a browser. Creating a DevServiceLink with any other URL now fails. The links declared with link(…​) when registering a custom Dev Service are not affected, as they are HTTP URLs already. Learn more about Custom Dev Services.

Floci

  • The Floci Dev Service now reports the URL of the Floci UI, a web console for the resources in the emulator, among its links. Floci starts the console the first time the URL is opened. Learn more about the Floci Dev Service.

Dev UI

  • A new Arconia Dev UI gives you a web interface for the application you are developing, served by the application itself in dev mode. Add the new arconia-dev dependency, which brings the development tools of Arconia, and open /a/dev in your browser.

  • The Arconia Dev UI has a Modules page with a card for each technology that has something to show, such as Spring Boot, JDBC, Flyway, JPA, Spring Data JDBC, Spring Data JPA, Spring Data Redis, OpenTelemetry, Docling, Spring Web MVC, Spring Session, and more.

  • It also has pages for its configuration properties, with their values and where they are set, for its environment, for its loggers, whose levels you can change while the application runs, and for its Dev Services, with their state, links, and container logs. A console at the bottom of every page shows the logs of the application, across Spring Boot DevTools restarts, and a button in the top bar restarts the application with DevTools. The Dev UI is incubating. Learn more about the Arconia Dev UI.

  • The Arconia Dev UI has a Dependencies page that lists the libraries of your application with their versions and licenses, read from the SBOM that Spring Boot generates when your build applies the CycloneDX plugin. See Dependencies.

  • With the Arconia Dev UI, a new application no longer answers its first request with the whitelabel error page. In dev mode, a welcome page confirms that the application is running and shows how to add a first endpoint, and a failed request shows the exception at the origin of the failure and its stack trace, with the frames of your application highlighted. The application’s own pages and error pages take precedence, and clients asking for JSON are not affected. Learn more about the Welcome and Error Pages.

  • The Arconia Dev UI only accepts requests from your own machine, and has no login. It is for an application that runs on the machine you work on: no setting opens it to other machines. The pages of other websites and of other applications on your machine cannot use it from your browser, whatever the CORS configuration of your application. Its requests are left out of the metrics and traces of the application. Learn more about Accessing the Dev UI.

  • Libraries can contribute their own pages to the Arconia Dev UI by defining a CardsPage or TablePage bean with the incubating arconia-dev-ui-api, without writing any frontend code, and their own card on the Modules page by defining a DevUiModule bean, with pages of its own. A table page and a module can declare actions, which let the developer change something or ask for something to be done. Learn more about Extending the Dev UI.

Docling

  • With the Arconia Dev UI, a Docling card on the Modules page shows the Docling Serve server your application talks to and how it authenticates, with a link to the OpenAPI page of the server. See Dev UI Modules.

  • The Docling client can now send a bearer token in the Authorization header, which is what a proxy that authenticates the requests to Docling Serve expects. Set it via the arconia.docling.bearer-token property, or via bearerToken() when building the client with DoclingServeApi.builder() or DoclingServeClient.builder(). Learn more about the Docling configuration.

  • The Docling Document Reader now processes the sources as a Docling Serve task and waits for it to complete within arconia.docling.async-timeout (5 minutes by default), instead of using a synchronous request, which Docling Serve stops after 2 minutes. Learn more about the Docling Document Reader.

  • The DocumentMetadata enumeration of the Docling Document Reader is now DoclingDocumentMetadata, so that it no longer clashes with the DocumentMetadata enumeration of Spring AI.

OpenTelemetry

  • With the Arconia Dev UI, an OpenTelemetry card on the Modules page shows whether OpenTelemetry is enabled and where the traces, metrics, and logs of your application go, with pages for the resource attributes and for the settings of each exporter. See Dev UI Modules.

  • A new arconia-opentelemetry-spring-boot-starter-test turns off the export of logs, metrics, and traces in tests, where there is usually no backend to receive them. Without it, each test logs export failures and closing an application context can take several seconds. It includes the Spring Boot test support for Micrometer metrics and tracing, and adds the same support for logs. The tests that verify the exported telemetry turn it back on with the spring.test.logging.export, spring.test.metrics.export, and spring.test.tracing.export properties. Learn more about Testing.

  • The exporters now follow the Spring Boot properties that turn the export of a signal on and off: management.logging.export.enabled, management.defaults.metrics.export.enabled, and management.tracing.export.enabled. Previously, they had no effect.

  • Arconia now logs a warning at startup when the application sets Spring Boot properties under management.opentelemetry.* or management.otlp.*, which have no effect because the arconia.otel.* properties replace them. Previously, they were silently ignored. Learn more about Exporting Telemetry.

  • Spans are now tagged with the baggage fields listed in management.tracing.baggage.tag-fields also when the baggage arrives with an incoming request. Previously, only the baggage set by the application through the Micrometer Tracing API ended up on spans. Learn more about Baggage.

  • A custom Micrometer Tracing Propagator bean now replaces the one Arconia configures, as it does in Spring Boot. Previously, only a custom OtelPropagator did, and any other implementation ended up next to the Arconia one.

  • Exemplars are now configured with a single property for all the metrics of the application: the Spring Boot management.tracing.exemplars.include property, which already applied to the metrics recorded with Micrometer, now also applies to the ones recorded with the OpenTelemetry API. The arconia.otel.metrics.exemplars.filter property is removed, and the OTEL_METRICS_EXEMPLAR_FILTER environment variable sets the Spring Boot property instead. If you set arconia.otel.metrics.exemplars.filter, use management.tracing.exemplars.include with all instead of always-on, none instead of always-off, and sampled-traces instead of trace-based. Learn more about Metrics Configuration Properties.

  • Arconia now stops recording observations, both metrics and traces, for the Spring Boot health endpoint and its /livez and /readyz probe paths in Servlet applications, so that frequent Kubernetes probes no longer flood the telemetry backend. The observations started while handling those requests, such as the Spring Security or JDBC ones, are skipped too, instead of becoming separate traces. Use arconia.observations.http.server.additional-ignore-paths to ignore more paths, or set arconia.observations.http.server.ignore-paths to an empty value to observe every request again. Learn more about Ignoring HTTP Server Requests.

Semantic Conventions

  • Setting arconia.observations.conventions.openinference.ai.base64-image-max-length to 0 now redacts all base64 media, as in the OpenInference reference implementation. Previously, it removed the limit. Learn more about the OpenInference Configuration Properties.

  • The http.route attribute and the name of HTTP server spans now include the context path of the application, as the OpenTelemetry Semantic Conventions recommend. For example, with server.servlet.context-path=/api, the route /users/{id} is now reported as /api/users/{id}. Learn more about the OpenTelemetry HTTP Server Conventions.

  • With the langsmith and openllmetry flavors of the OpenTelemetry AI Semantic Conventions, the attributes that tell the backend how to display a span, such as langsmith.span.kind and traceloop.span.kind, are now only recorded on spans. Previously, they were also tags of the metrics, which now have the same tags with every flavor. Learn more about the Semantic Conventions.

  • With the openllmetry flavor, tool executions now record their arguments and result also as gen_ai.tool.call.arguments and gen_ai.tool.call.result, as the OpenLLMetry instrumentations do. Learn more about the OpenLLMetry Semantic Conventions.

Testcontainers

  • The containers can now be created from an image name given as a string, as in new PhoenixContainer("arizephoenix/phoenix:latest"), like the modules of Testcontainers.

  • In PhoenixContainer, the GRPC_PORT constant is now OTLP_GRPC_PORT and the getGrpcPort() method is now getOtlpGrpcPort(), as in OpenLitContainer. The new getOtlpHttpUrl() and getOtlpGrpcUrl() methods return the OTLP endpoints. Learn more about the Phoenix Testcontainers module.