You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _versions/main/guides/cdi.adoc
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -455,10 +455,15 @@ public class LargeTxAccount implements Account { <3>
455
455
Account delegate; <4>
456
456
457
457
@Inject
458
-
LogService logService; <5>
458
+
@Decorated
459
+
Bean<Account> delegateInfo; <5>
460
+
461
+
462
+
@Inject
463
+
LogService logService; <6>
459
464
460
465
void withdraw(BigDecimal amount) {
461
-
delegate.withdraw(amount); <6>
466
+
delegate.withdraw(amount); <7>
462
467
if (amount.compareTo(1000) > 0) {
463
468
logService.logWithdrawal(delegate, amount);
464
469
}
@@ -470,8 +475,9 @@ public class LargeTxAccount implements Account { <3>
470
475
<2> `@Decorator` marks a decorator component.
471
476
<3> The set of decorated types includes all bean types which are Java interfaces, except for `java.io.Serializable`.
472
477
<4> Each decorator must declare exactly one _delegate injection point_. The decorator applies to beans that are assignable to this delegate injection point.
473
-
<5> Decorators can inject other beans.
474
-
<6> The decorator may invoke any method of the delegate object. And the container invokes either the next decorator in the chain or the business method of the intercepted instance.
478
+
<5> It is possible to obtain information about the decorated bean by using the `@Decorated` qualifier.
479
+
<6> Decorators can inject other beans.
480
+
<7> The decorator may invoke any method of the delegate object. And the container invokes either the next decorator in the chain or the business method of the intercepted instance.
475
481
476
482
NOTE: Instances of decorators are dependent objects of the bean instance they intercept, i.e. a new decorator instance is created for each intercepted bean.
Copy file name to clipboardExpand all lines: _versions/main/guides/datasource.adoc
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -169,7 +169,7 @@ endif::note-quarkus-derby[]
169
169
+
170
170
[NOTE]
171
171
====
172
-
You can use any JDBC driver in a Quarkus app in JVM mode as described in <<other-databases,Using other databases>>.
172
+
You can use any JDBC driver in a Quarkus app in JVM mode as described in <<other-databases,Custom databases and drivers>>.
173
173
However, using a non-built-in database kind is unlikely to work when compiling your application to a native executable.
174
174
175
175
For native executable builds, it is recommended to either use the available JDBC Quarkus extensions or contribute a custom extension for your specific driver.
@@ -217,7 +217,9 @@ Read <<in-memory-databases,Testing with in-memory databases>> for suggestions re
217
217
* MySQL - `quarkus-jdbc-mysql`
218
218
* Oracle - `quarkus-jdbc-oracle`
219
219
* PostgreSQL - `quarkus-jdbc-postgresql`
220
+
ifndef::no-quarkiverse[]
220
221
* Other JDBC extensions, such as link:https://github.com/quarkiverse/quarkus-jdbc-sqlite[SQLite] and its link:https://docs.quarkiverse.io/quarkus-jdbc-sqlite/dev/index.html[documentation], can be found in the https://github.com/quarkiverse[Quarkiverse].
222
+
ifndef::no-quarkiverse[]
221
223
+
222
224
For example, to add the PostgreSQL driver dependency:
223
225
+
@@ -567,7 +569,7 @@ If your transaction involves non-datasource resources, be aware that they might
567
569
568
570
If XA cannot be enabled for one of your datasources:
569
571
570
-
* Be aware that enabling XA for all datasources _except one_ (and only one) is still supported through https://www.narayana.io/docs/project/index.html#d5e857[Last Resource Commit Optimization (LRCO)].
572
+
* Be aware that enabling XA for all datasources _except one_ (and only one) is still supported through link:https://www.narayana.io/docs/project/index.html#_last_resource_commit_optimization_lrco[Last Resource Commit Optimization (LRCO)].
571
573
* If you do not need a rollback for one datasource to trigger a rollback for other datasources, consider splitting your code into multiple transactions.
572
574
To do so, use xref:transaction.adoc#programmatic-approach[`QuarkusTransaction.requiringNew()`]/xref:transaction.adoc#declarative-approach[`@Transactional(REQUIRES_NEW)`] (preferably) or xref:transaction.adoc#legacy-api-approach[`UserTransaction`] (for more complex use cases).
Copy file name to clipboardExpand all lines: _versions/main/guides/opentelemetry-metrics.adoc
+16-2Lines changed: 16 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -529,9 +529,23 @@ We only show 1 of 3 exemplars for brevity.
529
529
=== Resource
530
530
See the main xref:opentelemetry.adoc#resource[OpenTelemetry Guide resources] section.
531
531
532
-
== Additional instrumentation
532
+
== Automatic instrumentation
533
+
534
+
We provide automatic instrumentation for JVM metrics and HTTP server requests metrics according to the https://github.com/eclipse/microprofile-telemetry/blob/2.0/spec/src/main/asciidoc/metrics.adoc[Microprofile Metrics 2.0 specification].
535
+
536
+
These metrics can be disabled by setting the following properties to `false`:
537
+
538
+
[source,properties]
539
+
----
540
+
quarkus.otel.instrument.jvm-metrics=false
541
+
quarkus.otel.instrument.http-server-metrics=false
542
+
----
543
+
544
+
[NOTE]
545
+
====
546
+
- It is recommended to disable these instrumentations if you are using the Micrometer extension as well.
547
+
====
533
548
534
-
Automatic metrics are not yet provided by the Quarkus OpenTelemetry extension.
535
549
We plan to bridge the existing Quarkus Micrometer extension metrics to OpenTelemetry in the future.
At build time on your `application.properties` file.
60
60
61
-
==== Manual instrumentation only
62
-
For now only manual instrumentation is supported. You can use the OpenTelemetry API to create and record metrics but Quarkus is not yet providing automatic instrumentation for metrics.
63
-
64
-
In the future, we plan to bridge current Micrometer metrics to OpenTelemetry and maintain compatibility when possible.
0 commit comments