Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
<modelVersion>4.0.0</modelVersion>
<groupId>no.obos.util</groupId>
<artifactId>servicebuilder</artifactId>
<version>10.1.14</version>
<version>10.1.15</version>
<packaging>pom</packaging>

<parent>
<!-- https://github.com/code-obos/obos-common-pom -->
<groupId>no.obos.common</groupId>
<artifactId>obos-common-pom</artifactId>
<version>10.1.14</version>
<version>10.1.15</version>
</parent>

<prerequisites>
Expand Down
2 changes: 1 addition & 1 deletion servicebuilder-activemq/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>no.obos.util</groupId>
<artifactId>servicebuilder</artifactId>
<version>10.1.14</version>
<version>10.1.15</version>
</parent>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion servicebuilder-addons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>no.obos.util</groupId>
<artifactId>servicebuilder</artifactId>
<version>10.1.14</version>
<version>10.1.15</version>
</parent>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion servicebuilder-core-addons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>no.obos.util</groupId>
<artifactId>servicebuilder</artifactId>
<version>10.1.14</version>
<version>10.1.15</version>
</parent>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion servicebuilder-core-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>no.obos.util</groupId>
<artifactId>servicebuilder</artifactId>
<version>10.1.14</version>
<version>10.1.15</version>
</parent>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion servicebuilder-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>no.obos.util</groupId>
<artifactId>servicebuilder</artifactId>
<version>10.1.14</version>
<version>10.1.15</version>
</parent>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public void filter(ClientRequestContext requestContext) throws IOException {
String requestId = MDC.get(Constants.X_OBOS_REQUEST_ID);
if (requestId != null) {
requestContext.getHeaders().putSingle(Constants.X_OBOS_REQUEST_ID, requestId);
requestContext.getHeaders().putSingle(Constants.CORRELATION_ID, requestId);
}
}
}
2 changes: 1 addition & 1 deletion servicebuilder-db-basicdatasource/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>no.obos.util</groupId>
<artifactId>servicebuilder</artifactId>
<version>10.1.14</version>
<version>10.1.15</version>
</parent>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion servicebuilder-db-h2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>no.obos.util</groupId>
<artifactId>servicebuilder</artifactId>
<version>10.1.14</version>
<version>10.1.15</version>
</parent>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion servicebuilder-db-jdbi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>no.obos.util</groupId>
<artifactId>servicebuilder</artifactId>
<version>10.1.14</version>
<version>10.1.15</version>
</parent>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion servicebuilder-db-queryrunner/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>no.obos.util</groupId>
<artifactId>servicebuilder</artifactId>
<version>10.1.14</version>
<version>10.1.15</version>
</parent>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion servicebuilder-db/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>no.obos.util</groupId>
<artifactId>servicebuilder</artifactId>
<version>10.1.14</version>
<version>10.1.15</version>
</parent>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion servicebuilder-elasticsearch-mock/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>no.obos.util</groupId>
<artifactId>servicebuilder</artifactId>
<version>10.1.14</version>
<version>10.1.15</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion servicebuilder-elasticsearch/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>no.obos.util</groupId>
<artifactId>servicebuilder</artifactId>
<version>10.1.14</version>
<version>10.1.15</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion servicebuilder-iam/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>no.obos.util</groupId>
<artifactId>servicebuilder</artifactId>
<version>10.1.14</version>
<version>10.1.15</version>
</parent>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ public void request_id_gets_carried_over() {
TestServiceFull.Call expected = getCall()
.toBuilder()
.header(Constants.X_OBOS_REQUEST_ID, "Banana")
.header(Constants.CORRELATION_ID, "Banana")
.build();
TestServiceRunner.Runtime nestedRuntime = nestedService.start().runtime;

Expand Down
2 changes: 1 addition & 1 deletion servicebuilder-interfaces/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>no.obos.util</groupId>
<artifactId>servicebuilder</artifactId>
<version>10.1.14</version>
<version>10.1.15</version>
</parent>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ public final class Constants {
public static final String CLIENT_APPNAME_HEADER = "X-OBOS-CLIENT-APPNAME";
public static final String USERTOKENID_HEADER = "X-OBOS-USERTOKENID";
public static final String X_OBOS_REQUEST_ID = "X-OBOS-REQUEST-ID";
public static final String CORRELATION_ID = "correlationId";
public static final String APPCONFIG_KEY = "SERVICE_CONFIG";
public static final String CONFIG_KEY_SERVICE_VERSION = "service.version";
public static final String CONFIG_KEY_SERVICE_VERSION_MAJOR = "service.version.major";
Expand Down