DBZ-3550 Upgrade to Quarkus 2.0
* Upgrades Quarkus dependency to 2.0.0.Alpha3 * Fixes dependency issues in outbox extension pom * Remove deprecated usages of OpenTracing API
This commit is contained in:
parent
41e93e6ce1
commit
a3b780dd2a
@ -27,6 +27,10 @@
|
||||
<groupId>io.quarkus</groupId>
|
||||
<artifactId>quarkus-smallrye-opentracing</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.quarkus</groupId>
|
||||
<artifactId>quarkus-resteasy</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- Needed primarily for @Incubating annotation -->
|
||||
<dependency>
|
||||
|
@ -83,11 +83,11 @@ public void onExportedEvent(@Observes ExportedEvent<?, ?> event) {
|
||||
.withTag(TYPE, event.getAggregateType())
|
||||
.withTag(TIMESTAMP, event.getTimestamp().toString());
|
||||
|
||||
try (final Scope outboxSpanScope = spanBuilder.startActive(true)) {
|
||||
try (final Scope outboxSpanScope = tracer.scopeManager().activate(spanBuilder.start())) {
|
||||
final Span activeSpan = tracer.scopeManager().activeSpan();
|
||||
|
||||
Tags.COMPONENT.set(outboxSpanScope.span(), TRACING_COMPONENT);
|
||||
tracer.inject(outboxSpanScope.span().context(),
|
||||
Format.Builtin.TEXT_MAP, exportedSpanData);
|
||||
Tags.COMPONENT.set(activeSpan, TRACING_COMPONENT);
|
||||
tracer.inject(activeSpan.context(), Format.Builtin.TEXT_MAP, exportedSpanData);
|
||||
|
||||
// Define the entity map-mode object using property names and values
|
||||
final HashMap<String, Object> dataMap = new HashMap<>();
|
||||
|
2
pom.xml
2
pom.xml
@ -104,7 +104,7 @@
|
||||
<antlr.version>4.7.2</antlr.version>
|
||||
|
||||
<!-- Quarkus -->
|
||||
<quarkus.version>1.12.0.Final</quarkus.version>
|
||||
<quarkus.version>2.0.0.Alpha3</quarkus.version>
|
||||
|
||||
<!-- Databases, should align with database drivers in debezium-bom -->
|
||||
<version.mysql.server>5.7</version.mysql.server>
|
||||
|
Loading…
Reference in New Issue
Block a user